Skip to content

Commit 440ea94

Browse files
authored
Merge pull request #1478 from mattfaltyn/issue1462
Document `lightning` crate features
2 parents 75ca50f + 7067373 commit 440ea94

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

lightning/src/lib.rs

+19
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,25 @@
1717
//! figure out how best to make networking happen/timers fire/things get written to disk/keys get
1818
//! generated/etc. This makes it a good candidate for tight integration into an existing wallet
1919
//! instead of having a rather-separate lightning appendage to a wallet.
20+
//!
21+
//! `default` features are:
22+
//!
23+
//! * `std` - enables functionalities which require `std`, including `std::io` trait implementations and things which utilize time
24+
//! * `grind_signatures` - enables generation of [low-r bitcoin signatures](https://bitcoin.stackexchange.com/questions/111660/what-is-signature-grinding),
25+
//! which saves 1 byte per signature in 50% of the cases (see [bitcoin PR #13666](https://github.com/bitcoin/bitcoin/pull/13666))
26+
//!
27+
//! Available features are:
28+
//!
29+
//! * `std`
30+
//! * `grind_signatures`
31+
//! * `no-std ` - exposes write trait implementations from the `core2` crate (at least one of `no-std` or `std` are required)
32+
//! * Skip logging of messages at levels below the given log level:
33+
//! * `max_level_off`
34+
//! * `max_level_error`
35+
//! * `max_level_warn`
36+
//! * `max_level_info`
37+
//! * `max_level_debug`
38+
//! * `max_level_trace`
2039
2140
#![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), deny(missing_docs))]
2241
#![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), forbid(unsafe_code))]

0 commit comments

Comments
 (0)