-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
transports/tcp: Simplify IfWatcher integration (#2813)
With if-watch `2.0.0` `IfWatcher::new` is not async anymore, hence the `IfWatch` wrapping logic is obsolete. Co-authored-by: Thomas Eizinger <[email protected]>
- Loading branch information
1 parent
c650dc1
commit 457fb51
Showing
8 changed files
with
124 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "libp2p" | |
edition = "2021" | ||
rust-version = "1.60.0" | ||
description = "Peer-to-peer networking library" | ||
version = "0.48.0" | ||
version = "0.49.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -110,7 +110,7 @@ smallvec = "1.6.1" | |
libp2p-deflate = { version = "0.36.0", path = "transports/deflate", optional = true } | ||
libp2p-dns = { version = "0.36.0", path = "transports/dns", optional = true, default-features = false } | ||
libp2p-mdns = { version = "0.40.0", path = "protocols/mdns", optional = true, default-features = false } | ||
libp2p-tcp = { version = "0.36.0", path = "transports/tcp", default-features = false, optional = true } | ||
libp2p-tcp = { version = "0.37.0", path = "transports/tcp", default-features = false, optional = true } | ||
libp2p-websocket = { version = "0.38.0", path = "transports/websocket", optional = true } | ||
|
||
[target.'cfg(not(target_os = "unknown"))'.dependencies] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name = "libp2p-tcp" | |
edition = "2021" | ||
rust-version = "1.56.1" | ||
description = "TCP/IP transport protocol for libp2p" | ||
version = "0.36.0" | ||
version = "0.37.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -14,9 +14,7 @@ categories = ["network-programming", "asynchronous"] | |
async-io-crate = { package = "async-io", version = "1.2.0", optional = true } | ||
futures = "0.3.8" | ||
futures-timer = "3.0" | ||
if-watch = { version = "1.1.1", optional = true } | ||
if-addrs = { version = "0.7.0", optional = true } | ||
ipnet = "2.0.0" | ||
if-watch = "2.0.0" | ||
libc = "0.2.80" | ||
libp2p-core = { version = "0.36.0", path = "../../core", default-features = false } | ||
log = "0.4.11" | ||
|
@@ -25,10 +23,10 @@ tokio-crate = { package = "tokio", version = "1.19.0", default-features = false, | |
|
||
[features] | ||
default = ["async-io"] | ||
tokio = ["tokio-crate", "if-addrs"] | ||
async-io = ["async-io-crate", "if-watch"] | ||
tokio = ["tokio-crate"] | ||
async-io = ["async-io-crate"] | ||
|
||
[dev-dependencies] | ||
async-std = { version = "1.6.5", features = ["attributes"] } | ||
tokio-crate = { package = "tokio", version = "1.0.1", default-features = false, features = ["net", "rt"] } | ||
tokio-crate = { package = "tokio", version = "1.0.1", default-features = false, features = ["net", "rt", "macros"] } | ||
env_logger = "0.9.0" |
Oops, something went wrong.