灵符lingfu

ling-net

↓ 0 downloads

Async networking — HTTP, WebSocket, QUIC, and peer-to-peer

Keywords net, async, http, quic, websocket, p2p
lingfu install ling-net
LicenseApache-2.0 OR MIT
AuthorsLing Lin, Sanny Lin
READMECode / FilesVersionsDependency GraphDependentsSecurityBuildsSettings

Code / Files (26)

src/lib.rs
//! ling-net — async networking for Ling.
//!
//! Feature flags (all off by default except `http`):
//! - `http`      — axum server + reqwest client
//! - `websocket` — tokio-tungstenite
//! - `quic`      — quinn (QUIC/HTTP-3)
//! - `grpc`      — tonic + prost
//! - `lingtp`    — lingtp:// (raw-TCP, PQ-secure: ML-DSA-87 + hybrid KEM
//!   handshake, XChaCha20-Poly1305 + DICE-42 cascade record layer)

pub mod error;
pub mod types;

#[cfg(feature = "http")]
pub mod http;

#[cfg(feature = "lingtp")]
pub mod lingtp;

pub use error::NetError;
pub use types::{HttpMethod, Request, Response};

pub const VERSION: &str = env!("CARGO_PKG_VERSION");

← Back to index