How to use build scripts

Use mdbook commands to build, test, and serve the Rust book documentation locally or in CI.

Use mdbook commands to build, test, and serve the Rust book documentation locally.

mdbook build
mdbook test --library-path packages/trpl/target/debug/deps
mdbook serve

For CI automation, configure .github/workflows/main.yml to install mdbook via curl and tar, then run mdbook test with the --library-path flag pointing to packages/trpl/target/debug/deps to resolve external crate dependencies.