torrentdht 0.1.1

DHT discovery with mTLS handshake handoff; optional BitTorrent when the host opts in
Documentation
//! torrentdht — DHT discovery with mTLS handshake handoff; optional BitTorrent.

#![allow(clippy::collapsible_if)]

pub mod secure;
pub mod rpc;
pub mod net;
pub mod webseed;
pub mod ops;
pub mod nat;
pub mod types;
pub mod inbound;
pub mod swarm;
pub mod mse;
pub mod utp;
pub mod bencode;
pub mod client;
pub mod config;
pub mod layout;
pub mod dht;
pub mod error;
pub mod integrity;
pub mod metadata;
pub mod peer;
pub mod piece;
pub mod security;
pub mod session;
pub mod store;
pub mod torrent;
pub mod tracker;
pub mod wire;

pub use inbound::InboundHandler;
pub use client::Client;
pub use config::{
    BootstrapNode, Config, PeerDiscoveryMode, ResilienceConfig, SwarmSecurity, SwarmTransport,
};
pub use swarm::{validate_swarm_stack, SwarmBackend, SwarmStack};
pub use layout::TorrentLayout;
pub use rpc::validate_rpc_config;
pub use integrity::{
    build_integrity_image_async, default_sidecar_root, derive_signing_seed, load_signing_key,
    sidecar_root_for_config, sign_info_dict, signing_key_from_seed, validate_integrity_image,
    verify_info_dict, IntegrityConfig, IntegrityImageReport, IntegrityManifest, TorrentSignature,
    PUBLIC_KEY_LEN, SEED_LEN, SIGNATURE_LEN,
};
pub use ops::{format_status_table, scan_download_dir, DownloadStatus};
pub use error::{Error, Result};
pub use dht::DhtNode;
pub use metadata::fetch_metadata;
pub use session::{DownloadProgress, ResumeCheckpoint, Session};
pub use store::{FlushStats, StagedStore, StagedStoreConfig};
pub use torrent::{
    ContentLayout, InfoHash, InfoHashV2, MagnetLink, TorrentBuilder, TorrentFile, TorrentInfo,
    ensure_magnet_allowed, ensure_torrent_trusted, parse_magnet, pieces_for_selected_files,
    torrent_to_magnet, validate_signed_torrent_config,
};
pub use types::BlockKey;
pub use tracker::{announce, announce_http, AnnounceEvent};
pub use secure::{
    Approval, CredentialBundle, CredentialChannel, CredentialMode, EnvSecurePolicy, HandshakeOffer,
    Handoff, HandoffNotice, Identity, PeerEndpointStore, PolicyHandle, RatchetContext, SecureEnv,
    SecureNode, SecureNodeConfig, SecurePolicy, SecureTransport, SessionBroken, TlsMaterial,
};