Development Setup
Prerequisites
- The Rust toolchain pinned in
rust-toolchain.toml. cargo-makefor the project’s task runner.- For working on the book:
mdbook,mdbook-mermaid,mdbook-katex,mdbook-linkcheck.
cargo install cargo-make
cargo install mdbook mdbook-mermaid mdbook-katex mdbook-linkcheck
Common tasks
# Default: fix + ci (format, clippy, tests).
cargo make
# Targeted tasks:
cargo make test
cargo make clippy
cargo make format
# Book tasks (see "Add cargo-make tasks" in the project Makefile.toml):
cargo make book # build the book
cargo make book-serve # build + watch + serve on localhost
cargo make book-check # run mdbook-linkcheck
Working on the book
The book lives in book/.
Source files are Markdown under book/src/, and the output is written to
book/book/ (ignored by git).
cd book
mdbook serve --open