Skip to content

build: sccache configuration for faster incremental builds#13

Merged
juice094 merged 1 commit into
mainfrom
build/sccache-config
May 11, 2026
Merged

build: sccache configuration for faster incremental builds#13
juice094 merged 1 commit into
mainfrom
build/sccache-config

Conversation

@juice094
Copy link
Copy Markdown
Owner

开发体验优化:sccache 配置

验证: cargo check 0 errors; clippy 0 warnings; test 503 passed

…etter cache hits

**配置变更**:
- .cargo/config.toml: rustc-wrapper = "sccache"
- Cargo.toml: profile.dev.incremental = false

**效果验证**:
| 命令 | 无缓存 | sccache warm | 提升 |
|:---|:---:|:---:|:---:|
| cargo build | 4m46s | 1m44s | **-63%** |
| cargo check | 1m39s | 1m18s | **-21%** |

- Cache hit rate: ~65-70%
- Cache size: ~500 MiB
- 非缓存原因: crate-type(proc-macro)等

注意: sccache 需全局安装 (cargo install sccache)
@juice094 juice094 force-pushed the build/sccache-config branch from c198947 to 28d0281 Compare May 11, 2026 11:14
@juice094 juice094 merged commit 7412c5c into main May 11, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant