-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rust 1.82: also update all cases of manual regeneration
- Loading branch information
1 parent
f4b2254
commit f04d20f
Showing
35 changed files
with
288 additions
and
232 deletions.
There are no files selected for viewing
77 changes: 71 additions & 6 deletions
77
listings/ch02-guessing-game-tutorial/listing-02-02/Cargo.lock
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
listings/ch02-guessing-game-tutorial/no-listing-01-cargo-new/Cargo.lock
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
listings/ch02-guessing-game-tutorial/no-listing-01-cargo-new/output.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
$ cargo run | ||
Compiling guessing_game v0.1.0 (file:///projects/guessing_game) | ||
Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.50s | ||
Running `target/debug/guessing_game` | ||
Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.80s | ||
Running `file:///projects/guessing_game/target/debug/guessing_game` | ||
Hello, world! |
7 changes: 0 additions & 7 deletions
7
listings/ch11-writing-automated-tests/listing-11-01/Cargo.lock
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
pub fn add(left: u64, right: u64) -> u64 { | ||
left + right | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"adder", | ||
"add_one", | ||
] | ||
resolver = "2" | ||
members = ["adder", "add_one"] |
6 changes: 0 additions & 6 deletions
6
listings/ch14-more-about-cargo/no-listing-01-workspace-with-adder-crate/add/Cargo.lock
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
listings/ch14-more-about-cargo/no-listing-01-workspace-with-adder-crate/add/Cargo.toml
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
listings/ch14-more-about-cargo/no-listing-01-workspace-with-adder-crate/add/adder/Cargo.toml
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
...ings/ch14-more-about-cargo/no-listing-01-workspace-with-adder-crate/add/adder/src/main.rs
This file was deleted.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
listings/ch14-more-about-cargo/no-listing-01-workspace/add/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[workspace] | ||
resolver = "2" |
7 changes: 2 additions & 5 deletions
7
listings/ch14-more-about-cargo/no-listing-02-workspace-with-two-crates/add/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"adder", | ||
"add_one", | ||
] | ||
resolver = "2" | ||
members = ["adder", "add_one"] |
7 changes: 2 additions & 5 deletions
7
...ngs/ch14-more-about-cargo/no-listing-03-workspace-with-external-dependency/add/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"adder", | ||
"add_one", | ||
] | ||
resolver = "2" | ||
members = ["adder", "add_one"] |
7 changes: 2 additions & 5 deletions
7
listings/ch14-more-about-cargo/no-listing-04-workspace-with-tests/add/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"adder", | ||
"add_one", | ||
] | ||
resolver = "2" | ||
members = ["adder", "add_one"] |
6 changes: 2 additions & 4 deletions
6
listings/ch14-more-about-cargo/output-only-01-adder-crate/add/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"adder", | ||
] | ||
resolver = "2" | ||
members = ["adder"] |
7 changes: 2 additions & 5 deletions
7
listings/ch14-more-about-cargo/output-only-02-add-one/add/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"adder", | ||
"add_one", | ||
] | ||
resolver = "2" | ||
members = [ "add_one","adder"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
listings/ch14-more-about-cargo/output-only-02-add-one/add/add_one/src/lib.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
pub fn add(left: usize, right: usize) -> usize { | ||
pub fn add(left: u64, right: u64) -> u64 { | ||
left + right | ||
} | ||
|
||
|
7 changes: 2 additions & 5 deletions
7
listings/ch14-more-about-cargo/output-only-03-use-rand/add/Cargo.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[workspace] | ||
|
||
members = [ | ||
"adder", | ||
"add_one", | ||
] | ||
resolver = "2" | ||
members = ["adder", "add_one"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.