The workspace has no [profile] section; shipped binaries are the cargo release default (no LTO, 16 codegen units). release-lto adds fat LTO and one codegen unit and nothing else. No target-cpu: the CPU kernels pick GGML arithmetic branches with cfg!(target_feature), so target-cpu would change bits. See docs/experiments/parity-audit-5090.md. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
28 lines
2.4 KiB
TOML
28 lines
2.4 KiB
TOML
[workspace]
|
|
resolver = "3"
|
|
members = ["crates/backend-api", "crates/cpu-kernels", "crates/cpu-sys", "crates/cpu-worker", "crates/gguf", "crates/gptoss", "crates/gptoss-igpu", "crates/harmony", "crates/igpu", "crates/kar-codec", "crates/igpu-worker", "crates/shm", "crates/openvino", "crates/npu-service", "crates/gptoss-npu", "crates/npu-worker", "crates/gpu-npu-worker", "crates/tokenizer", "control-plane", "desktop-core", "crates/libc-shim", "crates/runtime-client", "crates/model-format", "crates/offline-tools", "crates/quant-core", "crates/context", "crates/cuda-driver", "crates/leleka-runtime", "crates/leleka-memory", "crates/deploy", "crates/native-cpu-expert", "crates/sampler-ref", "crates/experimental-ref", "crates/serving-policy"]
|
|
default-members = ["crates/backend-api", "crates/cpu-kernels", "crates/cpu-sys", "crates/cpu-worker", "crates/gguf", "crates/gptoss", "crates/gptoss-igpu", "crates/harmony", "crates/igpu", "crates/kar-codec", "crates/igpu-worker", "crates/shm", "crates/openvino", "crates/npu-service", "crates/gptoss-npu", "crates/npu-worker", "crates/gpu-npu-worker", "crates/tokenizer", "control-plane", "desktop-core", "crates/runtime-client", "crates/model-format", "crates/offline-tools", "crates/quant-core", "crates/context", "crates/leleka-memory", "crates/sampler-ref", "crates/experimental-ref", "crates/serving-policy", "crates/deploy"]
|
|
|
|
[workspace.package]
|
|
edition = "2024"
|
|
license = "Apache-2.0"
|
|
rust-version = "1.99"
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "forbid"
|
|
|
|
[workspace.lints.clippy]
|
|
all = "warn"
|
|
|
|
# Opt-in profile for paired A/B builds (STRA-245 parity audit, docs/experiments/parity-audit-5090.md item 10). The workspace has no
|
|
# [profile] section, so every shipped binary (bin-e2e4, crates/deploy) is the cargo release default: opt-level 3, no LTO,
|
|
# 16 codegen units, panic=unwind, no RUSTFLAGS and no target-cpu (the last on purpose: the CPU kernels select their GGML
|
|
# arithmetic branches with cfg!(target_feature), see crates/native-cpu-expert/src/rust_ggml_native.rs, so target-cpu would change bits).
|
|
# `release-lto` changes inlining and layout only; Rust has no fast-math, so the output is expected to be bit-identical, but that is
|
|
# unmeasured. Build: cargo build --profile release-lto --locked -p strata-desktop-core --bin leleka-inference (target/release-lto/).
|
|
# It is NOT the default and must not become one before a paired A/B on the same workload.
|
|
[profile.release-lto]
|
|
inherits = "release"
|
|
lto = "fat"
|
|
codegen-units = 1
|