-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (52 loc) · 1.59 KB
/
Cargo.toml
File metadata and controls
62 lines (52 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "mdbook-exercises"
version = "0.1.5"
edition = "2021"
authors = ["MLGuy"]
license = "MIT OR Apache-2.0"
description = "An mdBook preprocessor for interactive exercises with hints, solutions, and test execution"
repository = "https://github.com/guyernest/mdbook-exercises"
homepage = "https://github.com/guyernest/mdbook-exercises"
documentation = "https://docs.rs/mdbook-exercises"
readme = "README.md"
keywords = ["mdbook", "exercises", "education", "markdown", "interactive"]
categories = ["development-tools", "text-processing", "command-line-utilities"]
[features]
default = ["preprocessor"]
# Full mdBook preprocessor (includes rendering)
preprocessor = ["mdbook", "render"]
# HTML rendering without mdBook integration
render = []
# Parser only - no rendering, minimal dependencies
[dependencies]
# Core parsing
pulldown-cmark = "0.10"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
thiserror = "1.0"
regex = "1.10"
# Optional: mdBook integration
mdbook = { version = "0.4", optional = true }
# Optional: rendering
handlebars = { version = "5.1", optional = true }
[dev-dependencies]
pretty_assertions = "1.4"
tempfile = "3.10"
tokio = { version = "1.36", features = ["rt", "macros"] }
[[bin]]
name = "mdbook-exercises"
path = "src/main.rs"
required-features = ["preprocessor"]
[lib]
name = "mdbook_exercises"
path = "src/lib.rs"
[[example]]
name = "parse_exercise"
path = "examples/parse_exercise.rs"
[[example]]
name = "validate_exercises"
path = "examples/validate_exercises.rs"
[[example]]
name = "render_example"
path = "examples/render_example.rs"