Skip to content

Commit 6e6518a

Browse files
committed
Move the remaining dependencies to the workspace table
This is intended to have all dependencies only defined in the workspace table, and crates can then refer to it.
1 parent 12fc0ff commit 6e6518a

File tree

1 file changed

+35
-18
lines changed

1 file changed

+35
-18
lines changed

Cargo.toml

Lines changed: 35 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,16 @@ rust-version = "1.85.0" # Keep in sync with installation.md and .github/workflow
2323
[workspace.dependencies]
2424
ammonia = "4.1.1"
2525
anyhow = "1.0.98"
26+
axum = "0.8.4"
27+
chrono = { version = "0.4.41", default-features = false, features = ["clock"] }
28+
clap = { version = "4.5.41", features = ["cargo", "wrap_help"] }
29+
clap_complete = "4.5.55"
2630
elasticlunr-rs = "3.0.2"
31+
env_logger = "0.11.8"
32+
futures-util = "0.3.31"
2733
handlebars = "6.3.2"
2834
hex = "0.4.3"
35+
ignore = "0.4.23"
2936
log = "0.4.27"
3037
mdbook-core = { path = "crates/mdbook-core" }
3138
mdbook-driver = { path = "crates/mdbook-driver" }
@@ -35,16 +42,26 @@ mdbook-preprocessor = { path = "crates/mdbook-preprocessor" }
3542
mdbook-renderer = { path = "crates/mdbook-renderer" }
3643
mdbook-summary = { path = "crates/mdbook-summary" }
3744
memchr = "2.7.5"
45+
notify = "8.1.0"
46+
notify-debouncer-mini = "0.6.0"
47+
opener = "0.8.2"
48+
pathdiff = "0.2.3"
3849
pretty_assertions = "1.4.1"
3950
pulldown-cmark = { version = "0.10.3", default-features = false, features = ["html"] } # Do not update, part of the public api.
4051
regex = "1.11.1"
52+
select = "0.6.1"
53+
semver = "1.0.26"
4154
serde = { version = "1.0.219", features = ["derive"] }
4255
serde_json = "1.0.140"
4356
sha2 = "0.10.9"
4457
shlex = "1.3.0"
58+
snapbox = "0.6.21"
4559
tempfile = "3.20.0"
60+
tokio = "1.46.1"
4661
toml = "0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037
4762
topological-sort = "0.2.2"
63+
tower-http = "0.6.6"
64+
walkdir = "2.5.0"
4865

4966
[package]
5067
name = "mdbook"
@@ -66,10 +83,10 @@ rust-version.workspace = true
6683

6784
[dependencies]
6885
anyhow.workspace = true
69-
chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
70-
clap = { version = "4.3.12", features = ["cargo", "wrap_help"] }
71-
clap_complete = "4.3.2"
72-
env_logger = "0.11.1"
86+
chrono.workspace = true
87+
clap.workspace = true
88+
clap_complete.workspace = true
89+
env_logger.workspace = true
7390
log.workspace = true
7491
mdbook-core.workspace = true
7592
mdbook-driver.workspace = true
@@ -78,30 +95,30 @@ mdbook-markdown.workspace = true
7895
mdbook-preprocessor.workspace = true
7996
mdbook-renderer.workspace = true
8097
mdbook-summary.workspace = true
81-
opener = "0.8.1"
98+
opener.workspace = true
8299
toml.workspace = true
83100

84101
# Watch feature
85-
notify = { version = "8.0.0", optional = true }
86-
notify-debouncer-mini = { version = "0.6.0", optional = true }
87-
ignore = { version = "0.4.20", optional = true }
88-
pathdiff = { version = "0.2.1", optional = true }
89-
walkdir = { version = "2.3.3", optional = true }
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 }
90107

91108
# Serve feature
92-
futures-util = { version = "0.3.28", optional = true }
93-
tokio = { version = "1.43.1", features = ["macros", "rt-multi-thread"], optional = true }
94-
axum = { version = "0.8.0", features = ["ws"], optional = true }
95-
tower-http = { version = "0.6.0", features = ["fs", "trace"], optional = true }
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 }
96113

97114
[dev-dependencies]
98115
regex.workspace = true
99-
select = "0.6.0"
100-
semver = "1.0.17"
116+
select.workspace = true
117+
semver.workspace = true
101118
serde_json.workspace = true
102-
snapbox = { version = "0.6.21", features = ["diff", "dir", "term-svg", "regex", "json"] }
119+
snapbox = { workspace = true, features = ["diff", "dir", "term-svg", "regex", "json"] }
103120
tempfile.workspace = true
104-
walkdir = "2.3.3"
121+
walkdir.workspace = true
105122

106123
[features]
107124
default = ["watch", "serve", "search"]

0 commit comments

Comments
 (0)