borer_core/lib.rs
1#![doc = include_str!("../README.md")]
2
3#[macro_use]
4extern crate log;
5
6/// Address list management for routing decisions (domains and IPs).
7pub mod address_list;
8/// Dialers and transport-specific outbound connection builders.
9pub mod dial;
10/// Masquerade response handling for non-proxy traffic.
11pub mod masquerade;
12/// Protocol parsers and serializers used by the proxy core.
13pub mod proto;
14/// HTTP and SOCKS proxy connection handling.
15pub mod proxy;
16
17pub use address_list::{DirectList, ProxyList};
18#[cfg(feature = "stats")]
19/// Optional statistics HTTP server.
20pub mod stats_server;
21/// Shared in-memory traffic and connection store.
22pub mod store;
23/// Stream wrappers and transport adapters.
24pub mod stream;
25/// TLS utilities used by the transport implementations.
26pub mod tls;
27/// Trojan protocol server-side connection handling.
28pub mod trojan;
29
30/// Re-export of the SOCKS/Trojan address type used across the crate.
31pub use socks5_proto::Address;
32
33pub(crate) const CRLF: [u8; 2] = [0x0d, 0x0a];