Cargo Features
[dependencies]
elements = { version = "0.25.1", default-features = false, features = ["json-contract", "serde", "base64"] }
- default = json-contract
-
The
json-contract
feature is set by default wheneverelements
is added without
somewhere in the dependency tree.default-features = false - json-contract default = serde_json
- serde = actual-serde
-
Enables serde of bitcoin and secp256k1-zkp
- base64
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.
- serde_json json-contract
-
Enables serde_json
Used for ContractHash::from_json_contract.
- actual-serde serde?
-
Enables serde