Skip to content

Commit b34f482

Browse files
committed
Rewrite lightning-net-tokio using async/await and tokio 0.2
This is a rather major rewrite, using async/await and tokio 0.2, which cleans up the code a ton as well as adds significantly to readability.
1 parent e87fde0 commit b34f482

File tree

2 files changed

+232
-181
lines changed

2 files changed

+232
-181
lines changed

lightning-net-tokio/Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[package]
22
name = "lightning-net-tokio"
3-
version = "0.0.2"
3+
version = "0.0.3"
44
authors = ["Matt Corallo"]
55
license = "Apache-2.0"
6+
edition = "2018"
67
description = """
78
Implementation of the rust-lightning network stack using Tokio.
89
For Rust-Lightning clients which wish to make direct connections to Lightning P2P nodes, this is a simple alternative to implementing the nerequired network stack, especially for those already using Tokio.
@@ -13,7 +14,4 @@ bitcoin = "0.21"
1314
bitcoin_hashes = "0.7"
1415
lightning = { version = "0.0.10", path = "../lightning" }
1516
secp256k1 = "0.15"
16-
tokio-codec = "0.1"
17-
futures = "0.1"
18-
tokio = "0.1"
19-
bytes = "0.4"
17+
tokio = { version = "0.2", features = [ "io-util", "macros", "rt-core", "sync", "tcp", "time" ] }

0 commit comments

Comments
 (0)