Cargo Features

[dependencies]
elements = { version = "0.24.1", default-features = false, features = ["json-contract", "serde", "base64"] }
default = json-contract

The json-contract feature is set by default whenever elements is added without default-features = false somewhere in the dependency tree.

json-contract default = serde_json
serde = actual-serde

Enables serde of bitcoin ^0.31.0 and secp256k1-zkp

base64

Enables base64 of bitcoin ^0.31.0

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