1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-19 22:19:29 +02:00
comprehensive-rust/mdbook-exerciser
dependabot[bot] 3ecf12123b
cargo: bump the minor group with 2 updates (#2290)
Bumps the minor group with 2 updates:
[pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) and
[googletest](https://github.com/google/googletest-rust).
2024-08-20 16:46:56 +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.