1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-25 15:29:32 -05:00
denoland-deno/cli
Andreu Botella 69ec45eac7
refactor(cli): Integrate standalone mode cert handling into Flags (#17419)
The way the standalone mode handles the `--cert` flag is different to
all other modes. This is because `--cert` takes a path to the
certificate file, which is directly added to the root cert store; except
for compile mode, where its byte contents are stored in the standalone
metadata, and they are added to the root cert store after the
`ProcState` is created.

This change instead changes `Flags::ca_file` (an `Option<String>`) into
`Flags::ca_data`, which can represent a `String` file path or a
`Vec<u8>` with the certificate contents. That way, standalone mode can
create a `ProcState` whose root cert store alreay contains the
certificate.

This change also adds a tests for certificates in standalone mode, since
there weren't any before.

This refactor will help with implementing web workers in standalone mode
in the future.
2023-01-18 01:18:24 +01:00
..
args refactor(cli): Integrate standalone mode cert handling into Flags (#17419) 2023-01-18 01:18:24 +01:00
bench chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
cache chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
js chore: update dlint to v0.37.0 for GitHub Actions (#17295) 2023-01-16 17:17:18 +01:00
lsp refactor(cli): Integrate standalone mode cert handling into Flags (#17419) 2023-01-18 01:18:24 +01:00
napi chore: forward v1.29.4 release commit to main (#17453) 2023-01-17 00:30:33 +01:00
node fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
npm refactor(npm): avoid cloning snapshot for lockfile (#17451) 2023-01-16 19:46:30 +00:00
ops chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
schemas fix: add missing verb in description (#17163) 2022-12-22 14:51:22 +01:00
tests refactor(cli): Integrate standalone mode cert handling into Flags (#17419) 2023-01-18 01:18:24 +01:00
tools refactor(cli): Integrate standalone mode cert handling into Flags (#17419) 2023-01-18 01:18:24 +01:00
tsc chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
util chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00
auth_tokens.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
build.rs refactor: clean up unwrap and clone (#17282) 2023-01-15 09:36:46 +05:30
Cargo.toml chore: forward v1.29.4 release commit to main (#17453) 2023-01-17 00:30:33 +01:00
deno.ico fix(cli): add icon and metadata to deno.exe on Windows (#6693) 2020-07-15 21:54:38 +02:00
deno_std.rs chore: forward v1.29.4 release commit to main (#17453) 2023-01-17 00:30:33 +01:00
emit.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
errors.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
file_fetcher.rs refactor(permissions): add PermissionsContainer struct for internal mutability (#17134) 2023-01-07 17:25:34 +01:00
graph_util.rs fix(watch): preserve ProcState::file_fetcher between restarts (#15466) 2023-01-10 16:28:10 +01:00
http_util.rs refactor: clean up unwrap and clone (#17282) 2023-01-15 09:36:46 +05:30
js.rs chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 16:51:32 +09:00
main.rs refactor(cli/tools): move flag and config logic to CliOptions (#17008) 2023-01-07 15:22:09 -05:00
module_loader.rs fix(watch): preserve ProcState::file_fetcher between restarts (#15466) 2023-01-10 16:28:10 +01:00
proc_state.rs refactor: clean up unwrap and clone (#17282) 2023-01-15 09:36:46 +05:30
README.md docs(cli): do not need gen doc for cli (#17260) 2023-01-04 13:19:58 +01:00
resolver.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
standalone.rs refactor(cli): Integrate standalone mode cert handling into Flags (#17419) 2023-01-18 01:18:24 +01:00
version.rs chore: update copyright year to 2023 (#17247) 2023-01-02 21:00:42 +00:00
worker.rs chore: use rustfmt imports_granularity option (#17421) 2023-01-14 23:18:58 -05:00

Deno CLI Crate

crates

This provides the actual deno executable and the user-facing APIs.

The deno crate uses the deno_core to provide the executable.