Radar · Rust · Archive · Week 14 · Mar 31 – Apr 6, 2025
Update dependency mdbook to v0.4.48
Nice to knowtooling
- What changed
- The mdbook dependency was updated to v0.4.48, adding footnote back‑reference links, an auto‑theme selection, and removing the
searchindex.jsonfile. - Production impact
- The source does not say.
- Try it
- Build a documentation site with mdbook 0.4.48 and verify that footnotes appear at the bottom of the page.
- Source
- github.com/rust-lang/rfcs/pull/3797
Understand it, then run it
The change updates the mdbook tool to version 0.4.48. mdbook is a program that turns Markdown files into a website. With this update, footnotes now include links that let readers jump back to where the footnote was referenced. The tool also adds an “Auto” theme that follows the system’s light or dark mode, and it no longer generates a searchindex.json file, keeping only searchindex.js.
Run it now
// This program demonstrates the changes introduced in mdbook v0.4.48.
// It prints a short summary of the new features.
// The program compiles and runs on Rust 1.98.1 (edition 2024).
fn main() {
// Footnotes now have back‑reference links and are rendered only at the bottom.
println!("Footnotes: back‑reference links, bottom‑of‑page rendering");
// Auto theme selection defaults to the system‑preferred mode and switches automatically.
println!("Theme: auto selection based on system preference");
// The search index file `searchindex.json` has been removed; only `searchindex.js` is generated.
println!("Search index: only searchindex.js generated, searchindex.json removed");
}
What it printed when we ran it on Rust 1.98.1 (edition 2024)
Footnotes: back‑reference links, bottom‑of‑page rendering Theme: auto selection based on system preference Search index: only searchindex.js generated, searchindex.json removed
Run sends this program (for Solidity, the contract and its tests) to our own sandbox, where it is compiled and run once, with no network, and what it printed or the test report comes back here. Nothing is kept. Runs are counted per visitor for the day so everyone gets a turn; the details are on the legal page.
Written by gpt-oss-20b from the linked source · claims checked against the sources · archive, not individually reviewed