Cargo Features
deno_lib has no features set by default.
[dependencies]
deno_lib = { version = "2.2.0", features = ["dhat-heap", "upgrade", "hmr"] }
- dhat-heap = dhat
-
A feature that enables heap profiling with dhat on Linux.
- Compile with
cargo build --profile=release-with-debug --features=dhat-heap
- Run the executable. It will output a dhat-heap.json file.
- Open the json file in https://nnethercote.github.io/dh_view/dh_view.html
- Compile with
- upgrade
-
A feature that enables the upgrade subcommand and the background check for available updates (of deno binary). This is typically disabled for (Linux)
distribution packages. - hmr
-
A dev feature to disable creations and loading of snapshots in favor of loading JS sources at runtime.
Enables hmr of deno_runtime ^0.186.0
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.