forked from libp2p/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
muxers/mplex: Implement
AsyncRead
and AsyncWrite
for Substream
This aligns the public API of the `libp2p-mplex` module with the one from `libp2p-yamux`. This change has two benefits: 1. For standalone users of `libp2p-mplex`, the substreams itself are now useful, similar to `libp2p-yamux` and don't necessarily need to be polled via the `StreamMuxer`. The `StreamMuxer` only forwards to the `Async{Read,Write}` implementations. 2. This will reduce the diff of libp2p#2648 because we can chunk the one giant commit into smaller atomic ones.
- Loading branch information
1 parent
04f31cd
commit 0c7c309
Showing
4 changed files
with
103 additions
and
33 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
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.46.0" | ||
version = "0.47.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
@@ -83,7 +83,7 @@ libp2p-floodsub = { version = "0.36.0", path = "protocols/floodsub", optional = | |
libp2p-identify = { version = "0.36.1", path = "protocols/identify", optional = true } | ||
libp2p-kad = { version = "0.37.1", path = "protocols/kad", optional = true } | ||
libp2p-metrics = { version = "0.6.0", path = "misc/metrics", optional = true } | ||
libp2p-mplex = { version = "0.33.0", path = "muxers/mplex", optional = true } | ||
libp2p-mplex = { version = "0.34.0", path = "muxers/mplex", optional = true } | ||
libp2p-noise = { version = "0.36.0", path = "transports/noise", optional = true } | ||
libp2p-ping = { version = "0.36.0", path = "protocols/ping", optional = true } | ||
libp2p-plaintext = { version = "0.33.0", path = "transports/plaintext", optional = true } | ||
|
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-mplex" | |
edition = "2021" | ||
rust-version = "1.56.1" | ||
description = "Mplex multiplexing protocol for libp2p" | ||
version = "0.33.0" | ||
version = "0.34.0" | ||
authors = ["Parity Technologies <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
|
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