Skip to content

Commit

Permalink
protocols/{dcutr,relay}: Expose error types (#2605)
Browse files Browse the repository at this point in the history
Co-authored-by: canewsin <canews.in@gmail.com>
  • Loading branch information
mxinden and canewsin committed Apr 4, 2022
1 parent 6cc3b4e commit 4d796fd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
6 changes: 5 additions & 1 deletion protocols/dcutr/CHANGELOG.md
@@ -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.
- Initial release.
4 changes: 4 additions & 0 deletions protocols/dcutr/src/lib.rs
Expand Up @@ -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"));
}
9 changes: 7 additions & 2 deletions protocols/relay/CHANGELOG.md
@@ -1,16 +1,21 @@
# 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]

- Update to `libp2p-core` `v0.32.0`.

- 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

Expand Down
7 changes: 7 additions & 0 deletions protocols/relay/src/v2.rs
Expand Up @@ -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);
Expand Down

0 comments on commit 4d796fd

Please sign in to comment.