Skip to content

Patch 1 - #4859

Open
damn-am-star wants to merge 171 commits into
rust-lang:dependabot/cargo/packages/trpl/tokio-1.38.2from
damn-am-star:patch-1
Open

Patch 1#4859
damn-am-star wants to merge 171 commits into
rust-lang:dependabot/cargo/packages/trpl/tokio-1.38.2from
damn-am-star:patch-1

Conversation

@damn-am-star

Copy link
Copy Markdown

No description provided.

JackKelly and others added 30 commits January 23, 2023 15:35
I'm a Rust newbie. When I first read the line "Wrap in all modes...", I first thought that "mode" referred to different modes of the `wrapping_` method. It took me a minute to realise that "mode" referred to the _compilation_ mode! (Maybe I'm a bit sleepy today!) So I'd propose that the text explicitly says "compilation modes", to make the meaning as clear as possible :)
Leaving the existing name around to ensure compatibility with the
currently-published online version.
Leaving the existing name around to ensure compatibility with the
currently-published online version.
carols10cents and others added 30 commits November 8, 2025 18:21
The default is OR search, which is less popular (and therefore more surprising) than AND search
Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-051

This also changes it so that it is not necessary to install
`mbdook-trpl`. This should make it easier to work with the book and the
extension.
This changes the name of the `TrplNote` mdbook preprocessor so that it
matches the name used in `book.toml`. The reason this needs to be in
sync is that in upstream we use `MDBook::with_preprocessor` to replace
the preprocessor, but unfortunately it grabs the name from the
preprocessor itself. If these are out of sync, it ends up not being able
to replace the old preprocessor config. The API in mdbook should
probably be better to make it easier to manage the config. For now, this
is probably the easiest fix.
Fixes rust-lang#4705

The line "the value will be included in the iteration produced by
filter" should refer to "the iterator produced by filter", matching
the surrounding paragraph's use of "iterator" and matching what
filter actually returns (an iterator that lazily yields the chosen
items).

Verified against the current rendering on the stable book page:
https://doc.rust-lang.org/stable/book/ch13-02-iterators.html#closures-that-capture-their-environment

Only one word is changed. `dprint fmt` reports no further formatting
changes.
Upgrades the 'rand' crate dependency from v0.8.5 to v0.10.1 across
all chapter listings and updates the corresponding book narrative to
reflect the new API structure.

Key Changes:
- Manifests: Updated 14 Cargo.toml files in listings to point to rand 0.10.1.
- Source Code: Migrated 11 main.rs and lib.rs source files under listings/ to:
  - Bring the new extension trait 'rand::RngExt' into scope instead of 'rand::Rng'.
  - Replace 'rand::thread_rng().gen_range(1..=100)' with 'rand::rng().random_range(1..=100)'.
- Chapter 1: Updated the offline caching command in ch01-01-installation.md to refer to rand@0.10.1.
- Chapter 2: Updated ch02-00-guessing-game-tutorial.md to explain RngExt, rand::rng, and random_range. Adjusted all SemVer examples, compiler outputs, and hypotheticals to use 0.10.1 / 0.10.2 / 0.11.0.
- Chapter 7: Updated the module path and import system explanation in ch07-04-bringing-paths-into-scope-with-the-use-keyword.md to target the new traits/functions.
- Chapter 14: Updated simulated cargo output in ch14-03-cargo-workspaces.md showing rand v0.10.1 being compiled.
hotfix: incorrect link format used in ch17-06
Fix grammatical typo in Chapter 17-05
Added a Node.js CI workflow and a smoke test script to ensure basic functionality and build integrity.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.