Skip to main content

krot_server/
lib.rs

1//! KROT relay server library.
2//!
3//! Public API mirrors what the `krot-server` binary uses at startup: a
4//! [`Server`] struct that owns the QUIC endpoint, the persistent identity,
5//! the tunnel registry and the authorized-keys index. Tests and embeddings
6//! construct one via [`Server::start`] with a [`ServerConfig`].
7
8#![deny(missing_debug_implementations)]
9
10pub mod admin;
11pub mod admin_api;
12pub mod config;
13pub mod domain;
14pub mod error;
15pub mod fsync;
16pub mod handshake;
17pub mod identity;
18pub mod keys;
19pub mod metrics;
20pub mod peer_lookup;
21pub mod peers;
22pub mod rate;
23pub mod registry;
24pub mod server;
25pub mod session;
26pub mod sockets;
27pub mod tunnel;
28
29pub use config::{DomainTls, Mode, ServerConfig};
30pub use error::ServerError;
31pub use identity::ServerIdentity;
32pub use server::Server;