diff --git a/protocols/dcutr/CHANGELOG.md b/protocols/dcutr/CHANGELOG.md index 47bf0aa699b..fd2c8d4a8bc 100644 --- a/protocols/dcutr/CHANGELOG.md +++ b/protocols/dcutr/CHANGELOG.md @@ -1,7 +1,11 @@ # 0.2.0 [unreleased] +- Made DCUtR Error Types visibility to public (See PR https://github.com/libp2p/rust-libp2p/pull/2586) + > protocol::inbound::UpgradeError as InboundUpgradeError + > + > protocol::outbound::UpgradeError as OutboundUpgradeError - Update to `libp2p-swarm` `v0.35.0`. # 0.1.0 [2022-02-22] -- Initial release. \ No newline at end of file +- Initial release. diff --git a/protocols/dcutr/src/lib.rs b/protocols/dcutr/src/lib.rs index 5451f272101..20ca846d99b 100644 --- a/protocols/dcutr/src/lib.rs +++ b/protocols/dcutr/src/lib.rs @@ -25,6 +25,10 @@ pub mod behaviour; mod handler; mod protocol; +pub use protocol::{ + inbound::UpgradeError as InboundUpgradeError, outbound::UpgradeError as OutboundUpgradeError, +}; + mod message_proto { include!(concat!(env!("OUT_DIR"), "/holepunch.pb.rs")); } diff --git a/protocols/relay/CHANGELOG.md b/protocols/relay/CHANGELOG.md index 08130235c32..f30cb58f5f7 100644 --- a/protocols/relay/CHANGELOG.md +++ b/protocols/relay/CHANGELOG.md @@ -1,4 +1,12 @@ # 0.8.0 [unreleased] +- Made Relay Error Types visibility to public (see PR https://github.com/libp2p/rust-libp2p/pull/2586) + > inbound_hop::FatalUpgradeError as InboundHopFatalUpgradeError, + > + > inbound_stop::FatalUpgradeError as InboundStopFatalUpgradeError, + > + > outbound_hop::FatalUpgradeError as OutboundHopFatalUpgradeError, + > + > outbound_stop::FatalUpgradeError as OutboundStopFatalUpgradeError, - Update to `libp2p-swarm` `v0.35.0`. diff --git a/protocols/relay/src/v2.rs b/protocols/relay/src/v2.rs index a50d13a126f..7219ab3d69c 100644 --- a/protocols/relay/src/v2.rs +++ b/protocols/relay/src/v2.rs @@ -30,6 +30,13 @@ mod copy_future; mod protocol; pub mod relay; +pub use protocol::{ + inbound_hop::FatalUpgradeError as InboundHopFatalUpgradeError, + inbound_stop::FatalUpgradeError as InboundStopFatalUpgradeError, + outbound_hop::FatalUpgradeError as OutboundHopFatalUpgradeError, + outbound_stop::FatalUpgradeError as OutboundStopFatalUpgradeError, +}; + /// The ID of an outgoing / incoming, relay / destination request. #[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)] pub struct RequestId(u64);