Debian Codegraph @

Cargo.toml

raw ◀ ▶
Source reconstructed at patch state 0 of 4 — not the installed (fully patched) source.
4 Debian patches touch this file
1 [workspace]
2 #members = [".", "examples/remove-emphasis/mdbook-remove-emphasis"]
3
4 [workspace.lints.clippy]
5 all = { level = "allow", priority = -2 }
6 correctness = { level = "warn", priority = -1 }
7 complexity = { level = "warn", priority = -1 }
8 needless-lifetimes = "allow" # Remove once 1.87 is stable, https://github.com/rust-lang/rust-clippy/issues/13514
9
10 [package]
11 name = "mdbook"
12 version = "0.4.52"
13 authors = [
14 "Mathieu David <[email protected]>",
15 "Michael-F-Bryan <[email protected]>",
16 "Matt Ickstadt <[email protected]>"
17 ]
18 documentation = "https://rust-lang.github.io/mdBook/index.html"
19 edition = "2021"
20 exclude = ["/guide/*"]
21 keywords = ["book", "gitbook", "rustbook", "markdown"]
22 license = "MPL-2.0"
23 readme = "README.md"
24 repository = "https://github.com/rust-lang/mdBook"
25 description = "Creates a book from markdown files"
26 rust-version = "1.82" # Keep in sync with installation.md and .github/workflows/main.yml
27
28 [dependencies]
29 anyhow = "1.0.71"
30 chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
31 clap = { version = "4.3.12", features = ["cargo", "wrap_help"] }
32 clap_complete = "4.3.2"
33 env_logger = "0.11.1"
34 handlebars = "5.1"
35 hex = "0.4.3"
36 log = "0.4.17"
37 memchr = "2.5.0"
38 opener = "0.6"
39 pulldown-cmark = { version = "0.13.0", default-features = false, features = ["html"] } # Do not update, part of the public api.
40 regex = "1.8.1"
41 serde = { version = "1.0.163", features = ["derive"] }
42 serde_json = "1.0.96"
43 sha2 = "0.10.8"
44 shlex = "1.3.0"
45 tempfile = "3.4.0"
46 toml = "0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037
47 topological-sort = "0.2.2"
48
49 # Watch feature
50 notify = { version = "8.0.0", optional = true }
51 notify-debouncer-mini = { version = "0.7", optional = true }
52 ignore = { version = "0.4.20", optional = true }
53 pathdiff = { version = "0.2.1", optional = true }
54 walkdir = { version = "2.3.3", optional = true }
55
56 # Serve feature
57 futures-util = { version = "0.3.28", optional = true }
58 tokio = { version = "1.43.1", features = ["macros", "rt-multi-thread"], optional = true }
59 axum = { version = "0.8.0", features = ["ws"], optional = true }
60 tower-http = { version = "0.6.0", features = ["fs", "trace"], optional = true }
61
62 # Search feature
63 elasticlunr-rs = { version = "3.0.2", optional = true }
64 ammonia = { version = "4.0.0", optional = true }
65
66 [dev-dependencies]
67 select = "0.6.0"
68 semver = "1.0.17"
69 #snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] }
70 pretty_assertions = "1.3.0"
71 walkdir = "2.3.3"
72
73 [features]
74 default = ["watch", "serve", "search"]
75 watch = ["dep:notify", "dep:notify-debouncer-mini", "dep:ignore", "dep:pathdiff", "dep:walkdir"]
76 serve = ["dep:futures-util", "dep:tokio", "dep:axum", "dep:tower-http"]
77 search = ["dep:elasticlunr-rs", "dep:ammonia"]
78
79 [[bin]]
80 doc = false
81 name = "mdbook"
82
83 [[example]]
84 name = "nop-preprocessor"
85 test = true
86
87 [[disabled.example]]
88 name = "remove-emphasis"
89 path = "examples/remove-emphasis/test.rs"
90 crate-type = ["lib"]
91 test = true
92
93 [[test]]
94 harness = false
95 test = false
96 name = "gui"
97 path = "tests/gui/runner.rs"
98 crate-type = ["bin"]
99
100 [lints]
101 workspace = true