mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-19 05:43:55 +01:00
5a403bdb13
This requires ensuring TcpStreams are set in nonblocking mode as tokio doesn't handle this for us anymore, so we adapt the public API to just accept std TcpStreams instead of an extra conversion hop. Luckily converting them is cheap.
19 lines
730 B
TOML
19 lines
730 B
TOML
[package]
|
|
name = "lightning-net-tokio"
|
|
version = "0.0.5"
|
|
authors = ["Matt Corallo"]
|
|
license = "Apache-2.0"
|
|
edition = "2018"
|
|
description = """
|
|
Implementation of the rust-lightning network stack using Tokio.
|
|
For Rust-Lightning clients which wish to make direct connections to Lightning P2P nodes, this is a simple alternative to implementing the required network stack, especially for those already using Tokio.
|
|
"""
|
|
|
|
[dependencies]
|
|
bitcoin = "0.24"
|
|
lightning = { version = "0.0.12", path = "../lightning" }
|
|
tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net", "time" ] }
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
|