cacher is a faster Rust compiler that utilize per-function caching of checking results.
How fast (in sec):
crate | cargo build |
cargo cacher build without cache |
cargo cacher build with cache |
ratio |
---|---|---|---|---|
syn 2.0.101 | 1.08 | 1.20 | 1.04 | 96% |
serde 1.0.219 | 2.03 | 2.24 | 1.94 | 96% |
regex 1.11.1 | 2.79 | 2.96 | 2.70 | 97% |
tokio 1.45.1 | 3.84 | 4.18 | 3.62 | 94 |
axum 0.8.4 | 4.43 | 4.93 | 4.28 | 97% |
Run the following commands to install both the cacherc
compiler and the cargo-cacher
utility:
cargo install --path . --locked
Build your project with fustc by running:
cargo cacher build