summaryrefslogtreecommitdiff
path: root/runtime/Cargo.toml
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2023-06-14 00:36:16 +0200
committerGitHub <noreply@github.com>2023-06-13 22:36:16 +0000
commit60bf79c18410fd332b6b9b7c222e6d3d62bfe3f8 (patch)
tree070934eb82d906ee341d1ad4d1390f0b75860529 /runtime/Cargo.toml
parent82dd90f98d6817caadcb9b6bd81aba80b2ee848d (diff)
Revert "refactor(core): cleanup feature flags for js source inclusion… (#19490)
… (#19463)" This reverts commit ceb03cfb037cf7024a5048b17b508ddda59cfa05. This is being reverted because it causes 3.5Mb increase in the binary size, due to runtime JS code being included in the binary, even though it's already snapshotted. CC @nayeemrmn
Diffstat (limited to 'runtime/Cargo.toml')
-rw-r--r--runtime/Cargo.toml11
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml
index e66698a01..77571b210 100644
--- a/runtime/Cargo.toml
+++ b/runtime/Cargo.toml
@@ -14,8 +14,15 @@ description = "Provides the deno runtime library"
docsrs = []
# A feature that disables creation of startup snapshot during in the build script.
dont_create_runtime_snapshot = []
-# Enable to exclude `js/99_main.js` from the generated snapshot.
-exclude_js_main_from_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",
+]
[lib]
name = "deno_runtime"