Files
ipass__ipass/rust/crates/ipass-core/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

21 lines
624 B
TOML

[package]
name = "ipass-core"
version = "2.0.0"
edition.workspace = true
publish = false
description = "iPass 内核:共享内存 / 账号 / 会话 / 存储 / 通用原语(不含任何插件业务语义)"
[lib]
# 只有 gateway 是 cdylib;内核与插件一律 rlib(动态模块的 ngx_module_t 签名
# 必须与 nginx 同源,且跨 .so 传 Rust 类型会双重 free,见 sso 的架构分析文档)
crate-type = ["rlib"]
[dependencies]
ngx.workspace = true
nginx-sys.workspace = true
serde.workspace = true
serde_json.workspace = true
sha2.workspace = true
getrandom.workspace = true
libc.workspace = true