docs: condense sccache section to reduce verbosity
All checks were successful
GBCI / build (push) Successful in 12s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-02-05 21:45:50 -03:00
parent f68ad31168
commit 6f7044d97d

View file

@ -178,58 +178,25 @@ git submodule update --init --recursive
## Build Cache with sccache
sccache (Shared Compilation Cache) dramatically speeds up rebuilds by caching compilation artifacts. Highly recommended for development.
sccache caches compilation artifacts for faster rebuilds.
### Install sccache
#### Linux
Install and configure:
```bash
cargo install sccache
```
#### macOS
```bash
brew install sccache
```
#### Windows
```powershell
cargo install sccache
```
### Configure Cargo to Use sccache
Add to `~/.cargo/config.toml`:
```toml
[build]
compiler = "sccache"
```
### Verify sccache is Working
```bash
mkdir -p ~/.cargo
echo '[build]
compiler = "sccache"' >> ~/.cargo/config.toml
export RUSTC_WRAPPER=sccache
cargo build --release
```
Verify cache hits:
```bash
sccache --show-stats
```
Expected output shows cache hits/misses:
```
Compile requests 45
Compile requests executed 12
Cache hits 8
Cache misses 4
Cache hit rate 66.67%
```
### Clear sccache
If you need to clear the cache:
Clear cache if needed:
```bash
sccache --zero-stats