diff --git a/.cargo/config.toml b/.cargo/config.toml index 025a7e2..bb543b3 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,10 @@ [env] RUST_TEST_THREADS = "1" + +# [build] +# rustc-wrapper = "sccache" # 取消注释以启用 sccache(需先安装: cargo install sccache) +# 或在 shell 中设置环境变量: RUSTC_WRAPPER=sccache cargo build + +# [registries.crates-io] +# protocol = "sparse" +# protocol = "sparse" is default in Rust 1.70+ diff --git a/Cargo.toml b/Cargo.toml index 8b495d6..959a0ef 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -87,6 +87,7 @@ predicates = "3" [profile.dev] opt-level = 1 +incremental = false [profile.release] lto = true