Rust Web 服务公共工具库
rust-web-utils
基于 http crate 通用类型实现, 不绑定框架, 提供 Axum / tower 集成。行为与 Go 版 go-web-utils 对齐, 同一产品换后端语言时前端无感。
[dependencies]
rust-web-utils = { git = "https://github.com/woodchen-ink/rust-web-utils", tag = "v0.1.0", features = ["axum", "tower"] }iputil
客户端真实 IP、可信代理、IP 与 CIDR 判断
uautil
机器人 / 浏览器识别与 tower 拦截中间件
resputil
统一 JSON 响应 { code, data, msg }, 永不返回 null
timex
业务时区显式初始化与自然日 / 周 / 月边界
cookieutil
安全默认值的认证 Cookie 与 CSRF double-submit
cronutil
空轮退避、防重叠、去抖聚合队列
nextstatic
Next.js 15/16 静态导出托管, RSC 头与动态路由回退
MIT License · @woodchen-ink