Cargo Features
[dependencies]
lightning = { version = "0.0.125", 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"] }
- max_level_off
-
Unlog messages superior at targeted level.
- max_level_error max_level_warn max_level_info
- max_level_debug max_level_trace
- unsafe_revoked_tx_signing
-
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
- std default
-
Affects
invoice_utils::create_invoice_from_channelmanager
,invoice_utils::create_invoice_from_channelmanager_with_description_hash
,wakers::Sleeper
… - grind_signatures default
-
Generates low-r bitcoin signatures, which saves 1 byte in 50% of the cases
Affects
chan_utils::ANCHOR_INPUT_WITNESS_WEIGHT
… - default = grind_signatures, std
-
These default features are set whenever
lightning
is added without
somewhere in the dependency tree.default-features = false
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
backtrace:
A library to acquire a stack trace (backtrace) at runtime in a Rust program
- libm no-std?
- criterion ldk_bench implicit feature
-
Enables criterion ^0.4
criterion:
Statistics-driven micro-benchmarking library