Problem
I added build.rustc-wrapper = "sccache" to use the sccache in my builds, but when running any cargo command, it says that build.rustc-wrapper is an unused key.
I found the key in The Cargo Book (https://doc.rust-lang.org/cargo/guide/build-cache.html).
Steps
- Install sccache
cargo install sccache
- Add
build.rustc-wrapper = "sccache" to Cargo config ($CARGO_HOME/config)
- Run
cargo build in any project
Notes
Output of cargo version: cargo 1.40.0 (bc8e4c8 2019-11-22)
Rust version: 1.40.0
OS: Windows 10
Problem
I added
build.rustc-wrapper = "sccache"to use thesccachein my builds, but when running any cargo command, it says thatbuild.rustc-wrapperis an unused key.I found the key in The Cargo Book (https://doc.rust-lang.org/cargo/guide/build-cache.html).
Steps
cargo install sccachebuild.rustc-wrapper = "sccache"to Cargo config ($CARGO_HOME/config)cargo buildin any projectNotes
Output of
cargo version: cargo 1.40.0 (bc8e4c8 2019-11-22)Rust version: 1.40.0
OS: Windows 10