![]() cargo chef prepare -recipe-path recipe.json Prepare examines your project and builds a recipe that captures the set of information required to build your dependencies. ![]() Prepare Analyze the current project to determine the minimum subset of files (Cargo.lockĪnd Cargo.toml manifests) required to build it and cache dependencies Don't run it on existing codebases to avoid having files being overwritten.Ĭargo-chef exposes two commands: prepare and cook: cargo chef -helpĬook Re-hydrate the minimum project skeleton identified by `cargo chef prepare` and Its primary use-case is to speed up container builds by running BEFORE the actual source code is copied over. :warning: cargo-chef is not meant to be run locally You can install cargo-chef from crates.io with cargo install cargo-chef -locked ![]() ![]() Cache the dependencies of your Rust project and speed up your Docker builds.Ĭargo-chef was initially developed for the deployment chapter of Zero to Production In Rust, a hands-on introduction to backend development using the Rust programming language. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |