mdbook/Cargo.toml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

111 lines
3.1 KiB
TOML
Raw Normal View History

2024-11-02 15:41:55 -07:00
[workspace]
members = [".", "examples/remove-emphasis/mdbook-remove-emphasis"]
[workspace.lints.clippy]
all = { level = "allow", priority = -2 }
correctness = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
[workspace.lints.rust]
missing_docs = "warn"
rust_2018_idioms = "warn"
[workspace.package]
2025-07-21 10:30:43 -07:00
edition = "2024"
license = "MPL-2.0"
repository = "https://github.com/rust-lang/mdBook"
2025-07-21 10:30:43 -07:00
rust-version = "1.85.0" # Keep in sync with installation.md and .github/workflows/main.yml
2015-07-06 14:21:59 +02:00
[package]
name = "mdbook"
2025-07-14 15:45:55 -07:00
version = "0.4.52"
authors = [
2018-12-25 21:10:45 +09:00
"Mathieu David <mathieudavid@mathieudavid.org>",
"Michael-F-Bryan <michaelfbryan@gmail.com>",
"Matt Ickstadt <mattico8@gmail.com>"
]
documentation = "https://rust-lang.github.io/mdBook/index.html"
edition.workspace = true
exclude = ["/guide/*"]
2015-08-06 23:37:44 +02:00
keywords = ["book", "gitbook", "rustbook", "markdown"]
license.workspace = true
2015-08-06 23:37:44 +02:00
readme = "README.md"
repository.workspace = true
description = "Creates a book from markdown files"
rust-version.workspace = true
2015-07-06 21:12:24 +02:00
[dependencies]
2023-05-13 12:01:03 -07:00
anyhow = "1.0.71"
chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
2023-07-16 12:33:53 -07:00
clap = { version = "4.3.12", features = ["cargo", "wrap_help"] }
clap_complete = "4.3.2"
2024-02-05 14:20:37 -08:00
env_logger = "0.11.1"
2024-07-23 10:32:47 +02:00
handlebars = "6.0"
2025-02-20 08:54:01 -08:00
hex = "0.4.3"
2023-05-13 12:01:03 -07:00
log = "0.4.17"
memchr = "2.5.0"
opener = "0.8.1"
pulldown-cmark = { version = "0.10.0", default-features = false, features = ["html"] } # Do not update, part of the public api.
2023-05-13 12:01:03 -07:00
regex = "1.8.1"
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
2025-02-20 08:52:58 -08:00
sha2 = "0.10.8"
shlex = "1.3.0"
2023-05-13 12:01:03 -07:00
tempfile = "3.4.0"
2023-08-02 08:39:17 -07:00
toml = "0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037
topological-sort = "0.2.2"
# Watch feature
2025-01-28 09:32:17 -08:00
notify = { version = "8.0.0", optional = true }
notify-debouncer-mini = { version = "0.6.0", optional = true }
2023-04-22 12:49:39 -07:00
ignore = { version = "0.4.20", optional = true }
pathdiff = { version = "0.2.1", optional = true }
2024-02-24 13:35:39 -08:00
walkdir = { version = "2.3.3", optional = true }
2016-04-02 04:46:05 +02:00
# Serve feature
2023-05-13 12:01:03 -07:00
futures-util = { version = "0.3.28", optional = true }
tokio = { version = "1.43.1", features = ["macros", "rt-multi-thread"], optional = true }
axum = { version = "0.8.0", features = ["ws"], optional = true }
tower-http = { version = "0.6.0", features = ["fs", "trace"], optional = true }
2016-04-02 04:46:05 +02:00
# Search feature
2023-05-13 12:01:03 -07:00
elasticlunr-rs = { version = "3.0.2", optional = true }
2024-05-14 11:21:52 -07:00
ammonia = { version = "4.0.0", optional = true }
[dev-dependencies]
select = "0.6.0"
2023-05-13 12:01:03 -07:00
semver = "1.0.17"
snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] }
2023-05-13 12:01:03 -07:00
pretty_assertions = "1.3.0"
walkdir = "2.3.3"
[features]
default = ["watch", "serve", "search"]
2024-02-24 13:35:39 -08:00
watch = ["dep:notify", "dep:notify-debouncer-mini", "dep:ignore", "dep:pathdiff", "dep:walkdir"]
serve = ["dep:futures-util", "dep:tokio", "dep:axum", "dep:tower-http"]
2023-04-22 12:49:39 -07:00
search = ["dep:elasticlunr-rs", "dep:ammonia"]
2015-08-06 12:38:48 +02:00
[[bin]]
doc = false
name = "mdbook"
[[example]]
name = "nop-preprocessor"
test = true
2024-11-02 15:41:55 -07:00
[[example]]
name = "remove-emphasis"
path = "examples/remove-emphasis/test.rs"
crate-type = ["lib"]
test = true
2024-11-08 15:15:45 +01:00
[[test]]
harness = false
test = false
name = "gui"
path = "tests/gui/runner.rs"
crate-type = ["bin"]
[lints]
workspace = true