Cargo Features
[dependencies]
cranelift-preopt = { version = "0.92.1", default-features = false, features = ["std", "core"] }
- default = std
-
The
std
feature is set by default whenevercranelift-preopt
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of cranelift-codegen ^0.92.1
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
-
Enables core of cranelift-codegen ^0.92.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.
cranelift-preopt has 3 features without comments.