Ruling 16:删除危险的 /static/plugins alias(暴露整个 workspace 根,含各仓
data/*.json),改为 scripts/collect-plugin-dist.sh 收集 core 壳与各启用插件
www dist 进 build/{shell,static-plugins}(build/ 已 gitignore),conf 与
tests 模板同构改指收集目录。www/*.html 多页管理台删除后由 ipass-core 壳接管。
deploy/data-seed/plugin-config.json 种子三插件配置(tracked)。
Co-Authored-By: Claude Opus 4.8 <[email protected]>
31 lines
814 B
TOML
31 lines
814 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
|
|
ipass-plugin-domain.workspace = true
|
|
ipass-plugin-llm.workspace = true
|
|
ipass-plugin-apix.workspace = true
|
|
|
|
serde.workspace = true
|
|
serde_json.workspace = true
|
|
sha2.workspace = true
|
|
getrandom.workspace = true
|
|
libc.workspace = true
|