Skip to content

Commit 1eecde6

Browse files
feat(propeller): made propeller protocol
1 parent b433556 commit 1eecde6

30 files changed

+4979
-16
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
- [`libp2p-kad` CHANGELOG](protocols/kad/CHANGELOG.md)
1818
- [`libp2p-mdns` CHANGELOG](protocols/mdns/CHANGELOG.md)
1919
- [`libp2p-ping` CHANGELOG](protocols/ping/CHANGELOG.md)
20+
- [`libp2p-propeller` CHANGELOG](protocols/propeller/CHANGELOG.md)
2021
- [`libp2p-relay` CHANGELOG](protocols/relay/CHANGELOG.md)
2122
- [`libp2p-request-response` CHANGELOG](protocols/request-response/CHANGELOG.md)
2223
- [`libp2p-rendezvous` CHANGELOG](protocols/rendezvous/CHANGELOG.md)

Cargo.lock

Lines changed: 160 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ members = [
4848
"protocols/rendezvous",
4949
"protocols/request-response",
5050
"protocols/stream",
51+
"protocols/propeller",
5152
"protocols/upnp",
5253
"swarm-derive",
5354
"swarm-test",
@@ -102,6 +103,7 @@ libp2p-rendezvous = { version = "0.17.0", path = "protocols/rendezvous" }
102103
libp2p-request-response = { version = "0.29.0", path = "protocols/request-response" }
103104
libp2p-server = { version = "0.12.7", path = "misc/server" }
104105
libp2p-stream = { version = "0.4.0-alpha", path = "protocols/stream" }
106+
libp2p-propeller = { version = "0.1.0", path = "protocols/propeller" }
105107
libp2p-swarm = { version = "0.47.0", path = "swarm" }
106108
libp2p-swarm-derive = { version = "=0.35.1", path = "swarm-derive" } # `libp2p-swarm-derive` may not be compatible with different `libp2p-swarm` non-breaking releases. E.g. `libp2p-swarm` might introduce a new enum variant `FromSwarm` (which is `#[non-exhaustive]`) in a non-breaking release. Older versions of `libp2p-swarm-derive` would not forward this enum variant within the `NetworkBehaviour` hierarchy. Thus the version pinning is required.
107109
libp2p-swarm-test = { version = "0.6.0", path = "swarm-test" }

libp2p/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## 0.56.0
22

3+
- Add support for `libp2p-propeller` protocol behind `propeller` feature flag.
4+
See [PR 6169](https://github.com/libp2p/rust-libp2p/pull/6169)
5+
36
- Remove `async-std` support.
47
See [PR 6074](https://github.com/libp2p/rust-libp2p/pull/6074)
58
- Remove deprecated `Transport::with_bandwidth_logging`,

libp2p/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ full = [
4949
"webtransport-websys",
5050
"yamux",
5151
"upnp",
52+
"propeller",
5253
]
5354

5455
autonat = ["dep:libp2p-autonat"]
@@ -88,6 +89,7 @@ websocket = ["dep:libp2p-websocket"]
8889
webtransport-websys = ["dep:libp2p-webtransport-websys"]
8990
yamux = ["dep:libp2p-yamux"]
9091
upnp = ["dep:libp2p-upnp"]
92+
propeller = ["dep:libp2p-propeller"]
9193

9294
[dependencies]
9395
bytes = "1"
@@ -112,6 +114,7 @@ libp2p-noise = { workspace = true, optional = true }
112114
libp2p-ping = { workspace = true, optional = true }
113115
libp2p-plaintext = { workspace = true, optional = true }
114116
libp2p-pnet = { workspace = true, optional = true }
117+
libp2p-propeller = { workspace = true, optional = true }
115118
libp2p-relay = { workspace = true, optional = true }
116119
libp2p-rendezvous = { workspace = true, optional = true }
117120
libp2p-request-response = { workspace = true, optional = true }

libp2p/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ pub use libp2p_plaintext as plaintext;
9090
#[cfg(feature = "pnet")]
9191
#[doc(inline)]
9292
pub use libp2p_pnet as pnet;
93+
#[cfg(feature = "propeller")]
94+
#[doc(inline)]
95+
pub use libp2p_propeller as propeller;
9396
#[cfg(feature = "quic")]
9497
#[cfg(not(target_arch = "wasm32"))]
9598
pub use libp2p_quic as quic;

protocols/propeller/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## 0.1.0
2+
3+
- Created propeller
4+
See [PR 6169](https://github.com/libp2p/rust-libp2p/pull/6169)
5+

0 commit comments

Comments
 (0)