Merge pull request #490 from jkczyz/2020-02-initial-routing-sync
[rust-lightning] / README.md
1 [![Safety Dance](https://img.shields.io/badge/unsafe-forbidden-success.svg)](https://github.com/rust-secure-code/safety-dance/)
2
3 Rust-Lightning, not Rusty's Lightning!
4 =====
5
6 Documentation can be found at [docs.rs](https://docs.rs/lightning/)
7
8 The project implements all of the BOLT specifications in the 1.0 spec except
9 for [channel queries](https://github.com/lightningnetwork/lightning-rfc/blob/master/07-routing-gossip.md#query-messages). The
10 implementation has pretty good test coverage that is expected to continue to
11 improve. There are a number of internal refactorings being done now that will
12 make the code base more welcoming to new contributors. It is also anticipated
13 that as developers begin using the API, the lessons from that will result in
14 changes to the API, so any developer using this API at this stage should be prepared
15 to embrace that. The current state is sufficient for a developer or project to
16 experiment with it. Recent increased contribution rate to the project is expected
17 to lead to a high quality, stable, production-worthy implementation in 2020.
18
19 The goal is to provide a full-featured but also incredibly flexible lightning
20 implementation, allowing the user to decide how they wish to use it. With that
21 in mind, everything should be exposed via simple, composable APIs. The user
22 should be able to decide whether they wish to use their own threading/execution
23 models, allowing usage inside of existing library architectures, or allow us to
24 handle that for them. Same goes with network connections - if the user wishes
25 to use their own networking stack, they should be able to do so! This all means
26 that we should provide simple external interfaces which allow the user to drive
27 all execution, while implementing sample execution drivers that create a
28 full-featured lightning daemon by default.
29
30 For security reasons, do not add new dependencies. Really do not add new
31 non-optional/non-test/non-library dependencies. Really really do not add
32 dependencies with dependencies. Do convince Andrew to cut down dependency usage
33 in rust-bitcoin.
34
35 Notes on coding style:
36  * Use tabs. If you want to align lines, use spaces. Any desired alignment
37    should display fine at any tab-length display setting.
38
39 License is Apache-2.0.