diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2023-06-25 08:35:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-25 09:35:31 +0200 |
| commit | 28a4f3d0f5383695b1d49ccdc8b0f799a715b2c2 (patch) | |
| tree | cd75b05db0bbfdadf3e565ca120d1f5d9ca39942 /runtime/Cargo.toml | |
| parent | a181ceb0e3791c842db6e8e6f528cf9ce320642a (diff) | |
Reland "refactor(core): cleanup feature flags for js source inclusion" (#19519)
Relands #19463. This time the `ExtensionFileSourceCode` enum is
preserved, so this effectively just splits feature
`include_js_for_snapshotting` into `exclude_js_sources` and
`runtime_js_sources`, adds a `force_include_js_sources` option on
`extension!()`, and unifies `ext::Init_ops_and_esm()` and
`ext::init_ops()` into `ext::init()`.
Diffstat (limited to 'runtime/Cargo.toml')
| -rw-r--r-- | runtime/Cargo.toml | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 27faa977c..95cc25e53 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -14,15 +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 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. -include_js_files_for_snapshotting = [ - "deno_core/include_js_files_for_snapshotting", -] +# Enable to exclude `js/99_main.js` from the generated snapshot. +exclude_js_main_from_snapshot = [] [lib] name = "deno_runtime" @@ -41,7 +34,7 @@ deno_ast.workspace = true deno_broadcast_channel.workspace = true deno_cache.workspace = true deno_console.workspace = true -deno_core.workspace = true +deno_core = { workspace = true, features = ["runtime_js_sources"] } deno_crypto.workspace = true deno_fetch.workspace = true deno_ffi.workspace = true |
