Skip to content

Commit e7be65d

Browse files
Mateusz FaltynMateusz Faltyn
Mateusz Faltyn
authored and
Mateusz Faltyn
committed
Document lightning crate features.
1 parent b68ad7a commit e7be65d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

lightning/src/lib.rs

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
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+
<<<<<<< HEAD
2021
//!
2122
//! `default` features are:
2223
//!
@@ -36,6 +37,27 @@
3637
//! * `max_level_debug`
3738
//! * `max_level_trace`
3839
40+
=======
41+
//!
42+
//! `default` features are:
43+
//!
44+
//! * `std` - enables functionalities which require `std`, including `std::io` trait implementations and things which utilize time
45+
//! * `grind_signatures` - enables generation of [low-r bitcoin signatures](https://bitcoin.stackexchange.com/questions/111660/what-is-signature-grinding),
46+
//! which saves 1 byte per signature in 50% of the cases (see [bitcoin PR #13666](https://github.com/bitcoin/bitcoin/pull/13666))
47+
//!
48+
//! Available features are:
49+
//!
50+
//! * `std`
51+
//! * `grind_signatures`
52+
//! * `no-std ` - exposes write trait implementations from the `core2` crate (at least one of `no-std` or `std` are required)
53+
//! * Skip logging of messages at levels below the given log level:
54+
//! * `max_level_off`
55+
//! * `max_level_error`
56+
//! * `max_level_warn`
57+
//! * `max_level_info`
58+
//! * `max_level_debug`
59+
//! * `max_level_trace`
60+
>>>>>>> b89b65c9 (Use new spec repository URL.)
3961

4062
#![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), deny(missing_docs))]
4163
#![cfg_attr(not(any(test, fuzzing, feature = "_test_utils")), forbid(unsafe_code))]

0 commit comments

Comments
 (0)