Files
ipass-plugin-cache/rust/vendor/ngx-rust/examples/Cargo.toml
T
ssw 43718bd0c4 iPass cache gateway 源码
容量管理: zones.rs 直读 nginx file_cache 共享内存记账(双轴: 磁盘 + keys_zone 索引内存), ?scan=1 扫盘上限 20 万文件; POST /api/admin/cache/purge 整区清理(只删文件不删目录, 根治 [crit] mkdir failed); POST /api/admin/cache/invalidate 按制品精准失效(预览->确认两步式, glob/子串, 删除上限 5000/扫描上限 20 万); GET /api/admin/cache 新增 capacity 块; 前端容量面板 + 按制品失效工具条; 测试 test-cache-capacity.sh 48/48(容量 27 + 精准失效 21, 含 EXPECT_MIN 护栏与前端静态契约); docs 容量管理章节
2026-09-21 09:25:11 +08:00

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