Skip to content

Commit 6104051

Browse files
committed
Make guide into workspace child so it can share same dependencies with bin.
1 parent d9d1f35 commit 6104051

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

Cargo.toml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,25 @@
11
[workspace]
2-
members = [".", "examples/remove-emphasis/mdbook-remove-emphasis"]
2+
members = [".", "examples/remove-emphasis/mdbook-remove-emphasis", "guide"]
3+
4+
[workspace.dependencies]
5+
anyhow = "1.0.71"
6+
clap = { version = "4.3.12", features = ["cargo", "wrap_help"] }
7+
mdbook = { path = "." }
8+
pulldown-cmark = { version = "0.12.2", default-features = false, features = [
9+
"html",
10+
] } # Do not update, part of the public api.
11+
serde = { version = "1.0.163", features = ["derive"] }
12+
serde_json = "1.0.96"
13+
semver = "1.0.17"
14+
315

416
[package]
517
name = "mdbook"
618
version = "0.4.43"
719
authors = [
820
"Mathieu David <[email protected]>",
921
"Michael-F-Bryan <[email protected]>",
10-
"Matt Ickstadt <[email protected]>"
22+
"Matt Ickstadt <[email protected]>",
1123
]
1224
documentation = "https://rust-lang.github.io/mdBook/index.html"
1325
edition = "2021"
@@ -20,23 +32,24 @@ description = "Creates a book from markdown files"
2032
rust-version = "1.74"
2133

2234
[dependencies]
23-
anyhow = "1.0.71"
35+
anyhow.workspace = true
2436
chrono = { version = "0.4.24", default-features = false, features = ["clock"] }
25-
clap = { version = "4.3.12", features = ["cargo", "wrap_help"] }
37+
clap.workspace = true
2638
clap_complete = "4.3.2"
39+
cargo-manifest = "0.17.0"
2740
once_cell = "1.17.1"
2841
env_logger = "0.11.1"
2942
handlebars = "6.0"
3043
log = "0.4.17"
3144
memchr = "2.5.0"
3245
opener = "0.7.0"
33-
pulldown-cmark = { version = "0.10.0", default-features = false, features = ["html"] } # Do not update, part of the public api.
46+
pulldown-cmark.workspace = true
3447
regex = "1.8.1"
35-
serde = { version = "1.0.163", features = ["derive"] }
36-
serde_json = "1.0.96"
48+
serde.workspace = true
49+
serde_json.workspace = true
3750
shlex = "1.3.0"
3851
tempfile = "3.4.0"
39-
toml = "0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037
52+
toml = "0.5.11" # Do not update, see https://github.com/rust-lang/mdBook/issues/2037
4053
topological-sort = "0.2.2"
4154

4255
# Watch feature
@@ -59,7 +72,7 @@ ammonia = { version = "4.0.0", optional = true }
5972
assert_cmd = "2.0.11"
6073
predicates = "3.0.3"
6174
select = "0.6.0"
62-
semver = "1.0.17"
75+
semver.workspace = true
6376
pretty_assertions = "1.3.0"
6477
walkdir = "2.3.3"
6578

0 commit comments

Comments
 (0)