[package]
name = "zenith-web"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
authors.workspace = true
description = "Zenith Web 应用框架:编译期 Trie 路由、类型化 Extractor、中间件 DAG、静态文件服务、统一错误处理"
keywords = ["zenith", "web", "framework", "router", "middleware"]
categories = ["web-programming", "network-programming"]
readme = "../../README.md"
[dependencies]
zenith-api.workspace = true
zenith-foundation.workspace = true
zenith-net = { workspace = true, default-features = false }
zenith-tls.workspace = true
zenith-http1.workspace = true
zenith-http2.workspace = true
zenith-http3.workspace = true
zenith-waf.workspace = true
zenith-cache.workspace = true
zenith-observability.workspace = true
zenith-capability.workspace = true
zenith-runtime = { workspace = true, optional = true }
zenith-proxy.workspace = true
zenith-forward = { workspace = true, default-features = false }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
rustc-hash.workspace = true
tracing.workspace = true
ring.workspace = true
[target.'cfg(target_os = "linux")'.dependencies]
zenith-linux = { workspace = true, optional = true, features = ["io_uring"] }
zenith-ebpf = { workspace = true, optional = true }
[lints]
workspace = true
[features]
default = ["full"]
full = ["runtime", "afxdp"]
runtime = ["dep:zenith-runtime"]
afxdp = ["zenith-net/linux", "zenith-forward/linux", "dep:zenith-linux", "dep:zenith-ebpf"]
[dev-dependencies]
pretty_assertions.workspace = true
smallvec.workspace = true