rama_net/
lib.rs

1//! Rama network types and utilities.
2//!
3//! Protocols such as tcp, http, tls, etc are not explicitly implemented here,
4//! see the relevant `rama` crates for this.
5//!
6//! Learn more about `rama`:
7//!
8//! - Github: <https://github.com/plabayo/rama>
9//! - Book: <https://ramaproxy.org/book/>
10
11#![doc(
12    html_favicon_url = "https://raw.githubusercontent.com/plabayo/rama/main/docs/img/old_logo.png"
13)]
14#![doc(html_logo_url = "https://raw.githubusercontent.com/plabayo/rama/main/docs/img/old_logo.png")]
15#![cfg_attr(docsrs, feature(doc_auto_cfg, doc_cfg))]
16#![cfg_attr(test, allow(clippy::float_cmp))]
17#![cfg_attr(not(test), warn(clippy::print_stdout, clippy::dbg_macro))]
18
19pub mod address;
20pub mod asn;
21pub mod client;
22pub mod conn;
23pub mod forwarded;
24pub mod mode;
25pub mod stream;
26pub mod test_utils;
27pub mod user;
28
29pub(crate) mod proto;
30#[doc(inline)]
31pub use proto::Protocol;
32
33#[cfg(feature = "http")]
34pub mod transport;
35
36#[cfg(feature = "http")]
37pub mod http;
38
39#[cfg(feature = "tls")]
40pub mod tls;
41
42#[cfg(any(feature = "tls", feature = "http"))]
43pub mod fingerprint;
44
45#[cfg(any(windows, unix))]
46pub use ::socket2 as socket;