Files
ipass__ipass/rust/vendor/ngx-rust/Cargo.toml
T
admin 5c307ba1aa iPass 山海关:Rust 动态模块版全量入库
- vanilla nginx + Rust 动态模块(取代 OpenResty+Lua),共享内存为运行期真源
- 三域名分流 18098 ssl:mdm 管理台 / lm LLM 代理 / *.dm 企业转发,共用 *.mayishangshu.cn 通配符证书(证书不入库)
- LLM 统一出口:同 Key 鉴权、上游 Key 替换、白名单、限流配额、SSE
- 回归夹具 tests/(网关 55 + LLM 34 = 89 断言,夹具 cp 覆盖重置)
- 文档:readme(16 章)+ CLAUDE.md + conf/tls/README(acme.sh 证书管理、hairpin 环回链路)
2026-09-11 15:37:09 +08:00

85 lines
2.0 KiB
TOML

[workspace]
members = [
"nginx-src",
"nginx-sys",
"examples",
]
[workspace.package]
edition = "2024"
license = "Apache-2.0"
homepage = "https://github.com/nginx/ngx-rust"
repository = "https://github.com/nginx/ngx-rust"
rust-version = "1.85.0"
[workspace.lints.clippy]
alloc_instead_of_core = "warn"
borrow_as_ptr = "warn"
std_instead_of_alloc = "warn"
std_instead_of_core = "warn"
[workspace.lints.rust]
rust-2024-compatibility = "warn"
[package]
name = "ngx"
version = "0.5.0"
autoexamples = false
categories = ["api-bindings", "network-programming"]
description = "FFI bindings to NGINX"
include = [
"/build.rs",
"/src",
"/*.md",
"LICENSE",
]
keywords = ["nginx", "module", "sys"]
edition.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
rust-version.workspace = true
[package.metadata.docs.rs]
all-features = true
default-target = "x86_64-unknown-linux-gnu"
targets = []
[dependencies]
allocator-api2 = { version = "0.4.0", default-features = false, features = ["fresh-rust"] }
async-task = { version = "4.7.1", optional = true }
lock_api = "0.4.13"
nginx-sys = { path = "nginx-sys", version = "0.5.0"}
pin-project-lite = { version = "0.2.16", optional = true }
[features]
default = ["std"]
# Enables a minimal async runtime built on top of the NGINX event loop.
async = [
"alloc",
"dep:async-task",
"dep:pin-project-lite",
]
# Provides APIs that require allocations via the `alloc` crate.
alloc = ["allocator-api2/alloc"]
# Enables serialization support for some of the provided and re-exported types.
serde = [
"allocator-api2/serde",
]
# Provides APIs that require the standard library.
std = [
"alloc",
"allocator-api2/std"
]
# Enables the build scripts to build a copy of nginx source and link against it.
vendored = ["nginx-sys/vendored"]
[badges]
maintenance = { status = "experimental" }
[dev-dependencies]
tempfile = { version = "3.20.0", default-features = false }
[lints]
workspace = true