Files
ssw__ipass/rust/gateway/Cargo.toml
T
admin 74aeefee58 refactor(plugin): P0-P2 插件化落地 —— workspace 化 + ipass-core + plugin-domain
- P0: rust/ 改 workspace(ipass-core 内核 + gateway 唯一 cdylib),
  [profile.release] 上移根、依赖收敛 workspace.dependencies;
  users::delete 的 stats::forget 依赖改为 on_delete 钩子注册表
- P1: 契约层 core/plugin.rs(Plugin trait)+ core/loc.rs(Switch 并集 +
  set_switch_fn,未实现变体保守 false);gateway PLUGINS 分发循环,
  不认领统一 404(插件绝不自行 404)
- P2: 身份端点下沉 core/api.rs(CorePlugin + CoreExt 扩展注册表,
  gateway 作装配根回填域名数/用量/连带回收/白名单校验);
  plugin-domain crate(domains + DomainEntry + sub: 前缀 + ResolveHandler
  + $proxy_backend_addr + 域名类端点含 purge)
- 行为等价:conf/nginx.conf、Dockerfile、tests 零改动,262 回归全绿
- 方案文档 docs/plugin/PLUGINIZATION_PLAN.md
2026-09-13 11:43:22 +08:00

29 lines
739 B
TOML

[package]
name = "ipass-gateway"
version = "2.0.0"
edition.workspace = true
publish = false
description = "尚数网 统一网关(iPass 山海关)—— nginx + Rust 扩展模块实现(模块壳 + 插件装配)"
[lib]
name = "ipass_gateway"
# cdylib 给 nginx 加载;rlib 便于单元测试
crate-type = ["cdylib", "rlib"]
[features]
default = ["export-modules"]
# 脱离 nginx 构建系统、单独产出动态模块时必须开启(生成 ngx_modules 表)
export-modules = []
[dependencies]
ngx.workspace = true
nginx-sys.workspace = true
ipass-core.workspace = true
plugin-domain.workspace = true
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
getrandom.workspace = true
libc.workspace = true