Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Greeting

Opinionated template for multi-crate Rust workspaces, with:

Prerequisites

Software

The following software is expected to be installed and available in PATH:

  • rustup – Rust toolchain manager. Only the stable toolchain is used.
  • just – Command runner. See the justfile for available recipes.
  • taplo – TOML formatter. Configured by taplo.toml.
  • markdownlint-cli2 – Markdown linter. Configured by .markdownlint.json.
  • npx – Node.js package runner, bundled with npm. Used to run Prettier, the Markdown formatter, without a global install.
  • jq – JSON processor. Used by the lint-without-features recipe in the justfile.

VSCode extensions

  • rust-analyzer – Rust language support.
  • Even Better TOML – TOML language support. Uses taplo.toml for formatter settings; reload the VSCode window after changing it.
  • EditorConfig for VS Code – Applies the rules in .editorconfig.
  • markdownlint – Inline Markdown linting. Uses .markdownlint.json.
  • Dependi – Dependency management. Shows whether the versions in Cargo.toml are up-to-date.
  • Error Lens – Shows diagnostics inline, next to the offending code.
  • Markdown All in One – Markdown authoring aids: keyboard shortcuts, table of contents, list editing.
  • Todo Tree – Collects TODO and FIXME comments into a tree view.
  • vscode-just – justfile syntax highlighting.
  • YAML – YAML language support, with schema validation.

Math

This page demonstrates Latex support by the mdbook-katex preprocessor.

Inline math is written with single dollar signs: .

Block math is written with double dollar signs:

Diagrams

This page demonstrates diagram support by the mdbook-mermaid preprocessor.

sequenceDiagram
    Alice->>Bob: Hello!
    Bob->>Alice: Hi!