Cargo Features
[dependencies]
linera-wasmer-compiler-cranelift = { version = "4.4.0-linera.6", default-features = false, features = ["std", "wasm", "unwind", "core", "rayon"] }
- default = rayon, std, unwind
-
These default features are set whenever
linera-wasmer-compiler-cranelift
is added without
somewhere in the dependency tree.default-features = false - std default wasm?
-
Enables wasmer-types =4.4.0 and std of cranelift-codegen ^0.91.1, cranelift-frontend ^0.91.1, and linera-wasmer-compiler
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.
- wasm = std, unwind
- unwind default wasm? = gimli
-
Enables unwind of cranelift-codegen ^0.91.1
cranelift-codegen:
This enables unwind info generation functionality.
- core = hashbrown
-
Enables core of cranelift-codegen ^0.91.1 and cranelift-frontend ^0.91.1
cranelift-codegen:
The "core" feature used to enable a hashmap workaround, but is now deprecated (we (i) always use hashbrown, and (ii) don't support a no_std build anymore). The feature remains for backward compatibility as a no-op.
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.11
- rayon default
- gimli unwind
-
Enables gimli ^0.26