Cargo Features
[dependencies]
wasm-run = { version = "0.9.3", default-features = false, features = ["dev-server", "prebuilt-wasm-opt", "sass", "binaryen"] }
- default = dev-server, prebuilt-wasm-opt
-
These default features are set whenever
wasm-run
is added without
somewhere in the dependency tree.default-features = false - dev-server default = async-std, tide
-
Enables serve of wasm-run-proc-macro
Affects
wasm-run::ServeArgs.log
,wasm-run::ServeArgs.ip
,wasm-run::ServeArgs.port
,wasm-run::Hooks.serve
… - prebuilt-wasm-opt default = binary-install, platforms, tempfile
- sass = sass-rs, walkdir
-
Affects
wasm-run::BuildArgs.build_sass_from_dir
,wasm-run::BuildArgs.sass_lookup_directories
,wasm-run::BuildArgs.sass_options
…
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.
- async-std dev-server
- binary-install prebuilt-wasm-opt
-
Enables binary-install ^0.0.2
- binaryen implicit feature
-
Enables binaryen ^0.12
binaryen:
Bindings to the binaryen library
- platforms prebuilt-wasm-opt
-
Enables platforms ^1.0.3
- sass-rs sass?
- tempfile prebuilt-wasm-opt
- tide dev-server
-
Enables tide ^0.15
- walkdir sass?