Skip to content

Commit 68b4d35

Browse files
authored
Merge pull request #4037 from rust-lang/async-chapter
Chapter 17: Async and Await
2 parents 3401154 + 859c4e0 commit 68b4d35

File tree

822 files changed

+95312
-6110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

822 files changed

+95312
-6110
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,19 @@ jobs:
2424
rustup --version
2525
rustc -Vv
2626
mdbook --version
27+
28+
# mdBook does not currently have particularly good support for “external”
29+
# crates. To make the test suite work correctly with `trpl`, we must first
30+
# build `trpl` itself (`mdbook` will not do it), and then explicitly pass
31+
# its `deps` path as a library search path for `mdbook test`. That will make
32+
# sure all the crates can be resolved when running the tests.
33+
- name: Build `trpl` crate
34+
run: |
35+
cd packages/trpl
36+
cargo build
2737
- name: Run tests
28-
run: mdbook test
38+
run:
39+
mdbook test --library-path packages/trpl/target/debug/deps
2940
package_tests:
3041
name: Run package tests
3142
runs-on: ubuntu-latest

2018-edition/src/ch17-00-oop.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch17-00-oop.html) instead.
6+
version of the book](../ch18-00-oop.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-00-oop.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-00-oop.html).

2018-edition/src/ch17-01-what-is-oo.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch17-01-what-is-oo.html) instead.
6+
version of the book](../ch18-01-what-is-oo.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-01-what-is-oo.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-01-what-is-oo.html).

2018-edition/src/ch17-02-trait-objects.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch17-02-trait-objects.html) instead.
6+
version of the book](../ch18-02-trait-objects.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-02-trait-objects.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-02-trait-objects.html).

2018-edition/src/ch17-03-oo-design-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch17-03-oo-design-patterns.html) instead.
6+
version of the book](../ch19-03-oo-design-patterns.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-03-oo-design-patterns.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-03-oo-design-patterns.html).

2018-edition/src/ch18-00-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch18-00-patterns.html) instead.
6+
version of the book](../ch19-00-patterns.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-00-patterns.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-00-patterns.html).

2018-edition/src/ch18-01-all-the-places-for-patterns.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch18-01-all-the-places-for-patterns.html) instead.
6+
version of the book](../ch19-01-all-the-places-for-patterns.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-01-all-the-places-for-patterns.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-01-all-the-places-for-patterns.html).

2018-edition/src/ch18-02-refutability.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch18-02-refutability.html) instead.
6+
version of the book](../ch19-02-refutability.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-02-refutability.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-02-refutability.html).

2018-edition/src/ch18-03-pattern-syntax.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch18-03-pattern-syntax.html) instead.
6+
version of the book](../ch19-03-pattern-syntax.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-03-pattern-syntax.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-03-pattern-syntax.html).

2018-edition/src/ch19-00-advanced-features.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
The 2018 edition of the book is no longer distributed with Rust's documentation.
44

55
If you came here via a link or web search, you may want to check out [the current
6-
version of the book](../ch19-00-advanced-features.html) instead.
6+
version of the book](../ch20-00-advanced-features.html) instead.
77

88
If you have an internet connection, you can [find a copy distributed with
99
Rust
10-
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-00-advanced-features.html).
10+
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-00-advanced-features.html).

0 commit comments

Comments
 (0)