From d6d5d6e674be8d83d84dbc081992d9109d0e515e Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Mon, 21 Jul 2025 10:17:59 -0700 Subject: [PATCH] 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. --- Cargo.toml | 14 ++++++++++---- .../mdbook-remove-emphasis/Cargo.toml | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3b7aa63f..3ac37343 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,12 @@ complexity = { level = "warn", priority = -1 } missing_docs = "warn" rust_2018_idioms = "warn" +[workspace.package] +edition = "2021" +license = "MPL-2.0" +repository = "https://github.com/rust-lang/mdBook" +rust-version = "1.82.0" # Keep in sync with installation.md and .github/workflows/main.yml + [package] name = "mdbook" version = "0.4.52" @@ -19,14 +25,14 @@ authors = [ "Matt Ickstadt " ] documentation = "https://rust-lang.github.io/mdBook/index.html" -edition = "2021" +edition.workspace = true exclude = ["/guide/*"] keywords = ["book", "gitbook", "rustbook", "markdown"] -license = "MPL-2.0" +license.workspace = true readme = "README.md" -repository = "https://github.com/rust-lang/mdBook" +repository.workspace = true description = "Creates a book from markdown files" -rust-version = "1.82" # Keep in sync with installation.md and .github/workflows/main.yml +rust-version.workspace = true [dependencies] anyhow = "1.0.71" diff --git a/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml b/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml index 7571b18d..38f7e907 100644 --- a/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml +++ b/examples/remove-emphasis/mdbook-remove-emphasis/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mdbook-remove-emphasis" version = "0.1.0" -edition = "2021" +edition.workspace = true [dependencies] mdbook = { version = "0.4.40", path = "../../.." }