Cargo Features
[dependencies]
bitnet = { version = "0.31.9", default-features = false, features = ["no-std", "std", "bitcoinconsensus-std", "rand", "rand-std", "secp-lowmemory", "secp-recovery", "serde", "base64"] }
- default = secp-recovery, std
-
These default features are set whenever
bitnet
is added without
somewhere in the dependency tree.default-features = false - no-std = core2
-
Enables alloc and core2 of bitcoin_hashes ^0.12.0 and alloc of secp256k1 ^0.27.0
secp256k1:
allow use of Secp256k1::new and related API that requires an allocator
- std default bitcoinconsensus-std?
-
Enables std of bech32 ^0.9.0, bitcoin-private, bitcoin_hashes ^0.12.0, and secp256k1 ^0.27.0
Affects
network::address
,network::message
,network::message_blockdata
,network::message_bloom
,network::message_compact_blocks
,network::message_filter
,network::message_network
… - bitcoinconsensus-std = std
-
Enables std of bitcoinconsensus
- rand
-
Enables rand of secp256k1 ^0.27.0
- rand-std
-
Enables rand-std of secp256k1 ^0.27.0
- secp-lowmemory
-
Enables lowmemory of secp256k1 ^0.27.0
- secp-recovery default
-
Enables recovery of secp256k1 ^0.27.0
- serde = actual-serde
-
Enables serde of bitcoin_hashes ^0.12.0 and secp256k1 ^0.27.0
Affects
amount::serde
,consensus::serde
…
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.
- base64 implicit feature
-
Enables base64 ^0.13.0
base64:
encodes and decodes base64 as bytes or utf8
- actual-serde serde?
-
Enables serde
- bitcoinconsensus bitcoinconsensus-std?
- core2 no-std?
-
Enables core2 ^0.3.0