-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f46a213
commit 4de6e89
Showing
1 changed file
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
//! Base types and utilities for Iroh | ||
#![cfg_attr(iroh_docsrs, feature(doc_auto_cfg))] | ||
|
||
// TODO: remove | ||
#[cfg(feature = "base32")] | ||
pub mod base32; | ||
|
||
// TODO: move to own crate | ||
#[cfg(feature = "ticket")] | ||
pub mod ticket; | ||
|
||
#[cfg(feature = "hash")] | ||
pub mod hash; | ||
mod hash; | ||
#[cfg(feature = "key")] | ||
pub mod key; | ||
mod key; | ||
#[cfg(feature = "key")] | ||
pub mod node_addr; | ||
mod node_addr; | ||
#[cfg(feature = "relay")] | ||
pub mod relay_map; | ||
mod relay_map; | ||
#[cfg(feature = "relay")] | ||
mod relay_url; | ||
#[cfg(feature = "ticket")] | ||
pub mod ticket; | ||
|
||
#[cfg(feature = "relay")] | ||
pub use self::relay_map::{ | ||
QuicConfig as RelayQuicConfig, RelayMap, RelayNode, DEFAULT_RELAY_QUIC_PORT, DEFAULT_STUN_PORT, | ||
}; | ||
#[cfg(feature = "relay")] | ||
pub use self::relay_url::RelayUrl; | ||
|
||
#[cfg(feature = "hash")] | ||
pub use self::hash::{BlobFormat, Hash, HashAndFormat}; | ||
|
||
#[cfg(feature = "key")] | ||
pub use self::key::{ | ||
KeyParsingError, NodeId, PublicKey, SecretKey, SharedSecret, Signature, PUBLIC_KEY_LENGTH, | ||
}; | ||
#[cfg(feature = "key")] | ||
pub use self::node_addr::NodeAddr; |