Skip to content

Commit

Permalink
Auto merge of #6685 - king6cong:doc, r=alexcrichton
Browse files Browse the repository at this point in the history
Add more about system library on whether to keep Cargo.lock

None
  • Loading branch information
bors committed Feb 21, 2019
2 parents fdb1426 + d1dae55 commit 469af67
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/doc/src/guide/cargo-toml-vs-cargo-lock.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ about them, here’s a summary:
* `Cargo.lock` contains exact information about your dependencies. It is
maintained by Cargo and should not be manually edited.

If you’re building a library that other packages will depend on, put
`Cargo.lock` in your `.gitignore`. If you’re building an executable like a
command-line tool or an application, check `Cargo.lock` into `git`. If you're
curious about why that is, see ["Why do binaries have `Cargo.lock` in version
control, but not libraries?" in the
If you’re building a non-end product, such as a rust library that other rust packages will depend on, put
`Cargo.lock` in your `.gitignore`. If you’re building an end product, which are executable
like command-line tool or an application, or a system library with crate-type of `staticlib` or `cdylib`,
check `Cargo.lock` into `git`. If you're curious about why that is, see
["Why do binaries have `Cargo.lock` in version control, but not libraries?" in the
FAQ](faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries).

Let’s dig in a little bit more.
Expand Down

0 comments on commit 469af67

Please sign in to comment.