Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Dec 11, 2024
1 parent f46a213 commit 4de6e89
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions iroh-base/src/lib.rs
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;

0 comments on commit 4de6e89

Please sign in to comment.