1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! A [***Circuit Relay v2***] protocol implementation
//!
//! [***Circuit Relay v2***]: https://github.com/libp2p/specs/blob/master/relay/circuit-v2.md

#![cfg_attr(docsrs, feature(doc_cfg))]

mod proto;

mod rpc;
pub use rpc::*;

mod transport;
pub use transport::*;

mod errors;
pub use errors::*;

mod protocols;
pub use protocols::*;

/// Protocol id for `stop protocol`.
pub const PROTOCOL_CIRCUIT_RELAY_STOP: &str = "/libp2p/circuit/relay/0.2.0/stop";

/// Protocol id for `hop protocol`.
pub const PROTOCOL_CIRCUIT_RELAY_HOP: &str = "/libp2p/circuit/relay/0.2.0/hop";

/// Protocol id for `DCUtR`.
pub const PROTOCOL_DCUTR: &str = "/libp2p/dcutr";