Cargo Features

[dependencies]
miniscript = { version = "12.0.0", default-features = false, features = ["no-std", "std", "compiler", "trace", "serde", "rand", "base64"] }
default = std

The std feature is set by default whenever miniscript is added without default-features = false somewhere in the dependency tree.

no-std

Enables alloc of bech32

std default

Enables std of bech32, secp-recovery and std of bitcoin

Affects plan::LoggerAssetProvider

compiler

Affects policy::compiler

trace
serde = actual-serde

Enables serde of bitcoin

rand

Enables rand of bitcoin

base64

Enables base64 of bitcoin

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.

actual-serde serde?

Enables serde

Do NOT use this as a feature! Use the serde feature instead.