- 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 环回链路)
71 lines
1.5 KiB
TOML
71 lines
1.5 KiB
TOML
[package]
|
|
name = "examples"
|
|
version = "0.0.0"
|
|
publish = false
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
homepage.workspace = true
|
|
repository.workspace = true
|
|
rust-version.workspace = true
|
|
# https://github.com/dependabot/dependabot-core/issues/1156
|
|
autobins = false
|
|
|
|
build = "../build.rs"
|
|
|
|
[dependencies]
|
|
nginx-sys = { path = "../nginx-sys/" }
|
|
ngx = { path = "../", default-features = false, features = ["std"] }
|
|
|
|
[dev-dependencies]
|
|
aws-sign-v4 = "0.3.0"
|
|
chrono = "0.4.27"
|
|
http = "1.1.0"
|
|
# use unicode-rs idna backend for lower MSRV and faster builds
|
|
idna_adapter = "=1.1.0"
|
|
libc = "0.2.168"
|
|
tokio = { version = "1.33.0", features = ["full"] }
|
|
|
|
[[example]]
|
|
name = "curl"
|
|
path = "curl.rs"
|
|
crate-type = ["cdylib"]
|
|
|
|
[[example]]
|
|
name = "awssig"
|
|
path = "awssig.rs"
|
|
crate-type = ["cdylib"]
|
|
|
|
[[example]]
|
|
name = "httporigdst"
|
|
path = "httporigdst.rs"
|
|
crate-type = ["cdylib"]
|
|
required-features = ["linux"]
|
|
|
|
[[example]]
|
|
name = "upstream"
|
|
path = "upstream.rs"
|
|
crate-type = ["cdylib"]
|
|
|
|
[[example]]
|
|
name = "async"
|
|
path = "async.rs"
|
|
crate-type = ["cdylib"]
|
|
|
|
[[example]]
|
|
name = "shared_dict"
|
|
path = "shared_dict.rs"
|
|
crate-type = ["cdylib"]
|
|
|
|
[features]
|
|
default = ["export-modules", "ngx/vendored"]
|
|
# Generate `ngx_modules` table with module exports
|
|
# The exports table is required for building loadable modules with --crate-type cdylib
|
|
# outside of the NGINX buildsystem. However, cargo currently does not detect
|
|
# this configuration automatically.
|
|
# See https://github.com/rust-lang/rust/issues/20267
|
|
export-modules = []
|
|
linux = []
|
|
|
|
[lints]
|
|
workspace = true
|