Skip to main content

sfo_reuseport/
lib.rs

1#![deny(unsafe_code)]
2
3#[cfg(any(
4    all(feature = "runtime-tokio", feature = "runtime-async-std"),
5))]
6compile_error!("features `runtime-tokio` and `runtime-async-std` are mutually exclusive");
7
8#[cfg(not(any(feature = "runtime-tokio", feature = "runtime-async-std")))]
9compile_error!("enable exactly one runtime feature: `runtime-tokio` or `runtime-async-std`");
10
11pub mod core;
12pub(crate) mod platform;
13pub mod runtime;
14
15pub use crate::core::{
16    Error, PacketMeta, QuicCidGenerator, QuicServer, ServerRuntime, ServerRuntimeConfig,
17    SocketInitCallback, SocketOptions, TcpServer, TcpServiceConfig, TransparentMode, UdpServer,
18    UdpServiceConfig, UdpSocket, WorkerCount, DEFAULT_ROUTED_PACKET_CHANNEL_CAPACITY,
19};
20pub use crate::runtime::{spawn_local, TaskHandle, TcpStream};