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. --- runtime/Cargo.toml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'runtime/Cargo.toml') diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index f181ba1c2..d4401effd 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -14,9 +14,8 @@ description = "Provides the deno runtime library" docsrs = [] # A feature that disables creation of startup snapshot during in the build script. dont_create_runtime_snapshot = [] -# A feature that changes how startup snapshot is generated, that allows -# extending it in embedder crates. -snapshot_from_snapshot = [] +# A feature that allows excluding `./js/99_main.js` from the exported extension. +exclude_runtime_main_js = [] # A feature that disables embedding of the JavaScript source files in the binary. # With this feature enabled, the sources must be consumed during build time, # by creating a startup snapshot. -- cgit v1.2.3