| Crates.io | sccache-exclusive |
| lib.rs | sccache-exclusive |
| version | 0.1.2 |
| created_at | 2025-10-31 02:39:42.509296+00 |
| updated_at | 2026-01-16 14:03:22.567916+00 |
| description | It selectively uses sccache. Do not use sccache to compile the specified crate. For example, a compilation error occurs with sccache. |
| homepage | |
| repository | https://github.com/aki-akaguma/sccache-exclusive |
| max_upload_size | |
| id | 1909345 |
| size | 32,093 |
It selectively uses sccache. Do not use sccache to compile the specified crate. For example, a compilation error occurs with sccache.
Install using cargo install.
cargo install sccache-exclusive
Run sccache-exclusive. An error will be output, but please ignore it. When executed, a configuration file will be created.
sccache-exclusive
Edit the created configuration file.
vi ~/.config/sccache-exclusive.toml
Fix the cargo.toml settings.
vi ~/.cargo/config.toml
Add the following content:
[build]
rustc-wrapper="/home/myname/.cargo/bin/sccache-exclusive"
#rustc-wrapper="/home/myname/.cargo/bin/sccache"
Delete the sccache line that was originally there. It's commented out here.
This section explains the contents of the configuration file.
cat ~/.config/sccache-exclusive.toml
[build]
rustc-wrapper = "/home/myname/.cargo/bin/sccache"
[[exclusive]]
string = "--crate-name XXX"
[[exclusive]]
string = "--crate-name wayland_client"
[[exclusive]]
string = "--crate-name wayland_protocols"
[[exclusive]]
string = ""
strings = ["--crate-name reqwest", "--target wasm32-unknown-unknown"]
~/.config/sccache-exclusive.toml also has the same [build] section as ~/.cargo/config.toml. Please set the original sccache.
In the [[exclusive]] section, write a string that matches the command line string. This section can be written multiple times. If all [[exclusive]] does not match, run rustc-wrapper. If even one matches, it will be executed without rustc-wrapper.
This project is licensed under either of
at your option.