ci / gate (push) Waiting to run
此前 workspace 版本停在 0.1.0,而仓里已有 v0.2.0 tag ⇒ 二进制 --version 报的 版本号与 tag 长期不符,设备上第三方编译的 mpc 也无法自证是哪一版。 本次按 tag 顺延到 0.3.0(v0.2.0 之后已有 2 个提交)。
37 lines
944 B
TOML
37 lines
944 B
TOML
[workspace]
|
||
resolver = "2"
|
||
members = ["crates/*", "demo", "examples"]
|
||
|
||
[workspace.package]
|
||
version = "0.3.0"
|
||
edition = "2021"
|
||
license = "Apache-2.0"
|
||
rust-version = "1.85"
|
||
authors = ["SSW-MPC Contributors"]
|
||
|
||
[workspace.dependencies]
|
||
mpc-core = { path = "crates/mpc-core", default-features = false }
|
||
mpc-tee = { path = "crates/mpc-tee", default-features = false }
|
||
mpc-proto = { path = "crates/mpc-proto", default-features = false }
|
||
|
||
# dev 关 incremental:workspace member 才进得了 sccache,
|
||
# 也避免 target/debug/incremental 暴涨。测试仍用 unwind。
|
||
[profile.dev]
|
||
incremental = false
|
||
|
||
# 交付物是单二进制:fat LTO + 去符号 + abort 式 panic。
|
||
# release 不继承 dev,测试需要 unwind。
|
||
[profile.release]
|
||
opt-level = 3
|
||
lto = "fat"
|
||
codegen-units = 1
|
||
panic = "abort"
|
||
strip = true
|
||
overflow-checks = false
|
||
|
||
# 基准测试用:保留符号但全开优化
|
||
[profile.bench]
|
||
inherits = "release"
|
||
strip = false
|
||
debug = 1
|