Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1283 commits
Select commit Hold shift + click to select a range
d6dbbd1
Ch. 17.03 (NoStarch edits): first section
chriskrycho Jan 14, 2025
2fa5fd4
Ch. 17.03 (NoStarch edits): second section
chriskrycho Jan 15, 2025
e2cbfcb
Ch. 17.03 (NoStarch edits): third section
chriskrycho Jan 15, 2025
c1e93e7
Ch. 17.03 (NoStarch edits): fourth section
chriskrycho Jan 15, 2025
e87e3b0
Ch. 17.04 (NoStarch edits): first section
chriskrycho Jan 15, 2025
889ef2c
Ch. 17.04 (NoStarch edits): second section
chriskrycho Jan 15, 2025
31e25ce
Ch. 17.04 (NoStarch edits): third section
chriskrycho Jan 16, 2025
6346b5e
Ch. 17.05 (NoStarch edits): intro section
chriskrycho Jan 16, 2025
a2aed47
Ch. 17.05 (NoStarch edits): first section proper
chriskrycho Jan 16, 2025
03d56fa
Ch. 17.05 (NoStarch edits): second section
chriskrycho Jan 16, 2025
eec734e
Ch. 17.05 (NoStarch edits): third section
chriskrycho Jan 16, 2025
06d73f3
Ch. 17.06 (NoStarch edits)
chriskrycho Jan 16, 2025
f148e46
Ch. 17 (NoStarch edits): final pass on inline edits
chriskrycho Jan 16, 2025
3927b50
Ch. 17.01 (NoStarch Edits): standardize ‘future’ and `Future` usage
chriskrycho Jan 17, 2025
d3ecf99
Ch. 17.01 (NoStarch Edits): standardize ‘stream’ and `Stream` usage
chriskrycho Jan 17, 2025
75166b5
Ch. 17 (NoStarch edits): rename 17.02
chriskrycho Jan 17, 2025
c8b4da5
Ch. 17 (NoStarch edits): rename the chapter
chriskrycho Jan 17, 2025
483b1c6
Ch. 17 (NoStarch edits): rewrite the introduction!
chriskrycho Jan 17, 2025
7338a02
Ch. 17 (NoStarch edits): spelling fixes and dictionary updates
chriskrycho Jan 21, 2025
6a19390
Ch. 17 (NoStarch edits): fix an internal link
chriskrycho Jan 21, 2025
82a4a49
Merge pull request #4206 from rust-lang/ch17-edits
chriskrycho Jan 21, 2025
33b7bec
Document that `use` is also for `precise capturing` (#4210)
hkBst Jan 22, 2025
dc06131
Redirects: get rid of the weird gap in Ch. 20 sections!
chriskrycho Jan 21, 2025
9b552dd
Merge pull request #4209 from rust-lang/redirect-fix-chapter-gap-chap…
chriskrycho Jan 22, 2025
d4b0a0f
chore: reformat src with dprint
chriskrycho Jan 22, 2025
fa312a3
Merge pull request #4211 from rust-lang/reformatted-src-with-dprint
chriskrycho Jan 22, 2025
ed3d672
Fix typo
PedroChaps Jan 28, 2025
a01931a
fix `dprint` command
PedroChaps Jan 28, 2025
b739fe4
Revert "Fix typo"
PedroChaps Jan 31, 2025
56cfe50
Add missing word in ch17-04-streams.md
gerwitz Feb 1, 2025
c632570
Merge pull request #4216 from PedroChaps/typo-Ch5.3
chriskrycho Feb 1, 2025
e2fa431
Merge pull request #4218 from gerwitz/patch-3
chriskrycho Feb 3, 2025
15e16cb
infra: improve the output of the doc-to-md script
chriskrycho Jan 9, 2025
8698ba5
Fix example for `cargo fix`
GoldsteinE Feb 11, 2025
d4d2c18
Merge pull request #4226 from GoldsteinE/fix/rustfix-example
chriskrycho Feb 12, 2025
5d22a35
Backport fixes from NoStarch
chriskrycho Jan 27, 2025
18f6e63
Merge pull request #4224 from rust-lang/nostarch-backports
chriskrycho Feb 13, 2025
af84924
Crarified the misunderstanding b/w crates, module, items
anu-sin-theta Feb 18, 2025
ba1646d
Ch. 17: Fix typos
ormai Feb 23, 2025
4a01a91
Merge pull request #4238 from ormai/main
chriskrycho Feb 24, 2025
e476d7b
Chapter 1: fix 'four things' now that spacing is not emphasized
chriskrycho Feb 24, 2025
69980b8
Replace “member access” with “field access” and “method call”.
kpreid Feb 24, 2025
4958a5d
Merge pull request #4239 from rust-lang/fix-spacing-in-chapter-one
chriskrycho Feb 24, 2025
080147a
Update to Rust 1.85 and 2024 Edition!
chriskrycho Feb 24, 2025
dac5234
Rust 1.85/2024 Edition: manual regeneration changes
chriskrycho Feb 24, 2025
b8b94b3
Rust 1.85/2024 Edition: update all edition references
chriskrycho Feb 25, 2025
0833386
Appendix B: restructure handling of `.` and parens
chriskrycho Feb 25, 2025
c7edf19
Merge pull request #4241 from rust-lang/2024-edition
chriskrycho Feb 25, 2025
ca030dd
Merge pull request #4240 from kpreid/patch-1
chriskrycho Feb 25, 2025
6ae5d86
Ch. 17: drop lifetime not required in 2024 Edition
chriskrycho Nov 25, 2024
0133087
Merge pull request #4212 from rust-lang/drop-lifetime-unnecessar-in-e…
chriskrycho Feb 25, 2025
2800281
Ch. 17: fresh-eyes edits
chriskrycho Feb 25, 2025
34cdd41
Merge pull request #4242 from rust-lang/fresh-eyes-edits
chriskrycho Feb 25, 2025
34820ac
Edition maintenance: scripting the updates for future work
chriskrycho Feb 25, 2025
6bb2d00
Merge pull request #4243 from rust-lang/edition-scripting
chriskrycho Feb 25, 2025
0ca2482
Ch. 19: Correct the discussion of `fn` type and closures
chriskrycho Feb 25, 2025
8f67810
Merge pull request #4244 from rust-lang/closures-and-fn-type
chriskrycho Feb 25, 2025
3297509
Ch. 02: Fix rand version mistake (from testing)
chriskrycho Feb 26, 2025
5fe7297
Merge pull request #4245 from rust-lang/fix-rand-version-mistake
chriskrycho Feb 26, 2025
063b1f8
Ch. 05: further tweak to wording about `user1` availability
chriskrycho Feb 26, 2025
814c7e5
Merge pull request #4246 from rust-lang/ch-improve-wording-about-user…
chriskrycho Feb 26, 2025
6b65e95
Another Ch. 17 -> 18 fix
chriskrycho Feb 26, 2025
0896670
Merge pull request #4247 from rust-lang/ch-fix-another-chapter-eighteen
chriskrycho Feb 26, 2025
e5c8a0c
Ch. 10: Make social media discussion generic.
chriskrycho Feb 27, 2025
81a976a
Merge pull request #4249 from rust-lang/social-media-discussion-generic
chriskrycho Feb 27, 2025
87f3d05
nostarch: incorporate latest revisions from web
chriskrycho Feb 13, 2025
694ec77
Remove "we'll fix it later in this chapter" for clarity
km274 Mar 3, 2025
6c22ad7
Clarify language explaining how the non-compiling listing would be fixed
km274 Mar 3, 2025
e3c9cf9
Persist printing error, NOT ErrorKind
distortedsignal Mar 4, 2025
3303daf
Bump ring in /listings/ch17-async-await/listing-17-02
dependabot[bot] Mar 7, 2025
c6f5782
Typo: "2" should be "2 seconds"
proski Mar 8, 2025
54245bf
Ch. 17: fix tiny example consistency issue
alannza Mar 12, 2025
02e053c
nostarch: update Word documents with revisions from web version
chriskrycho Feb 13, 2025
56ec353
More changes caught during ↔ backports for print edition
chriskrycho Feb 27, 2025
3249484
link2print: *which* reference is repeatedly defined?
chriskrycho Mar 13, 2025
70c566f
Merge pull request #4272 from rust-lang/nostarch-backports
chriskrycho Mar 13, 2025
c478946
Bump ring from 0.17.8 to 0.17.14 in /packages/trpl
dependabot[bot] Mar 13, 2025
5481872
Merge pull request #4273 from rust-lang/dependabot/cargo/packages/trp…
chriskrycho Mar 13, 2025
b456af6
Merge pull request #4261 from rust-lang/dependabot/cargo/listings/ch1…
chriskrycho Mar 13, 2025
a59a022
Merge pull request #4270 from alannza/main
chriskrycho Mar 13, 2025
90ea905
Merge pull request #4263 from proski/two-seconds
chriskrycho Mar 13, 2025
5a762c3
Merge pull request #4259 from distortedsignal/wildcard_match_file_fail
chriskrycho Mar 17, 2025
b021b72
Ch. 17: mention `use std::pin::{Pin, pin};` on introduction
chriskrycho Mar 17, 2025
fb2d874
Merge pull request #4279 from rust-lang/mention-std-pin-use
chriskrycho Mar 17, 2025
9847e79
Ferris: simplify line counting for size determination
chriskrycho Mar 17, 2025
8372e56
Ferris: always show Ferrises, even if small
chriskrycho Mar 17, 2025
ac911c4
Merge pull request #4280 from rust-lang/fixes-counting-line-simplify
chriskrycho Mar 17, 2025
828d75c
Update src/ch02-00-guessing-game-tutorial.md
chriskrycho Mar 17, 2025
6dd246c
Merge pull request #4232 from anu-sin-theta/main
chriskrycho Mar 17, 2025
39c3444
Merge pull request #4256 from km274/ch-10.1-minor-clarifications
chriskrycho Mar 17, 2025
4b2590f
Merge branch 'main' into tell-folks-abi-ref
chriskrycho Mar 17, 2025
b660608
Merge pull request #4165 from rust-lang/tell-folks-abi-ref
chriskrycho Mar 17, 2025
8904592
Ch. 18: correct discussion of delegation in `Post` methods
chriskrycho Mar 17, 2025
6156ff1
Merge pull request #4281 from rust-lang/state-option-etc
chriskrycho Mar 17, 2025
a6bede6
Ch. 9: correctly demonstrate privacy with module
chriskrycho Mar 17, 2025
d3e8ac3
Merge pull request #4282 from rust-lang/ch09-module-privacy
chriskrycho Mar 17, 2025
f6bd152
Ch. 10.3: clarify language detail
reitzig Mar 18, 2025
05f17f0
Ch. 17: minor typos and link reference (#4286)
rickrain Mar 20, 2025
21fcf73
Merge pull request #4284 from reitzig/patch-1
chriskrycho Mar 20, 2025
1d1424b
Ch. 20: correct listing number
mianlang Mar 20, 2025
3433498
Merge pull request #4287 from mianlang/fix-broken-link
chriskrycho Mar 20, 2025
126e5fd
Ch. 17: another tweak to how we phrase things about sections
chriskrycho Mar 20, 2025
e380269
Merge pull request #4288 from rust-lang/ch-tweak-sections-phrase-impr…
chriskrycho Mar 20, 2025
5bcf1bf
add id to Listing with number attribute for cross reference
Mar 12, 2025
ba072b8
change listing text to <a> tag in figcaption to provide link
mianlang Mar 20, 2025
e5492e6
Merge pull request #4271 from mianlang/main
chriskrycho Mar 21, 2025
be48c05
Ch. 02: Consistent ordering of `use` statements
chriskrycho Mar 21, 2025
6875f02
Merge pull request #4292 from rust-lang/ch-consist-ordering-use-state…
chriskrycho Mar 21, 2025
72ad14e
Ch. 07: Clarify sentences about `pub use`
chriskrycho Mar 21, 2025
9220fa1
Merge pull request #4293 from rust-lang/clarify-sentences-about-pub-use
chriskrycho Mar 21, 2025
a4f9417
Ch. 01: Show how to work offline
chriskrycho Mar 21, 2025
d27a805
Merge pull request #4294 from rust-lang/work-offline-chapter-one
chriskrycho Mar 21, 2025
e1c70a3
refactor 16-6 to using listing component
mianlang Mar 21, 2025
691c958
Merge pull request #4295 from mianlang/refactor
chriskrycho Mar 21, 2025
bf3d225
Ch. 21: call out Chrome multiple-connections issue
chriskrycho Mar 21, 2025
45f0536
Merge pull request #4297 from rust-lang/chrome-issue-callout-chapter-…
chriskrycho Mar 21, 2025
9f7f9ad
Ch01 after tech review
carols10cents Apr 8, 2025
470291a
Handled tech review comments in ch01
carols10cents Apr 8, 2025
0b2f215
Ch02 after tech review
carols10cents Apr 8, 2025
ffffb06
Backport changes from ch02 docx to md
carols10cents Apr 8, 2025
5093c1d
Update code output again; a few have been changed since the last regen
carols10cents Apr 8, 2025
cc16b26
Updated ch02 docx output to match md
carols10cents Apr 8, 2025
649abdb
Sync docx to nostarch md where relevant
carols10cents Apr 8, 2025
40d52d4
Update ch02 nostarch md+docx with src md; sending back to nostarch
carols10cents Apr 8, 2025
57674b0
Tech review edits for chapter 2
carols10cents Apr 8, 2025
aba1ee2
Backport tech review changes from docx to src md
carols10cents Apr 8, 2025
d339163
Update ch01 nostarch docx from src md; sending back to nostarch
carols10cents Apr 8, 2025
127811d
Chapter 3 from tech review
carols10cents May 6, 2025
a619cc5
Fixes for ch3 tech review; backported through
carols10cents May 6, 2025
33ed793
Update compiler errors
carols10cents May 8, 2025
ac5daca
Chapter 4 from tech review
carols10cents May 12, 2025
a2000e6
Addressed tech review comments
carols10cents May 12, 2025
f8ed2ce
Backport changes from tech review to md
carols10cents May 12, 2025
c07327f
Add back alt text that disappeared from the word doc
carols10cents May 12, 2025
9e2d87a
Update error messages
carols10cents May 12, 2025
00e763e
Chapter 5 from tech review
carols10cents May 13, 2025
76afbf0
Addressed all tech review comments
carols10cents May 13, 2025
e4681b5
Backport edits to markdown
carols10cents May 13, 2025
722e419
Update error messages
carols10cents May 14, 2025
4b70ea6
Chapter 6 from tech review
carols10cents May 16, 2025
fb4d8fb
Addressing all ch6 tr comments
carols10cents May 16, 2025
3a38038
Listing X-X is no longer in the content, no need to skip
carols10cents May 16, 2025
746bf4c
Backport changes to markdown
carols10cents May 16, 2025
230c68b
Update error messages
carols10cents May 16, 2025
e56d3fc
Chapter 7 from tech review
carols10cents May 22, 2025
b13a446
Address all tech review comments
carols10cents May 22, 2025
b575cf7
Backport to md
carols10cents May 22, 2025
fca7fe2
Update error messages
carols10cents May 22, 2025
43ffc37
Chapter 8 from tech review
carols10cents May 27, 2025
920eb68
Change a section heading to be more precise
carols10cents May 27, 2025
b93811e
Address all tech review comments
carols10cents May 27, 2025
7ab766c
f with heading
carols10cents May 27, 2025
7453f78
Propagate changes from md to docx
carols10cents May 27, 2025
37ab3af
Update error messages
carols10cents May 27, 2025
dedb533
Chapter 9 from tech review
carols10cents May 27, 2025
7f92334
Address tech review comments and update error messages
carols10cents May 27, 2025
f49a7dd
Backport edits to md
carols10cents May 27, 2025
5b57af7
Update docx with changes from md
carols10cents May 27, 2025
9abf20a
Chapter 10 from tech review
carols10cents May 28, 2025
019c152
Addressing tech review comments and updating error messages
carols10cents May 28, 2025
7041c89
Backport changes to md
carols10cents May 28, 2025
a0254e9
Correct some listings to match the prose
carols10cents May 28, 2025
6d02b88
Don't say 'above', refer to the listing number
carols10cents May 28, 2025
02da234
Use 'required' rather than 'have to' to avoid ambiguity
carols10cents May 28, 2025
634724e
Forward port changes from md in docx
carols10cents May 28, 2025
43c55d2
Chapter 11 from tech review
carols10cents Jun 3, 2025
45a1108
Address all ch11 tech review comments
carols10cents Jun 3, 2025
4433c9f
Sync md and docx
carols10cents Jun 3, 2025
011756a
Create a Pull Request to merge any last indonesian language translati…
anugrahxyz Jun 15, 2025
63344e3
translate(titla-page.md) -- translating some paragraph into bahasa in…
anugrahxyz Jun 16, 2025
bfd8fdb
translate(ch01-01-installation.md) -- translating the first paragraph
anugrahxyz Jun 17, 2025
8961e2e
translate(ch01-01-installation.md) -- translating note on the below o…
anugrahzeputra Jun 17, 2025
4291252
merge
anugrahzeputra Jun 17, 2025
98597c7
Merge branch 'rustid-indonesia' into indonesian-translation
anugrahzeputra Jun 17, 2025
243cb71
Chapter 12 from tech review
carols10cents Jun 3, 2025
7ebbf01
Revisions to address tech review comments
carols10cents Jun 14, 2025
edf6121
Adjust listings to reflect new main/lib split
carols10cents Jun 14, 2025
8a6d44e
Propagate docx changes back through md
carols10cents Jun 16, 2025
2d40708
translate(foreword.md) -- translating first paragraph that updated in…
anugrahzeputra Jun 25, 2025
a8ab269
Chapter 13 from tech review
carols10cents Jun 24, 2025
bacc990
Address ch 13 tech review comments
carols10cents Jun 24, 2025
5e45b63
Backport ch13 tech review changes to md
carols10cents Jun 26, 2025
c0aba43
Chapter 14 from tech review
carols10cents Jun 28, 2025
76ec097
Update documentation screenshots
carols10cents Jun 28, 2025
d49c5b6
Address ch 14 tech review comments
carols10cents Jun 28, 2025
6d0dc04
Update output; update filename and crates.io behavior
carols10cents Jun 28, 2025
ef1ce8f
Backport changes to md
carols10cents Jun 28, 2025
c1ea9b6
Chapter 15 from tech review
carols10cents Jul 1, 2025
e739084
Address tech review comments; improve alt text
carols10cents Jul 1, 2025
b9e773b
Backport changes to md
carols10cents Jul 1, 2025
a1a0d07
Update compiler output
carols10cents Jul 2, 2025
dacf7c5
Rename trpl::run to trpl::block_on to align with existing terminology
carols10cents Apr 1, 2025
eaee977
Docx as received after tech review
carols10cents Apr 1, 2025
7f92f43
I needed to force this install to overwrite a previous version
carols10cents Apr 1, 2025
1143014
Rename trpl::race to trpl::select to align with existing terminology
carols10cents Apr 1, 2025
d7894c5
save edits to docx
carols10cents Apr 1, 2025
4ad297a
edits through listing 17-10ish
carols10cents Apr 3, 2025
4b00dd3
moreidets
carols10cents Apr 8, 2025
1920d5e
saving more edits
carols10cents Apr 22, 2025
6e867c0
Add more context to these examples
carols10cents Apr 28, 2025
a6b375b
title_element should be title throughout
carols10cents Apr 28, 2025
98ac75d
Keep printed text consistent with previous listings
carols10cents Apr 28, 2025
35f344d
Make println text consistent between related examples
carols10cents Apr 28, 2025
d2fdc99
Make wait time consistent between examples
carols10cents Apr 29, 2025
2c7de37
Addressed tech review
carols10cents Apr 29, 2025
b90b7cc
Chapter 16 from tech review
carols10cents Jul 5, 2025
8122eaf
Address all tech review comments
carols10cents Jul 5, 2025
8023637
Backport tech review changes
carols10cents Jul 5, 2025
b2d1a08
Update compiler errors
carols10cents Jul 8, 2025
3bc80fa
Chapter 18 from tech review
carols10cents Jul 10, 2025
346a99d
Address all tech review comments
carols10cents Jul 12, 2025
1547da7
New style to handle in xsl
carols10cents Jul 12, 2025
0538b25
Backport changaes to md
carols10cents Jul 14, 2025
d8e3a75
Chapter 19 from tech review
carols10cents Jul 15, 2025
4aadea1
Address all tech review comments
carols10cents Jul 15, 2025
e694be5
Backport changes to md
carols10cents Jul 15, 2025
bfd1191
Chapter 20 from tech review
carols10cents Jul 22, 2025
8698ac9
Address tech review comments
carols10cents Jul 22, 2025
e7d3751
Backport changes to md
carols10cents Jul 22, 2025
6032617
Switch Miri example to Listing 20-7 rather than 20-11
carols10cents Jul 29, 2025
63bedb8
Ignore a listing that only has Cargo.toml; it makes rustfmt sad
carols10cents Jul 29, 2025
60cb255
Fix keyword usage not run by mdbook test but caught by rustfmt
carols10cents Jul 29, 2025
ac5e9b6
I think I forgot to reformat these after backporting some updates
carols10cents Jul 29, 2025
beefa24
Fix path replacement in miri example
carols10cents Jul 30, 2025
5ea2227
Chapter 21 from tech review
carols10cents Jul 30, 2025
6e68368
Address tech review comments
carols10cents Jul 31, 2025
1594c30
Backport changes to md
carols10cents Jul 31, 2025
c80147d
Update compiler output
carols10cents Aug 1, 2025
d9cdd1a
More backporting
carols10cents Aug 1, 2025
4820d2e
Appendix B from tech review
carols10cents Aug 2, 2025
55d1af2
Address all tech review comments
carols10cents Aug 2, 2025
906d43f
Backport changes to md
carols10cents Aug 2, 2025
50001e1
Appendix D from tech review
carols10cents Aug 2, 2025
19a3364
Address the one tech review comment
carols10cents Aug 2, 2025
f65e2e3
Backport changes to md
carols10cents Aug 2, 2025
3e9dc46
Add metavariable to the dictionary
carols10cents Aug 2, 2025
eb3b12e
Merge pull request #2 from rust-lang/main
anugrahzeputra Aug 14, 2025
33f1af4
Release trpl 0.3
carols10cents Sep 15, 2025
209d8ba
Merge pull request #3 from rust-lang/main
anugrahzeputra Sep 16, 2025
9074237
translate(appendix-00.md.md) - translate to indonesian
anugrahzeputra Sep 16, 2025
0c1e716
translate(change the word 'anda' or 'kamu' to 'kita') -
anugrahzeputra Sep 16, 2025
2f2a58a
translate(appendix-00.md) -
anugrahzeputra Sep 16, 2025
91d68ad
translate(ch01-01-installation.md) -
anugrahzeputra Sep 16, 2025
f16b554
translate(title-page.md) -
anugrahzeputra Sep 16, 2025
eb106ff
translate(ch01-00-getting-started.md) -
anugrahzeputra Sep 16, 2025
cd075ef
translate(ch01-02-hello-world.md) -
anugrahzeputra Sep 16, 2025
bca06a3
Merge branch 'main' into indonesian-translation
anugrahzeputra Sep 16, 2025
6c6f8c5
translate(ch01-03-hello-cargo.md) -
anugrahzeputra Sep 16, 2025
cc102ba
translate(ch00-00-introduction.md) -
anugrahzeputra Sep 18, 2025
07cec06
translate(ch00-00-introduction.md) -
anugrahzeputra Sep 18, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
File renamed without changes.
2 changes: 2 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ran dprint fmt on the repo
3a30e4c1fbe641afc066b3af9eb01dcdf5ed8b24
53 changes: 41 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: CI
on:
push:
branches:
- main
on: [push, pull_request]

jobs:
test:
Expand All @@ -15,20 +12,50 @@ jobs:
- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install 1.67 -c rust-docs
rustup default 1.67
rustup toolchain install 1.85 -c rust-docs
rustup default 1.85
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.45/mdbook-v0.4.45-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> "${GITHUB_PATH}"
- name: Report versions
run: |
rustup --version
rustc -Vv
mdbook --version

# mdBook does not currently have particularly good support for “external”
# crates. To make the test suite work correctly with `trpl`, we must first
# build `trpl` itself (`mdbook` will not do it), and then explicitly pass
# its `deps` path as a library search path for `mdbook test`. That will make
# sure all the crates can be resolved when running the tests.
- name: Build `trpl` crate
run: |
cd packages/trpl
cargo build
- name: Run tests
run: mdbook test
run:
mdbook test --library-path packages/trpl/target/debug/deps
package_tests:
name: Run package tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Update rustup
run: rustup self update
- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install 1.85 -c rust-docs
rustup default 1.85
- name: Run `tools` package tests
run: |
cargo test
- name: Run `mdbook-trpl` package tests
working-directory: packages/mdbook-trpl
run: |
cargo test
lint:
name: Run lints
runs-on: ubuntu-latest
Expand All @@ -44,8 +71,10 @@ jobs:
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.21/mdbook-v0.4.21-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.45/mdbook-v0.4.45-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> "${GITHUB_PATH}"
- name: Install mdbook-trpl binaries
run: cargo install --path packages/mdbook-trpl
- name: Install aspell
run: sudo apt-get install aspell
- name: Install shellcheck
Expand All @@ -58,7 +87,7 @@ jobs:
aspell --version
shellcheck --version
- name: Shellcheck
run: find . -name '*.sh' | xargs shellcheck
run: find . -name '*.sh' -print0 | xargs -0 shellcheck
- name: Spellcheck
run: bash ci/spellcheck.sh list
- name: Lint for local file paths
Expand Down
60 changes: 0 additions & 60 deletions .github/workflows/mdbook.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ book/
target
tmp

.nova
.vscode
.zed
4 changes: 2 additions & 2 deletions 2018-edition/src/ch17-00-oop.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-00-oop.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-00-oop.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch17-01-what-is-oo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-01-what-is-oo.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-01-what-is-oo.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch17-02-trait-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-02-trait-objects.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-02-trait-objects.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch17-03-oo-design-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-03-oo-design-patterns.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch17-03-oo-design-patterns.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch18-00-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-00-patterns.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-00-patterns.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch18-01-all-the-places-for-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-01-all-the-places-for-patterns.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-01-all-the-places-for-patterns.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch18-02-refutability.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-02-refutability.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-02-refutability.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch18-03-pattern-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-03-pattern-syntax.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch18-03-pattern-syntax.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-00-advanced-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

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

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-00-advanced-features.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-00-advanced-features.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-01-unsafe-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-01-unsafe-rust.html) instead.
version of the book](../ch20-01-unsafe-rust.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-01-unsafe-rust.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-01-unsafe-rust.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-03-advanced-traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-03-advanced-traits.html) instead.
version of the book](../ch20-02-advanced-traits.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-03-advanced-traits.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-03-advanced-traits.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-04-advanced-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-04-advanced-types.html) instead.
version of the book](../ch20-03-advanced-types.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-04-advanced-types.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-04-advanced-types.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-05-advanced-functions-and-closures.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-05-advanced-functions-and-closures.html) instead.
version of the book](../ch20-04-advanced-functions-and-closures.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-05-advanced-functions-and-closures.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-05-advanced-functions-and-closures.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch19-06-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch19-06-macros.html) instead.
version of the book](../ch20-05-macros.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-06-macros.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch19-06-macros.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch20-00-final-project-a-web-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch20-00-final-project-a-web-server.html) instead.
version of the book](../ch21-00-final-project-a-web-server.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-00-final-project-a-web-server.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-00-final-project-a-web-server.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch20-01-single-threaded.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch20-01-single-threaded.html) instead.
version of the book](../ch21-01-single-threaded.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-01-single-threaded.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-01-single-threaded.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch20-02-multithreaded.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch20-02-multithreaded.html) instead.
version of the book](../ch21-02-multithreaded.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-02-multithreaded.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-02-multithreaded.html).
4 changes: 2 additions & 2 deletions 2018-edition/src/ch20-03-graceful-shutdown-and-cleanup.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
The 2018 edition of the book is no longer distributed with Rust's documentation.

If you came here via a link or web search, you may want to check out [the current
version of the book](../ch20-03-graceful-shutdown-and-cleanup.html) instead.
version of the book](../ch21-03-graceful-shutdown-and-cleanup.html) instead.

If you have an internet connection, you can [find a copy distributed with
Rust
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-03-graceful-shutdown-and-cleanup.html).
1.30](https://doc.rust-lang.org/1.30.0/book/2018-edition/ch20-03-graceful-shutdown-and-cleanup.html).
Loading