@@ -21,7 +21,11 @@ repository = "https://github.com/rust-lang/mdBook"
2121rust-version = " 1.85.0" # Keep in sync with installation.md and .github/workflows/main.yml
2222
2323[workspace .dependencies ]
24+ ammonia = " 4.1.1"
2425anyhow = " 1.0.98"
26+ elasticlunr-rs = " 3.0.2"
27+ handlebars = " 6.3.2"
28+ hex = " 0.4.3"
2529log = " 0.4.27"
2630mdbook-core = { path = " crates/mdbook-core" }
2731mdbook-html = { path = " crates/mdbook-html" }
@@ -30,10 +34,12 @@ mdbook-preprocessor = { path = "crates/mdbook-preprocessor" }
3034mdbook-renderer = { path = " crates/mdbook-renderer" }
3135mdbook-summary = { path = " crates/mdbook-summary" }
3236memchr = " 2.7.5"
37+ pretty_assertions = " 1.4.1"
3338pulldown-cmark = { version = " 0.10.3" , default-features = false , features = [" html" ] } # Do not update, part of the public api.
3439regex = " 1.11.1"
3540serde = { version = " 1.0.219" , features = [" derive" ] }
3641serde_json = " 1.0.140"
42+ sha2 = " 0.10.9"
3743tempfile = " 3.20.0"
3844toml = " 0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037
3945
@@ -61,8 +67,6 @@ chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
6167clap = { version = " 4.3.12" , features = [" cargo" , " wrap_help" ] }
6268clap_complete = " 4.3.2"
6369env_logger = " 0.11.1"
64- handlebars = " 6.0"
65- hex = " 0.4.3"
6670log.workspace = true
6771mdbook-core.workspace = true
6872mdbook-html.workspace = true
@@ -76,7 +80,6 @@ pulldown-cmark.workspace = true
7680regex.workspace = true
7781serde.workspace = true
7882serde_json.workspace = true
79- sha2 = " 0.10.8"
8083shlex = " 1.3.0"
8184tempfile.workspace = true
8285toml.workspace = true
@@ -95,22 +98,17 @@ tokio = { version = "1.43.1", features = ["macros", "rt-multi-thread"], optional
9598axum = { version = " 0.8.0" , features = [" ws" ], optional = true }
9699tower-http = { version = " 0.6.0" , features = [" fs" , " trace" ], optional = true }
97100
98- # Search feature
99- elasticlunr-rs = { version = " 3.0.2" , optional = true }
100- ammonia = { version = " 4.0.0" , optional = true }
101-
102101[dev-dependencies ]
103102select = " 0.6.0"
104103semver = " 1.0.17"
105104snapbox = { version = " 0.6.21" , features = [" diff" , " dir" , " term-svg" , " regex" , " json" ] }
106- pretty_assertions = " 1.3.0"
107105walkdir = " 2.3.3"
108106
109107[features ]
110108default = [" watch" , " serve" , " search" ]
111109watch = [" dep:notify" , " dep:notify-debouncer-mini" , " dep:ignore" , " dep:pathdiff" , " dep:walkdir" ]
112110serve = [" dep:futures-util" , " dep:tokio" , " dep:axum" , " dep:tower-http" ]
113- search = [" dep:elasticlunr-rs " , " dep:ammonia " , " mdbook-html/search" ]
111+ search = [" mdbook-html/search" ]
114112
115113[[bin ]]
116114doc = false
0 commit comments