trojan_core/lib.rs
1//! Core types and constants shared across trojan crates.
2//!
3//! This crate provides:
4//! - Default configuration values
5//! - Error type constants for metrics/logging
6//! - I/O utilities (relay, stream adapters)
7//! - Transport adapters (WebSocket, etc.)
8//! - Common project metadata
9
10pub mod defaults;
11pub mod errors;
12pub mod io;
13pub mod transport;
14
15// Re-export commonly used items at crate root
16pub use defaults::*;
17pub use errors::*;
18
19/// Project name.
20pub const PROJECT_NAME: &str = "trojan-rs";
21/// Project version (from Cargo.toml).
22pub const VERSION: &str = env!("CARGO_PKG_VERSION");