| 1 |
[workspace] |
| 2 |
members = [ |
| 3 |
".", |
| 4 |
"crates/*", |
| •5 |
"guide/guide-helper", # "examples/remove-emphasis/mdbook-remove-emphasis", |
| 6 |
] |
| 7 |
|
| 8 |
[workspace.lints.clippy] |
| 9 |
all = { level = "allow", priority = -2 } |
| 10 |
correctness = { level = "warn", priority = -1 } |
| 11 |
complexity = { level = "warn", priority = -1 } |
| 12 |
exhaustive_enums = "warn" |
| 13 |
exhaustive_structs = "warn" |
| 14 |
manual_non_exhaustive = "warn" |
| 15 |
|
| 16 |
[workspace.lints.rust] |
| 17 |
missing_docs = "warn" |
| 18 |
rust_2018_idioms = "warn" |
| 19 |
unreachable_pub = "warn" |
| 20 |
|
| 21 |
[workspace.package] |
| 22 |
edition = "2024" |
| 23 |
license = "MPL-2.0" |
| 24 |
repository = "https://github.com/rust-lang/mdBook" |
| 25 |
rust-version = "1.88.0" # Keep in sync with installation.md and .github/workflows/main.yml |
| 26 |
|
| 27 |
[workspace.dependencies] |
| 28 |
anyhow = "1.0.103" |
| 29 |
axum = "0.8.9" |
| 30 |
clap = { version = "4.6.1", features = ["cargo", "wrap_help"] } |
| 31 |
clap_complete = "4.6.6" |
| 32 |
ego-tree = "0.11.0" |
| 33 |
elasticlunr-rs = "3.0.2" |
| •34 |
#font-awesome-as-a-crate = "0.3.1" |
| 35 |
futures-util = "0.3.32" |
| 36 |
glob = "0.3.3" |
| •37 |
handlebars = "5.1" |
| 38 |
hex = "0.4.3" |
| •39 |
html5ever = "0.35" |
| 40 |
indexmap = "2.14.0" |
| 41 |
ignore = "0.4.26" |
| 42 |
mdbook-core = { path = "crates/mdbook-core", version = "0.5.4" } |
| 43 |
mdbook-driver = { path = "crates/mdbook-driver", version = "0.5.4" } |
| 44 |
mdbook-html = { path = "crates/mdbook-html", version = "0.5.4" } |
| 45 |
mdbook-markdown = { path = "crates/mdbook-markdown", version = "0.5.4" } |
| 46 |
mdbook-preprocessor = { path = "crates/mdbook-preprocessor", version = "0.5.4" } |
| 47 |
mdbook-renderer = { path = "crates/mdbook-renderer", version = "0.5.4" } |
| 48 |
mdbook-summary = { path = "crates/mdbook-summary", version = "0.5.4" } |
| 49 |
memchr = "2.8.2" |
| 50 |
notify = "8.2.0" |
| 51 |
notify-debouncer-mini = "0.7.0" |
| •52 |
opener = "0.6" |
| 53 |
pathdiff = "0.2.3" |
| •54 |
pulldown-cmark = { version = "0.13.3", default-features = false, features = ["html"] } # Do not update, part of the public api. |
| 55 |
regex = "1.12.4" |
| •56 |
select = "0.6.0" |
| 57 |
semver = "1.0.28" |
| 58 |
serde = { version = "1.0.228", features = ["derive"] } |
| 59 |
serde_json = "1.0.150" |
| 60 |
sha2 = "0.11.0" |
| •61 |
shlex = "1.3" |
| •62 |
#snapbox = "1.2.2" |
| 63 |
tempfile = "3.27.0" |
| 64 |
tokio = "1.52.3" |
| 65 |
toml = "1.1.2" |
| 66 |
topological-sort = "0.2.2" |
| •67 |
tower-http = "0.6.8" |
| 68 |
tracing = "0.1.44" |
| 69 |
tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } |
| 70 |
walkdir = "2.5.0" |
| 71 |
|
| 72 |
[package] |
| 73 |
name = "mdbook" |
| 74 |
version = "0.5.4" |
| 75 |
authors = [ |
| 76 |
"Mathieu David <[email protected]>", |
| 77 |
"Michael-F-Bryan <[email protected]>", |
| 78 |
"Matt Ickstadt <[email protected]>" |
| 79 |
] |
| 80 |
documentation = "https://rust-lang.github.io/mdBook/index.html" |
| 81 |
edition.workspace = true |
| 82 |
exclude = ["/guide/*"] |
| 83 |
keywords = ["book", "gitbook", "rustbook", "markdown"] |
| 84 |
license.workspace = true |
| 85 |
readme = "README.md" |
| 86 |
repository.workspace = true |
| 87 |
description = "Creates a book from markdown files" |
| 88 |
rust-version.workspace = true |
| 89 |
|
| 90 |
[dependencies] |
| 91 |
anyhow.workspace = true |
| 92 |
clap.workspace = true |
| 93 |
clap_complete.workspace = true |
| 94 |
mdbook-core.workspace = true |
| 95 |
mdbook-driver.workspace = true |
| 96 |
mdbook-html.workspace = true |
| 97 |
opener.workspace = true |
| 98 |
tracing.workspace = true |
| 99 |
tracing-subscriber.workspace = true |
| 100 |
|
| 101 |
# Watch feature |
| 102 |
ignore = { workspace = true, optional = true } |
| 103 |
notify = { workspace = true, optional = true } |
| 104 |
notify-debouncer-mini = { workspace = true, optional = true } |
| 105 |
pathdiff = { workspace = true, optional = true } |
| 106 |
walkdir = { workspace = true, optional = true } |
| 107 |
|
| 108 |
# Serve feature |
| 109 |
axum = { workspace = true, features = ["ws"], optional = true } |
| 110 |
futures-util = { workspace = true, optional = true } |
| 111 |
tokio = { workspace = true, features = ["macros", "rt-multi-thread"], optional = true } |
| 112 |
tower-http = { workspace = true, features = ["fs", "trace"], optional = true } |
| 113 |
|
| 114 |
[dev-dependencies] |
| 115 |
glob.workspace = true |
| 116 |
mdbook-preprocessor.workspace = true |
| 117 |
mdbook-renderer.workspace = true |
| 118 |
regex.workspace = true |
| 119 |
select.workspace = true |
| 120 |
semver.workspace = true |
| 121 |
serde_json.workspace = true |
| •122 |
#snapbox = { workspace = true, features = ["diff", "dir", "term-svg", "regex", "json"] } |
| 123 |
tempfile.workspace = true |
| 124 |
walkdir.workspace = true |
| 125 |
|
| 126 |
[features] |
| 127 |
default = ["watch", "serve", "search"] |
| 128 |
watch = ["dep:notify", "dep:notify-debouncer-mini", "dep:ignore", "dep:pathdiff", "dep:walkdir"] |
| 129 |
serve = ["dep:futures-util", "dep:tokio", "dep:axum", "dep:tower-http"] |
| 130 |
search = ["mdbook-html/search"] |
| 131 |
|
| 132 |
[[bin]] |
| 133 |
doc = false |
| 134 |
name = "mdbook" |
| 135 |
|
| 136 |
[[example]] |
| 137 |
name = "nop-preprocessor" |
| 138 |
test = true |
| 139 |
|
| •140 |
[[disabled.example]] |
| 141 |
name = "remove-emphasis" |
| 142 |
path = "examples/remove-emphasis/test.rs" |
| 143 |
crate-type = ["lib"] |
| 144 |
test = true |
| 145 |
|
| 146 |
[[test]] |
| 147 |
harness = false |
| 148 |
test = false |
| 149 |
name = "gui" |
| 150 |
path = "tests/gui/runner.rs" |
| 151 |
crate-type = ["bin"] |
| 152 |
|
| 153 |
[lints] |
| 154 |
workspace = true |