Update tokio to 1.0
authorMatt Corallo <git@bluematt.me>
Tue, 26 Jan 2021 20:38:19 +0000 (15:38 -0500)
committerMatt Corallo <git@bluematt.me>
Tue, 26 Jan 2021 23:37:04 +0000 (18:37 -0500)
commit5a403bdb137bd4324da5a2d03b618db4fdd5a2cb
treea16a0b46e468f3c82e004fa660615e760e826343
parentf151c029756622d06303252f918fce1b26809d23
Update tokio to 1.0

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.
lightning-net-tokio/Cargo.toml
lightning-net-tokio/src/lib.rs