Skip to content

Commit d6d5d6e

Browse files
committed
Move common package settings to shared workspace table
This moves common settings that can be shared across crates to the shared workspace table. This will make it easier to maintain these settings when adding more crates.
1 parent 5264074 commit d6d5d6e

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

Cargo.toml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ complexity = { level = "warn", priority = -1 }
1010
missing_docs = "warn"
1111
rust_2018_idioms = "warn"
1212

13+
[workspace.package]
14+
edition = "2021"
15+
license = "MPL-2.0"
16+
repository = "https://github.com/rust-lang/mdBook"
17+
rust-version = "1.82.0" # Keep in sync with installation.md and .github/workflows/main.yml
18+
1319
[package]
1420
name = "mdbook"
1521
version = "0.4.52"
@@ -19,14 +25,14 @@ authors = [
1925
"Matt Ickstadt <[email protected]>"
2026
]
2127
documentation = "https://rust-lang.github.io/mdBook/index.html"
22-
edition = "2021"
28+
edition.workspace = true
2329
exclude = ["/guide/*"]
2430
keywords = ["book", "gitbook", "rustbook", "markdown"]
25-
license = "MPL-2.0"
31+
license.workspace = true
2632
readme = "README.md"
27-
repository = "https://github.com/rust-lang/mdBook"
33+
repository.workspace = true
2834
description = "Creates a book from markdown files"
29-
rust-version = "1.82" # Keep in sync with installation.md and .github/workflows/main.yml
35+
rust-version.workspace = true
3036

3137
[dependencies]
3238
anyhow = "1.0.71"

examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mdbook-remove-emphasis"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition.workspace = true
55

66
[dependencies]
77
mdbook = { version = "0.4.40", path = "../../.." }

0 commit comments

Comments
 (0)