Files
ZyyandCodex 24f39f7f0e docs(backend): standardize Rust file comments
Add Chinese responsibility summaries to every backend Rust source, test,
and build script. Remove sentence-ending periods from comments while
preserving meaningful dots in URLs, versions, identifiers, and examples.

Keep generated SDK documentation in sync with its contract generator,
group middleware module declarations and exports, and record the comment
conventions in the development skill.

Validated with Rustfmt, strict Clippy, backend tests, documentation tests,
and skill validation. Database-backed integration cases were skipped
because dedicated PostgreSQL and Redis test services were not configured.

Co-authored-by: Codex <noreply@openai.com>
2026-10-05 11:52:56 +08:00

17 lines
696 B
Rust

//! 配置测试插件子进程的链接参数,减少归档中的调试段体积
fn main() {
println!("cargo::rerun-if-changed=build.rs");
// 测试插件会反复装包和解包;调试段不参与协议行为,不能让它放大每个用例的 I/O
// 仅调整两个测试子进程,宿主和测试入口仍保留完整调试信息
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
if matches!(target_os.as_str(), "linux" | "macos") {
for binary in [
"gateway-plugin-test-worker",
"gateway-plugin-test-middleware",
] {
println!("cargo::rustc-link-arg-bin={binary}=-Wl,-S");
}
}
}