cargo-chef

Cargo subcommand to optimize Rust Docker builds with layer caching

brewmacoslinux
Try with needOr install directly
Source

About

Cargo subcommand to speed up Rust Docker builds using Docker layer caching

Commands

cargo-chef

Examples

Create a recipe file for Docker layer caching$ cargo chef prepare --recipe-path recipe.json
Build dependencies in Docker without source code$ cargo chef cook --release --recipe-path recipe.json
Build the full application after dependencies are cached$ cargo chef cook --release --recipe-path recipe.json && cargo build --release