As other already mentioned you can mount a RAM disk yourself to where the target folder would be placed. Alternatively you can change where cargo places its artifacts to somewhere you already have a ram disk mounted, e.g. /tmp
https://doc.rust-lang.org/cargo/reference/config.html#buildtarget-dir
Und man ist danach auch braun ;D