mdbook/Cargo.toml

101 lines
3 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 }
needless-lifetimes = "allow" # Remove once 1.87 is stable, https://github.com/rust-lang/rust-clippy/issues/13514
2015-07-06 14:21:59 +02:00
[package]
name = "mdbook"
2025-05-26 11:01:12 -07:00
version = "0.4.51"
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 = "2021"
exclude = ["/guide/*"]
2015-08-06 23:37:44 +02:00
keywords = ["book", "gitbook", "rustbook", "markdown"]
license = "MPL-2.0"
2015-08-06 23:37:44 +02:00
readme = "README.md"
repository = "https://github.com/rust-lang/mdBook"
description = "Creates a book from markdown files"
Update dependencies Also bump MSRV to 1.82 Updating anstyle-wincon v3.0.7 -> v3.0.8 Updating backtrace v0.3.74 -> v0.3.75 Updating bitflags v2.9.0 -> v2.9.1 Updating cc v1.2.21 -> v1.2.24 Updating clap v4.5.37 -> v4.5.38 Updating clap_builder v4.5.37 -> v4.5.38 Updating clap_complete v4.5.48 -> v4.5.50 Updating errno v0.3.11 -> v0.3.12 Updating getrandom v0.3.2 -> v0.3.3 Updating icu_collections v1.5.0 -> v2.0.0 Adding icu_locale_core v2.0.0 Removing icu_locid v1.5.0 Removing icu_locid_transform v1.5.0 Removing icu_locid_transform_data v1.5.1 Updating icu_normalizer v1.5.0 -> v2.0.0 Updating icu_normalizer_data v1.5.1 -> v2.0.0 Updating icu_properties v1.5.1 -> v2.0.1 Updating icu_properties_data v1.5.1 -> v2.0.1 Updating icu_provider v1.5.0 -> v2.0.0 Removing icu_provider_macros v1.5.0 Updating idna_adapter v1.2.0 -> v1.2.1 Updating jiff v0.2.12 -> v0.2.14 Updating jiff-static v0.2.12 -> v0.2.14 Updating kqueue v1.0.8 -> v1.1.1 Updating litemap v0.7.5 -> v0.8.0 Adding once_cell_polyfill v1.70.1 Adding potential_utf v0.1.2 Updating rustversion v1.0.20 -> v1.0.21 Updating tempfile v3.19.1 -> v3.20.0 Updating tinystr v0.7.6 -> v0.8.1 Updating tokio v1.44.2 -> v1.45.0 Removing utf16_iter v1.0.5 Updating web_atoms v0.1.1 -> v0.1.2 Updating windows-core v0.61.0 -> v0.61.2 Updating windows-result v0.3.2 -> v0.3.4 Updating windows-strings v0.4.0 -> v0.4.2 Removing write16 v1.0.0 Updating writeable v0.5.5 -> v0.6.1 Updating yoke v0.7.5 -> v0.8.0 Updating yoke-derive v0.7.5 -> v0.8.0 Adding zerotrie v0.2.2 Updating zerovec v0.10.4 -> v0.11.2 Updating zerovec-derive v0.10.3 -> v0.11.1
2025-05-23 07:55:10 -07:00
rust-version = "1.82" # Keep in sync with installation.md and .github/workflows/main.yml
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 }
warp = { version = "0.3.6", default-features = false, features = ["websocket"], 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"]
2023-04-22 12:49:39 -07:00
serve = ["dep:futures-util", "dep:tokio", "dep:warp"]
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