1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-09-16 09:36:41 +02:00
Files
comprehensive-rust/mdbook-exerciser
Martin Geisler a9497bdc61 Update mdbook to version 0.4.52 (#2870)
The most significant change for users is that the search index is
downloaded on demand.

For us as a project, it’s good to see the server used by `mdbook serve`
change from `warp` to `asum`: the former hadn’t been updated in a while,
leading us to have old dependencies in our `Cargo.lock`.

I also ran `cargo update` to further unify the versions of our
dependencies. This shrunk `cargo tree --duplicates` a little more.

---------

Co-authored-by: Michael Kerscher <kerscher@google.com>
2025-09-15 14:25:15 +02:00
..
2025-05-23 19:03:03 +01:00
2023-05-30 17:04:19 +02:00

exerciser

This is an mdBook renderer to generate templates for exercises from the Markdown source. Given a Markdown file example.md with one or more sections like:

<!-- File src/main.rs -->

```rust,compile_fail
{{#include example/src/main.rs:main}}

fn some_more_code() {
    // TODO: Write some Rust code here.
}
```

and mdbook configuration in book.toml like:

[output.exerciser]
output-directory = "comprehensive-rust-exercises"

It will create a file book/exerciser/comprehensive-rust-exercises/example/src/main.rs with the appropriate contents.