moonrepo / setup-rust

A maintained GitHub action for setting up Rust and Cargo.
84 stars 6 forks source link

new: Add .cargo/target caching. #2

Closed milesj closed 1 year ago

milesj commented 1 year ago

This PR adds caching for the ~/.cargo/registry and /target/debug directories.

Why not cache the entirety of ~/.cargo or /target? Because it's not necessary. This action will only cache the bare minimum required in an effort to reduce download/upload times, and file size limits.