From 68d8a40dbf9e2b613858a8a360535cc8fe0c78bf Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Sat, 15 Oct 2016 04:03:32 +0000 Subject: [PATCH] rebuild pages at 315fe87 --- ch02-00-guessing-game-tutorial.html | 10 +++++----- print.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ch02-00-guessing-game-tutorial.html b/ch02-00-guessing-game-tutorial.html index 06a731419..ce91c0526 100644 --- a/ch02-00-guessing-game-tutorial.html +++ b/ch02-00-guessing-game-tutorial.html @@ -376,15 +376,15 @@ dependencies you specified until you indicate otherwise. For example, what happens if next week version v0.3.15 of the rand crate comes out and contains an important bug fix but also contains a regression that will break your code?

-

The answer to this problem is the Cargo.lock file, which was created the -first time you ran cargo build and is now in your guessing_game directory. +

The answer to this problem is the Cargo.lock file, which was created the +first time you ran cargo build and is now in your guessing_game directory. When you build a project for the first time, Cargo figures out all the versions of the dependencies that fit the criteria and then writes them to -the Cargo.lock file. When you build your project in the future, Cargo will -see that the Cargo.lock file exists and use the versions specified there +the Cargo.lock file. When you build your project in the future, Cargo will +see that the Cargo.lock file exists and use the versions specified there rather than doing all the work of figuring out versions again. This lets you have a reproducible build automatically. In other words, your project will -remain at 0.3.14 until you explicitly upgrade, thanks to the Cargo.lock +remain at 0.3.14 until you explicitly upgrade, thanks to the Cargo.lock file.

Updating a Crate to Get a New Version

When you do want to update a crate, Cargo provides another command, update, diff --git a/print.html b/print.html index 7605e4a6b..55d2d6fa0 100644 --- a/print.html +++ b/print.html @@ -750,15 +750,15 @@ dependencies you specified until you indicate otherwise. For example, what happens if next week version v0.3.15 of the rand crate comes out and contains an important bug fix but also contains a regression that will break your code?

-

The answer to this problem is the Cargo.lock file, which was created the -first time you ran cargo build and is now in your guessing_game directory. +

The answer to this problem is the Cargo.lock file, which was created the +first time you ran cargo build and is now in your guessing_game directory. When you build a project for the first time, Cargo figures out all the versions of the dependencies that fit the criteria and then writes them to -the Cargo.lock file. When you build your project in the future, Cargo will -see that the Cargo.lock file exists and use the versions specified there +the Cargo.lock file. When you build your project in the future, Cargo will +see that the Cargo.lock file exists and use the versions specified there rather than doing all the work of figuring out versions again. This lets you have a reproducible build automatically. In other words, your project will -remain at 0.3.14 until you explicitly upgrade, thanks to the Cargo.lock +remain at 0.3.14 until you explicitly upgrade, thanks to the Cargo.lock file.

Updating a Crate to Get a New Version

When you do want to update a crate, Cargo provides another command, update,