From c9c90db1a6924559ff2b81532421f47902a61bf2 Mon Sep 17 00:00:00 2001 From: Teakowa <27560638+Teakowa@users.noreply.github.com> Date: Tue, 8 Sep 2026 14:48:35 +0800 Subject: [PATCH] build: apply org-wide Rust artifact size policy Set dev and test profile defaults per wrightkit/.github docs/rust-build-artifacts.md: - debug=1 for workspace code (line tables, not full DWARF) - debug=false for third-party dependencies This reduces target/debug/deps and incremental artifact volume without affecting CI or test correctness. Refs wrightkit/.github#44 --- Cargo.toml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 09d5d10..7f84cba 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,3 +49,17 @@ perf = { level = "warn", priority = -1 } dbg_macro = "deny" todo = "deny" unimplemented = "deny" + +# Reduce dependency artifact volume while retaining line-table diagnostics for +# WrightKit code. See wrightkit/.github docs/rust-build-artifacts.md. +[profile.dev] +debug = 1 + +[profile.dev.package."*"] +debug = false + +[profile.test] +debug = 1 + +[profile.test.package."*"] +debug = false