Cargo Features
[dependencies]
alexcrichton-cranelift-wasm = { version = "0.53.0", default-features = false, features = ["std", "core", "enable-serde", "basic-blocks"] }
- default = basic-blocks, std
-
These default features are set whenever
alexcrichton-cranelift-wasm
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of alexcrichton-cranelift-codegen and alexcrichton-cranelift-frontend
alexcrichton-cranelift-codegen:
The "std" feature enables use of libstd. The "core" feature enables use of some minimal std-like replacement libraries. At least one of these two features need to be enabled.
- core = hashbrown
-
Enables core of alexcrichton-cranelift-codegen and alexcrichton-cranelift-frontend
alexcrichton-cranelift-codegen:
The "core" features enables use of "hashbrown" since core doesn't have a HashMap implementation, and a workaround for Cargo #4866.
- enable-serde = serde
- basic-blocks default
-
Temporary feature that enforces basic block semantics.
Enables basic-blocks of alexcrichton-cranelift-codegen and alexcrichton-cranelift-frontend
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.
- hashbrown core?
-
Enables hashbrown ^0.6
- serde enable-serde?