Skip to main content

tunnet_core/
lib.rs

1pub mod acl;
2pub mod acl_hook;
3pub mod agent_config;
4#[cfg(feature = "managed")]
5pub mod control;
6pub mod coordinator;
7pub mod direct;
8#[cfg(feature = "dns")]
9pub mod dns_stub;
10pub mod identity;
11pub mod ipc;
12pub mod iroh_pool;
13pub mod known_hosts;
14#[cfg(feature = "direct")]
15pub mod mdns_relay;
16pub mod node;
17pub mod ping;
18#[cfg(feature = "recording")]
19pub mod recording;
20pub mod routing;
21pub mod secret_store;
22#[cfg(feature = "send")]
23pub mod send;
24#[cfg(feature = "serve")]
25pub mod serve;
26pub mod state;
27pub mod stream;
28pub mod stream_proxy;
29#[cfg(feature = "managed")]
30pub mod sync;
31#[cfg(feature = "tunnel")]
32pub mod tunnel;
33#[cfg(feature = "managed")]
34pub mod ws_client;
35
36pub use agent_config::{TunnetConfig, load_dns, load_firewall};
37pub use secret_store::{
38    AgentSecrets, NetworkSecrets, SealPolicy, SealTier, load_agent, persist_agent,
39};
40
41pub use acl::{AclEngine, SelfIdentity};
42pub use acl_hook::AclHook;
43#[cfg(feature = "managed")]
44pub use control::{ManagementClient, SignedClient, UnauthedClient};
45pub use identity::AgentIdentity;
46pub use iroh_pool::ConnPool;
47#[cfg(feature = "direct")]
48pub use node::DirectNetworkRuntime;
49pub use node::{CoreNode, CoreNodeConfig, KillSshHook};
50pub use routing::{PeerInfo, RoutingTable};
51#[cfg(feature = "send")]
52pub use send::{SendConfig, SendManager, TransferDirection, TransferRecord, TransferStatus};
53#[cfg(feature = "serve")]
54pub use serve::{ServeAcl, ServeManager};
55pub use state::{CliAuthTokens, DirectState, ManagedState, NodeMode, PersistedState, StatePaths};
56pub use stream::{
57    StreamHandler, TUNNEL_STREAM_ALPN, dial_stream, serve_stream_acceptor, serve_stream_connection,
58};
59pub use stream_proxy::stream_handler;
60#[cfg(feature = "tunnel")]
61pub use tunnel::TunnelManager;
62pub use tunnet_common as common;