From bd034e360d036d9634d8526a6eea73979b3ad9e1 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 28 Aug 2023 22:30:46 +0100 Subject: 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. --- cli/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli') 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" -- cgit v1.2.3