Files
ssw-mpc/demo/Cargo.toml
T
admin 4ec4147122 feat(demo): 新增 Rust 版算子集市,23 个模块对齐 Python 版 API 契约
- 新 workspace 成员 demo/(mpc-demo 二进制):HTTP/1.1 与 JSON 全部手写,
  零外部依赖,静态页 include_str! 编进二进制,仍是单文件交付
- 前端 23 个页面与 CSS 从 ssw-mvp/demo 原样复制,一行未改;--assets 可改磁盘读
- 20 个模块真调 mpc-* crate 计算(psi/he/sql/ml/fl/vault/zkp/runtime/tee/orch),
  核心结果非写死;security_audit、secure_scenario 原为 LLM 驱动,改本地规则+模板,
  响应带 mode/note/engine 如实标注;k8s_two_party 映射本仓 deploy/ray
- 两处能力差异已在 README 声明:secure_mlp 为明文 MLP、secure_stats 统计层明文
- 修 aggregator_chain 前端 SecureSum 行按列求和的笔误(原整行 NaN)
- handler 错误统一返 400 对齐 Python 版;.gitignore 的 /refs/nax 去尾斜杠,
  否则匹配不到本机的 Finder 别名文件
2026-11-05 20:12:11 +08:00

38 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "mpc-demo"
description = "尚数网算子集市的 Rust 对应版本:纯 std HTTP + mpc-* 真算法,静态页编译进二进制"
version.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
[[bin]]
name = "mpc-demo"
path = "src/main.rs"
# 全部是仓内 path 依赖,不引一条外部 crate:HTTP/1.1 与 JSON 都手写。
# 这样 demo 仍是「一个二进制 scp 上去就能跑」,跟框架交付形态一致。
[dependencies]
mpc-core = { path = "../crates/mpc-core" }
mpc-vault = { path = "../crates/mpc-vault" }
mpc-psi = { path = "../crates/mpc-psi" }
mpc-he = { path = "../crates/mpc-he" }
mpc-sql = { path = "../crates/mpc-sql" }
mpc-ml = { path = "../crates/mpc-ml" }
mpc-fl = { path = "../crates/mpc-fl" }
mpc-data = { path = "../crates/mpc-data" }
mpc-policy = { path = "../crates/mpc-policy" }
mpc-runtime = { path = "../crates/mpc-runtime" }
mpc-ir = { path = "../crates/mpc-ir" }
mpc-zkp = { path = "../crates/mpc-zkp" }
mpc-proto = { path = "../crates/mpc-proto" }
mpc-node = { path = "../crates/mpc-node" }
mpc-tee = { path = "../crates/mpc-tee" }
mpc-orch = { path = "../crates/mpc-orch" }
[features]
default = []
# 主 CI 跑 `cargo test --workspace --features secure`,这里透传给需要密态路径的
# crate。缺了它 demo 在闸门里会静默退化成明文层,对拍就失去意义。
secure = ["mpc-sql/secure", "mpc-fl/secure"]