ling_net/lib.rs
1//! ling-net — async networking for Ling.
2//!
3//! Feature flags (all off by default except `http`):
4//! - `http` — axum server + reqwest client
5//! - `websocket` — tokio-tungstenite
6//! - `quic` — quinn (QUIC/HTTP-3)
7//! - `grpc` — tonic + prost
8
9pub mod error;
10pub mod types;
11
12#[cfg(feature = "http")]
13pub mod http;
14
15#[cfg(feature = "websocket")]
16pub mod ws;
17
18#[cfg(feature = "quic")]
19pub mod quic;
20
21pub use error::NetError;
22pub use types::{HttpMethod, Request, Response};
23
24pub const VERSION: &str = env!("CARGO_PKG_VERSION");