Cargo Features

[dependencies]
vls-core = { version = "0.12.0", default-features = false, features = ["no-std", "std", "secp-lowmemory", "grpc", "debug", "use_backtrace", "log_pretty_print", "test_utils", "debug_enforcement_state", "debug_node_state", "tracker_size_workaround", "timeless_workaround", "txoo-source", "env_logger"] }
default = debug, env_logger, std, use_backtrace

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

no-std

Enables alloc of core2 ^0.3.0, no-std of bitcoin ^0.29 and bitcoin-push-decoder ^0.2.2, no-std of lightning ^0.0.118, lightning-invoice ^0.26.0, serde_bolt ^0.3.5, and txoo ^0.7.1

std default

Enables rand and std of bitcoin ^0.29, std of bitcoin-push-decoder ^0.2.2, lightning ^0.0.118, lightning-invoice ^0.26.0, serde_bolt ^0.3.5, tracing, and txoo ^0.7.1

Affects vls-core::prelude.SendSync, persist::fs, signer::ClockStartingTimeFactory

secp-lowmemory

Enables secp-lowmemory of bitcoin ^0.29

grpc = tonic

if you use tonic, this is convenient for auto-conversion of MySigner Status to tonic::Status

debug default = debug_enforcement_state, debug_node_state
use_backtrace default test_utils? = backtrace

Affects error::ValidationError.bt

log_pretty_print
test_utils = use_backtrace

Enables bitcoinconsensus of bitcoin ^0.29, hex and regex of lightning ^0.0.118, test_utils of serde_bolt ^0.3.5, test-utils of txoo ^0.7.1

Affects policy::null_validator

debug_enforcement_state debug

trace state at debug level

debug_node_state debug
tracker_size_workaround

issue #187

timeless_workaround

issue #206, #339, #235

Affects clock::Clock.set_workaround_time

txoo-source

Enables source of txoo ^0.7.1

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.

core2 no-std?

Enables core2 ^0.3.0

env_logger default

Enables env_logger ^0.9

backtrace use_backtrace
tonic grpc?

Enables tonic ^0.9