docs/Rust.md
sccache includes support for caching Rust compilation. This includes many caveats, and is primarily focused on caching rustc invocations as produced by cargo. A (possibly-incomplete) list follows:
--emit is required.--crate-name is required.link, metadata and dep-info are supported as --emit values, and link must be present.--out-dir is required.-o file is not supported.env! require Rust >= 1.46 to be tracked in caching.rustc's incremental compilation needs to be disabled. See The Cargo Bookbin, dylib, cdylib, and proc-macro crates.If you are using Rust 1.18 or later, you can ask cargo to wrap all compilation with sccache by setting RUSTC_WRAPPER=sccache in your build environment.