Cargo Features
[dependencies]
value-trait = { version = "0.10.1", default-features = false, features = ["128bit", "custom-types", "c-abi", "runtime-detection", "ordered-float", "portable", "halfbrown", "hashbrown"] }
- default = custom-types, halfbrown, runtime-detection
-
These default features are set whenever
value-trait
is added without
somewhere in the dependency tree.default-features = false - 128bit
-
Support for 128 bit integers
- custom-types default
-
Support for custom types
Affects
base::TypedCustomValue.is_custom
… - c-abi = abi_stable
-
Support for abi-stable's
StableAbi
implementation - INCOMPATIBLE WITH ordered-float - runtime-detection default
-
use runtime detection of the CPU features where possible instead of enforcing an instruction set
- ordered-float
-
wrap floats in ordered-float - allowing them to be Eq - INCOMPATIBLE WITH c-abi
Enables ordered-float
- portable
-
portable simd support (as of rust 1.73 nightly only)
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.
- halfbrown default
- hashbrown implicit feature
-
Enables hashbrown
hashbrown:
A Rust port of Google's SwissTable hash map
- abi_stable c-abi?