anytls_rs/lib.rs
1//! AnyTLS protocol implementation in Rust
2//!
3//! A proxy protocol attempting to mitigate TLS in TLS fingerprinting issues.
4//!
5//! # Architecture
6//!
7//! - **protocol**: Frame and codec implementation
8//! - **session**: Session and stream management
9//! - **padding**: Traffic obfuscation padding
10//! - **util**: Utilities (error handling, auth, TLS config)
11//! - **client**: Client implementation
12//! - **server**: Server implementation
13
14/// Client implementation
15pub mod client;
16/// Padding module for traffic obfuscation
17pub mod padding;
18/// Protocol layer: Frame and codec implementation
19pub mod protocol;
20/// Server implementation
21pub mod server;
22/// Session layer: Session and stream management
23pub mod session;
24/// Utility modules (error, auth, TLS, etc.)
25pub mod util;
26
27pub use client::*;
28pub use padding::*;
29pub use protocol::*;
30pub use session::*;
31pub use util::*;
32
33// Re-export commonly used types
34pub use util::auth::{authenticate_client, hash_password, send_authentication};
35pub use util::error::{AnyTlsError, Result};