sccache-exclusive

Crates.iosccache-exclusive
lib.rssccache-exclusive
version0.1.2
created_at2025-10-31 02:39:42.509296+00
updated_at2026-01-16 14:03:22.567916+00
descriptionIt selectively uses sccache. Do not use sccache to compile the specified crate. For example, a compilation error occurs with sccache.
homepage
repositoryhttps://github.com/aki-akaguma/sccache-exclusive
max_upload_size
id1909345
size32,093
(aki-akaguma)

documentation

README

sccache-exclusive

crate Docs Rust Version Apache2/MIT licensed Test ubu Test mac Test win

It selectively uses sccache. Do not use sccache to compile the specified crate. For example, a compilation error occurs with sccache.

Install

step 1

Install using cargo install.

cargo install sccache-exclusive

step 2

Run sccache-exclusive. An error will be output, but please ignore it. When executed, a configuration file will be created.

sccache-exclusive

step 3

Edit the created configuration file.

vi ~/.config/sccache-exclusive.toml

step 4

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.

Setting

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.

Changelogs

This crate's changelog here.

License

This project is licensed under either of

at your option.

Commit count: 9

cargo fmt