Cargo Features
[dependencies]
satsnet = { version = "0.32.2", default-features = false, features = ["std", "rand-std", "rand", "serde", "secp-lowmemory", "secp-recovery", "bitcoinconsensus-std", "base64", "ordered"] }
- default = secp-recovery, std
-
These default features are set whenever
satsnet
is added without
somewhere in the dependency tree.default-features = false - std default bitcoinconsensus-std? rand-std?
-
Enables std of satsnet-base58ck, bech32, satsnet_hashes, hex-conservative, satsnet-internals, satsnet-io, secp256k1, and satsnet-units
Affects
p2p::address
,p2p::message
,p2p::message_blockdata
,p2p::message_bloom
,p2p::message_compact_blocks
,p2p::message_filter
,p2p::message_network
… - rand-std = std
- rand
- serde = actual-serde
-
Enables serde of satsnet_hashes, satsnet-internals, secp256k1, and satsnet-units
Affects
consensus::serde
,network::as_core_arg
… - secp-lowmemory
- secp-recovery default
- bitcoinconsensus-std = std
-
Enables std of bitcoinconsensus ^0.105.0
Only use this feature for no-std builds, otherwise use bitcoinconsensus-std.
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.21.3
base64:
encodes and decodes base64 as bytes or utf8
- ordered implicit feature
-
Enables ordered
ordered:
A wrapper for adding arbitrary partial/total order to a type
- bitcoinconsensus bitcoinconsensus-std?
-
Enables bitcoinconsensus ^0.105.0
Affects
consensus::validation
… - actual-serde serde?
-
Enables serde
Do NOT use this as a feature! Use the
serde
feature instead.