diff --git a/Cargo.lock b/Cargo.lock index 7f97157109f..133ffdee5c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2570,7 +2570,7 @@ dependencies = [ [[package]] name = "libp2p-gossipsub" -version = "0.46.0" +version = "0.46.1" dependencies = [ "async-std", "asynchronous-codec 0.6.2", diff --git a/Cargo.toml b/Cargo.toml index 85c71dba47e..ddda60601b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -79,7 +79,7 @@ libp2p-core = { version = "0.41.1", path = "core" } libp2p-dcutr = { version = "0.11.0", path = "protocols/dcutr" } libp2p-dns = { version = "0.41.1", path = "transports/dns" } libp2p-floodsub = { version = "0.44.0", path = "protocols/floodsub" } -libp2p-gossipsub = { version = "0.46.0", path = "protocols/gossipsub" } +libp2p-gossipsub = { version = "0.46.1", path = "protocols/gossipsub" } libp2p-identify = { version = "0.44.0", path = "protocols/identify" } libp2p-identity = { version = "0.2.8" } libp2p-kad = { version = "0.45.1", path = "protocols/kad" } diff --git a/protocols/gossipsub/CHANGELOG.md b/protocols/gossipsub/CHANGELOG.md index a9dac438223..dd5fcf5febd 100644 --- a/protocols/gossipsub/CHANGELOG.md +++ b/protocols/gossipsub/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.46.1 - unreleased + +- Deprecate `Rpc` in preparation for removing it from the public API because it is an internal type. + See [PR 4833](https://github.com/libp2p/rust-libp2p/pull/4833). + ## 0.46.0 - Remove `fast_message_id_fn` mechanism from `Config`. diff --git a/protocols/gossipsub/Cargo.toml b/protocols/gossipsub/Cargo.toml index af6b5562014..dc987fec1b8 100644 --- a/protocols/gossipsub/Cargo.toml +++ b/protocols/gossipsub/Cargo.toml @@ -3,7 +3,7 @@ name = "libp2p-gossipsub" edition = "2021" rust-version = { workspace = true } description = "Gossipsub protocol for libp2p" -version = "0.46.0" +version = "0.46.1" authors = ["Age Manning "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" diff --git a/protocols/gossipsub/src/lib.rs b/protocols/gossipsub/src/lib.rs index dcc67558be1..15db5eba21d 100644 --- a/protocols/gossipsub/src/lib.rs +++ b/protocols/gossipsub/src/lib.rs @@ -125,7 +125,10 @@ pub use self::subscription_filter::{ }; pub use self::topic::{Hasher, Topic, TopicHash}; pub use self::transform::{DataTransform, IdentityTransform}; -pub use self::types::{Message, MessageAcceptance, MessageId, RawMessage, Rpc}; +pub use self::types::{Message, MessageAcceptance, MessageId, RawMessage}; + +#[deprecated(note = "Will be removed from the public API.")] +pub type Rpc = self::types::Rpc; pub type IdentTopic = Topic; pub type Sha256Topic = Topic;