servo: Merge #13469 - Document how to cargo-update to a specific version (from JanZerebecki:document-cargo-update-precise); r=Wafflespeanut

<!-- Please describe your changes on the following line: -->

Closes #13310

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #13310 .

<!-- Either: -->
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because they only change documentation

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: 2c1d6e7eaf08d41dfe0ea0ce0cb760897b37f626
This commit is contained in:
Jan Zerebecki 2016-09-30 06:22:27 -05:00
parent d9c8eb37af
commit f6d8814e4a

View File

@ -94,7 +94,7 @@ name = "stb_image"
source = "git+https://github.com/servo/rust-stb-image#f4c5380cd586bfe16326e05e2518aa044397894b"
```
This file should not be edited by hand. In a normal Rust project, to update the git revision, you would use `cargo update -p stb_image`, but in Servo, use `./mach cargo-update -p stb_image`.
This file should not be edited by hand. In a normal Rust project, to update the git revision, you would use `cargo update -p stb_image`, but in Servo, use `./mach cargo-update -p stb_image`. Other arguments to cargo are also understood, e.g. use --precise '0.2.3' to update that crate to version 0.2.3.
See [Cargo's documentation about Cargo.toml and Cargo.lock files](http://doc.crates.io/guide.html#cargotoml-vs-cargolock).