Skip to main content

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//! - Common project metadata
7
8pub mod defaults;
9pub mod errors;
10
11// Re-export commonly used items at crate root
12pub use defaults::*;
13pub use errors::*;
14
15/// Project name.
16pub const PROJECT_NAME: &str = "trojan-rs";
17/// Project version (from Cargo.toml).
18pub const VERSION: &str = env!("CARGO_PKG_VERSION");