Cargo Features

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.


Enables alloc of bech32

std default

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

Affects plan::LoggerAssetProvider


Affects policy::compiler

serde = actual-serde

Enables serde of bitcoin


Enables rand of bitcoin


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.