1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-09-16 09:36:41 +02:00

Update mdbook to version 0.4.52 (#2870)

The most significant change for users is that the search index is
downloaded on demand.

For us as a project, it’s good to see the server used by `mdbook serve`
change from `warp` to `asum`: the former hadn’t been updated in a while,
leading us to have old dependencies in our `Cargo.lock`.

I also ran `cargo update` to further unify the versions of our
dependencies. This shrunk `cargo tree --duplicates` a little more.

---------

Co-authored-by: Michael Kerscher <kerscher@google.com>
This commit is contained in:
Martin Geisler
2025-09-15 14:25:15 +02:00
committed by GitHub
parent 1a5d9949ad
commit a9497bdc61
5 changed files with 803 additions and 916 deletions

1700
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -14,7 +14,7 @@ clap = "4.5.46"
lazy_static = "1.5"
log = "0.4.27"
matter = "0.1.0-alpha4"
mdbook = "0.4.51"
mdbook = "0.4.52"
pretty_env_logger = "0.5.0"
regex = "1.11"
serde = "1.0.219"

View File

@@ -10,6 +10,6 @@ description = "A tool for extracting starter code for exercises from Markdown fi
[dependencies]
anyhow = "1.0.99"
log = "0.4.27"
mdbook = "0.4.51"
mdbook = "0.4.52"
pretty_env_logger = "0.5.0"
pulldown-cmark = { version = "0.13.0", default-features = false }

View File

@@ -55,8 +55,17 @@ export const config: WebdriverIO.Config = {
// capabilities for local browser web tests
browserName: "chrome",
"goog:chromeOptions": {
// comment this to see the evaluation
args: ["headless", "disable-gpu"],
// In Github CI this variable is set to true
args: env.CI
? // In CI, we use additional flags for stability.
[
"--headless",
"--disable-gpu",
"--no-sandbox",
"--disable-dev-shm-usage",
]
: // For local runs, you can comment out the line below to see the browser
["--headless"],
},
},
],

View File

@@ -121,7 +121,7 @@ fn install_tools() -> Result<()> {
let install_args = vec![
// The --locked flag is important for reproducible builds. It also
// avoids breakage due to skews between mdbook and mdbook-svgbob.
vec!["mdbook", "--locked", "--version", "0.4.51"],
vec!["mdbook", "--locked", "--version", "0.4.52"],
vec!["mdbook-svgbob", "--locked", "--version", "0.2.2"],
vec!["mdbook-pandoc", "--locked", "--version", "0.10.4"],
vec!["mdbook-i18n-helpers", "--locked", "--version", "0.3.6"],