How to Use TOML for Configuration in Rust

Configure mdBook settings like title, edition, and preprocessors using the book.toml file.

Use the book.toml file to configure mdBook settings like the Rust edition, HTML output options, and preprocessors.

[book]
title = "My Rust Book"
authors = ["Your Name"]

[output.html]
additional-css = ["theme/custom.css"]

[rust]
edition = "2024"

[preprocessor.custom]
command = "cargo run --bin my-preprocessor"