See the [official recommendation](http://doc.crates.io/guide.html#cargotoml-vs-cargolock) > * If you're building a library, put Cargo.lock in your .gitignore. > * If you're building an executable, check Cargo.lock into git.