Cargo Features
[dependencies]
exonum-crypto = { version = "1.0.0", default-features = false, features = ["sodiumoxide-crypto", "with-protobuf", "with-serde"] }
- default = sodiumoxide-crypto, with-protobuf, with-serde
-
These default features are set whenever
exonum-crypto
is added without
somewhere in the dependency tree.default-features = false - sodiumoxide-crypto default = exonum_sodiumoxide
-
Affects
crypto_lib::sodiumoxide
… - with-protobuf default = exonum-proto, protobuf
-
Affects
exonum-crypto::proto
… - with-serde default
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.