Cargo Features

[dependencies]
miniscript = { version = "11.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, no-std of bitcoin ^0.31.0

std default

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

Affects plan::LoggerAssetProvider

compiler

Affects policy::compiler

trace
serde = actual-serde

Enables serde of bitcoin ^0.31.0

rand

Enables rand of bitcoin ^0.31.0

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.

actual-serde serde?

Enables serde

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