# cargo-dependencies [![Build Status](https://travis-ci.org/rpsrosario/cargo-dependencies.svg?branch=master)](https://travis-ci.org/rpsrosario/cargo-dependencies) [cargo][1] extension that downloads and compiles only the dependencies of a project. Once you start building more complex projects, most likely the majority of your time will be spent on compiling the dependencies, not your source code. If you are using tools like [Docker][2], always recompiling your dependencies has a huge impact on your build times. With this extension you can create a docker layer with all of the dependencies downloaded and compiled, so that you can focus on the important part: your code. This project was inspired by [cargo-build-deps][3], however it has a few key differences: - First and foremost, it is nothing but a thin wrapper on `cargo build`, so any flag / argument you supply to it will be copied to the regular build command verbatim; - Since it just needs to wrap `cargo build` this extension has exactly zero dependencies itself, instead it implements a minimum [TOML][4] file parser to just be able to extract the required information in order to function properly; [1]: https://doc.rust-lang.org/cargo/ [2]: https://www.docker.com/ [3]: https://github.com/nacardin/cargo-build-deps [4]: https://github.com/toml-lang/toml