Cargo Features
[dependencies]
bitcoin_num = { version = "0.2.3", default-features = false, features = ["std", "all", "serde-std", "unstable", "fuzztarget"] }
- default = std
-
The
std
feature is set by default wheneverbitcoin_num
is added without
somewhere in the dependency tree.default-features = false - std default all?
- all = serde, serde-std, std
- serde-std all?
-
serde:
Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library. - unstable
-
for benchmarking
- fuzztarget
-
used by other rust-bitcoin projects to make hashes almost-noops, DON'T USE THIS
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.