Cargo Features

lightning = { version = "0.0.123-beta", default-features = false, features = ["max_level_off", "max_level_info", "max_level_trace", "unsafe_revoked_tx_signing", "no-std", "std", "grind_signatures", "regex", "backtrace", "criterion"] }

Unlog messages superior at targeted level.

max_level_error max_level_warn max_level_info
max_level_debug max_level_trace

Allow signing of local transactions that may have been revoked or will be revoked, for functional testing (e.g. justice tx handling).
This is unsafe to use in production because it may result in the counterparty publishing taking our funds.

no-std = hashbrown, libm, possiblyrandom

Enables no-std of bitcoin ^0.30.2, alloc of core2 ^0.3.0

std default

Enables std of bitcoin ^0.30.2

Affects time::MonotonicTime, wakers::Sleeper

grind_signatures default

Generates low-r bitcoin signatures, which saves 1 byte in 50% of the cases

default = grind_signatures, std

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

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.

hashbrown no-std?

Enables hashbrown ^0.13

possiblyrandom no-std?
regex implicit feature
backtrace implicit feature

Enables backtrace


A library to acquire a stack trace (backtrace) at runtime in a Rust program

core2 no-std?

Enables core2 ^0.3.0

libm no-std?
criterion ldk_bench implicit feature

Enables criterion ^0.4


Statistics-driven micro-benchmarking library