diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-08-28 22:30:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 15:30:46 -0600 |
commit | bd034e360d036d9634d8526a6eea73979b3ad9e1 (patch) | |
tree | f10130a89208b13bfee039ea661623d81a120e5d /cli | |
parent | 7adaf613bfbeab0f6aed92294e3eea912990d819 (diff) |
refactor(runtime): factor out code between build.rs and worker.rs (#20299)
Adds `runtime/shared.rs` which is imported by both `build.rs` and the
rest of the crate, containing utilities used by both.
Renames the `snapshot_from_snapshot` feature to
`exclude_runtime_main_js` since that's what it does and it's relevant
outside of snapshotting when `__runtime_js_sources` is specified.
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 72d75293e..69635141b 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -32,7 +32,7 @@ path = "./bench/lsp_bench_standalone.rs" __runtime_js_sources = ["deno_runtime/__runtime_js_sources"] [build-dependencies] -deno_runtime = { workspace = true, features = ["snapshot_from_snapshot", "include_js_files_for_snapshotting"] } +deno_runtime = { workspace = true, features = ["exclude_runtime_main_js", "include_js_files_for_snapshotting"] } deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] } lazy-regex.workspace = true serde.workspace = true @@ -55,7 +55,7 @@ deno_graph = "=0.52.0" deno_lint = { version = "=0.50.2", features = ["docs"] } deno_lockfile.workspace = true deno_npm.workspace = true -deno_runtime = { workspace = true, features = ["dont_create_runtime_snapshot", "include_js_files_for_snapshotting"] } +deno_runtime = { workspace = true, features = ["dont_create_runtime_snapshot", "exclude_runtime_main_js", "include_js_files_for_snapshotting"] } deno_semver.workspace = true deno_task_shell = "=0.13.2" eszip = "=0.50.0" |