iroh_base/
lib.rs

1//! Base types and utilities for Iroh
2#![cfg_attr(iroh_docsrs, feature(doc_cfg))]
3#![deny(missing_docs, rustdoc::broken_intra_doc_links)]
4#![cfg_attr(not(test), deny(clippy::unwrap_used))]
5
6#[cfg(feature = "key")]
7mod endpoint_addr;
8#[cfg(feature = "key")]
9mod key;
10#[cfg(feature = "relay")]
11mod relay_url;
12
13#[cfg(feature = "key")]
14pub use self::endpoint_addr::{EndpointAddr, TransportAddr};
15#[cfg(feature = "key")]
16pub use self::key::{EndpointId, KeyParsingError, PublicKey, SecretKey, Signature, SignatureError};
17#[cfg(feature = "relay")]
18pub use self::relay_url::{RelayUrl, RelayUrlParseError};