Cargo Features

deno_runtime has no features set by default.

[dependencies]
deno_runtime = { version = "0.197.0", features = ["docsrs", "exclude_runtime_main_js", "include_js_files_for_snapshotting", "hmr", "only_snapshotted_js_sources", "snapshot", "transpile"] }
docsrs

"fake" feature that allows to generate docs on docs.rs

exclude_runtime_main_js

A feature that allows excluding ./js/99_main.js from the exported extension.

include_js_files_for_snapshotting hmr? only_snapshotted_js_sources?

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.

Enables include_js_files_for_snapshotting of deno_core ^0.333.0

Affects js::PATH_FOR_99_MAIN_JS

hmr = include_js_files_for_snapshotting, transpile

A dev feature to disable creations and loading of snapshots in favor of loading JS sources at runtime.

only_snapshotted_js_sources = include_js_files_for_snapshotting

Signal that only snapshotted JS sources should be used. This will conditionally exclude the runtime source transpilation logic, and add an assertion that a snapshot is provided.

snapshot = transpile

Affects deno_runtime::snapshot

transpile hmr? snapshot? = deno_ast

Affects deno_runtime::transpile

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

deno_ast transpile?