Skip to content

Commit 33f1765

Browse files
feat(gossipsub): deprecate Rpc in preparation for making it private
Pull-Request: #4833.
1 parent 3016cec commit 33f1765

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ libp2p-core = { version = "0.41.1", path = "core" }
7979
libp2p-dcutr = { version = "0.11.0", path = "protocols/dcutr" }
8080
libp2p-dns = { version = "0.41.1", path = "transports/dns" }
8181
libp2p-floodsub = { version = "0.44.0", path = "protocols/floodsub" }
82-
libp2p-gossipsub = { version = "0.46.0", path = "protocols/gossipsub" }
82+
libp2p-gossipsub = { version = "0.46.1", path = "protocols/gossipsub" }
8383
libp2p-identify = { version = "0.44.0", path = "protocols/identify" }
8484
libp2p-identity = { version = "0.2.8" }
8585
libp2p-kad = { version = "0.45.1", path = "protocols/kad" }

protocols/gossipsub/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.46.1 - unreleased
2+
3+
- Deprecate `Rpc` in preparation for removing it from the public API because it is an internal type.
4+
See [PR 4833](https://github.com/libp2p/rust-libp2p/pull/4833).
5+
16
## 0.46.0
27

38
- Remove `fast_message_id_fn` mechanism from `Config`.

protocols/gossipsub/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "libp2p-gossipsub"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "Gossipsub protocol for libp2p"
6-
version = "0.46.0"
6+
version = "0.46.1"
77
authors = ["Age Manning <[email protected]>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"

protocols/gossipsub/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ pub use self::subscription_filter::{
125125
};
126126
pub use self::topic::{Hasher, Topic, TopicHash};
127127
pub use self::transform::{DataTransform, IdentityTransform};
128-
pub use self::types::{Message, MessageAcceptance, MessageId, RawMessage, Rpc};
128+
pub use self::types::{Message, MessageAcceptance, MessageId, RawMessage};
129+
130+
#[deprecated(note = "Will be removed from the public API.")]
131+
pub type Rpc = self::types::Rpc;
129132

130133
pub type IdentTopic = Topic<self::topic::IdentityHash>;
131134
pub type Sha256Topic = Topic<self::topic::Sha256Hash>;

0 commit comments

Comments
 (0)