# Speed up Cargo Build
## Metadata
**Status**:: #i
**Zettel**:: #zettel/fleeting
**Created**:: [[2026-02-28]]
## Use Ram Disk
### Cargo Ramdisk
Install [cargo-ramdisk](https://github.com/paumava/cargo-ramdisk)
```
cargo binstall cargo-ramdisk
```
Use ram for a project
```
cargo ramdisk mount
// or copy existing data
cargo ramdisk mount -c
```
Dump to disk before shutdown if needed
```
cargo ramdisk unmount -c
```
### Sscache
Use ram for sscache
```
export SCCACHE_DIR="/dev/shm/sccache"
// or
mise preset:sccache:shm
```
## Use Sccache
```
export RUSTC_WRAPPER="sccache"
// or
mise preset:sccache:rust
```