protocols/{dcutr,relay}: Expose error types (#2605)

Co-authored-by: canewsin <canews.in@gmail.com>
This commit is contained in:
Max Inden
2022-04-04 11:32:54 +02:00
committed by GitHub
parent 6cc3b4ec52
commit 4d796fdca1
4 changed files with 23 additions and 3 deletions

View File

@ -1,7 +1,11 @@
# 0.2.0 [unreleased]
- Expose `InboundUpgradeError` and `OutboundUpgradeError`. See [PR, 2586].
- Update to `libp2p-swarm` `v0.35.0`.
[PR 2586]: https://github.com/libp2p/rust-libp2p/pull/2586
# 0.1.0 [2022-02-22]
- Initial release.

View File

@ -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"));
}

View File

@ -1,8 +1,13 @@
# 0.8.0 [unreleased]
- Expose `{Inbound,Outbound}{Hop,Stop}UpgradeError`. See [PR 2586].
- Update to `libp2p-swarm` `v0.35.0`.
- Remove support for Circuit Relay v1 protocol.
- Remove support for Circuit Relay v1 protocol. See [PR 2549].
[PR 2549]: https://github.com/libp2p/rust-libp2p/pull/2549
[PR 2586]: https://github.com/libp2p/rust-libp2p/pull/2586
# 0.7.0 [2022-02-22]
@ -10,7 +15,7 @@
- Update to `libp2p-swarm` `v0.34.0`.
- Merge NetworkBehaviour's inject_\* paired methods (see PR 2445).
- Merge NetworkBehaviour's inject_\* paired methods (see [PR 2445]).
[PR 2445]: https://github.com/libp2p/rust-libp2p/pull/2445

View File

@ -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);