Cargo Features

[dependencies]
stacks-common = { version = "0.0.3", default-features = false, features = ["canonical", "log", "sqlite", "vrf", "wasm", "developer-mode", "slog_json", "testing"] }
default = canonical, developer-mode, log

These default features are set whenever stacks-common is added without default-features = false somewhere in the dependency tree.

canonical default testing? = secp256k1, sqlite, vrf, wsts
log default = slog, slog-json, slog-term
sqlite canonical = rusqlite

Affects types::sqlite

vrf canonical = curve25519-dalek, ed25519-dalek

Affects util::vrf

wasm = developer-mode, getrandom, libsecp256k1
developer-mode default wasm?
slog_json = slog-json
testing = canonical

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.

slog log
slog-term log
slog-json log slog_json?
wsts canonical

Enables wsts ^8.1

libsecp256k1 wasm?

Enables libsecp256k1 ^0.5.0

wasm

getrandom wasm?
curve25519-dalek vrf?

Enables curve25519-dalek =2.0.0

ed25519-dalek vrf?
rusqlite sqlite?

Enables rusqlite =0.28.0

secp256k1 canonical

Enables secp256k1 ^0.24.3