From 6259a70327041ba28ed9ed0bed3301f2fca2c92d Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Mon, 9 Jun 2025 14:14:36 +0200 Subject: [PATCH] cargo: Use `workspace.package` table This removes redundancy from the manifest of many of our crates. See: --- Cargo.toml | 4 ++++ radicle-cli-test/Cargo.toml | 6 +++--- radicle-cli/Cargo.toml | 6 +++--- radicle-cob/Cargo.toml | 8 ++++---- radicle-crdt/Cargo.toml | 4 ++-- radicle-crypto/Cargo.toml | 8 ++++---- radicle-dag/Cargo.toml | 8 ++++---- radicle-fetch/Cargo.toml | 6 +++--- radicle-node/Cargo.toml | 6 +++--- radicle-remote-helper/Cargo.toml | 6 +++--- radicle-schemars/Cargo.toml | 8 ++++---- radicle-signals/Cargo.toml | 8 ++++---- radicle-ssh/Cargo.toml | 6 +++--- radicle-systemd/Cargo.toml | 8 ++++---- radicle-term/Cargo.toml | 8 ++++---- radicle-tools/Cargo.toml | 4 ++-- radicle/Cargo.toml | 8 ++++---- 17 files changed, 58 insertions(+), 54 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b49cf779..fc677a10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -32,6 +32,10 @@ default-members = [ resolver = "2" [workspace.package] +edition = "2021" +homepage = "https://radicle.xyz" +license = "MIT OR Apache-2.0" +repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" version = "0.9.0" # Even though some crates in this workspace may build fine diff --git a/radicle-cli-test/Cargo.toml b/radicle-cli-test/Cargo.toml index d42d037f..89141feb 100644 --- a/radicle-cli-test/Cargo.toml +++ b/radicle-cli-test/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "radicle-cli-test" description = "Radicle CLI test library" -homepage = "https://radicle.xyz" -license = "MIT OR Apache-2.0" +homepage.workspace = true +license.workspace = true version = "0.11.0" authors = ["cloudhead "] -edition = "2021" +edition.workspace = true categories = ["development-tools::testing"] keywords = ["cli", "test", "command"] readme = "README.md" diff --git a/radicle-cli/Cargo.toml b/radicle-cli/Cargo.toml index 95601590..7c41fdcf 100644 --- a/radicle-cli/Cargo.toml +++ b/radicle-cli/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "radicle-cli" description = "Radicle CLI" -homepage = "https://radicle.xyz" -license = "MIT OR Apache-2.0" +homepage.workspace = true +license.workspace = true version = "0.13.0" authors = ["cloudhead "] -edition = "2021" +edition.workspace = true build = "build.rs" rust-version.workspace = true diff --git a/radicle-cob/Cargo.toml b/radicle-cob/Cargo.toml index e9bd7ed4..08aa4251 100644 --- a/radicle-cob/Cargo.toml +++ b/radicle-cob/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "radicle-cob" description = "Radicle Collaborative Objects library" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" +homepage.workspace = true +repository.workspace = true version = "0.14.0" authors = [ "Alex Good ", "Fintan Halpenny ", ] -edition = "2021" -license = "MIT OR Apache-2.0" +edition.workspace = true +license.workspace = true keywords = ["radicle", "cob", "cobs"] rust-version.workspace = true diff --git a/radicle-crdt/Cargo.toml b/radicle-crdt/Cargo.toml index 17780f3d..fa99ff11 100644 --- a/radicle-crdt/Cargo.toml +++ b/radicle-crdt/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "radicle-crdt" version = "0.1.0" -license = "MIT OR Apache-2.0" -edition = "2021" +license.workspace = true +edition.workspace = true rust-version.workspace = true [features] diff --git a/radicle-crypto/Cargo.toml b/radicle-crypto/Cargo.toml index d6984764..ff3bdcd8 100644 --- a/radicle-crypto/Cargo.toml +++ b/radicle-crypto/Cargo.toml @@ -1,15 +1,15 @@ [package] name = "radicle-crypto" description = "Radicle cryptographic primitives" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -license = "MIT OR Apache-2.0" +homepage.workspace = true +repository.workspace = true +license.workspace = true version = "0.12.0" authors = [ "cloudhead ", "Fintan Halpenny ", ] -edition = "2021" +edition.workspace = true rust-version.workspace = true [features] diff --git a/radicle-dag/Cargo.toml b/radicle-dag/Cargo.toml index ec053b5e..a28fff0a 100644 --- a/radicle-dag/Cargo.toml +++ b/radicle-dag/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "radicle-dag" description = "Radicle DAG implementation" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -license = "MIT OR Apache-2.0" +homepage.workspace = true +repository.workspace = true +license.workspace = true authors = ["cloudhead "] version = "0.10.0" -edition = "2021" +edition.workspace = true rust-version.workspace = true [dependencies] diff --git a/radicle-fetch/Cargo.toml b/radicle-fetch/Cargo.toml index 7b4cc710..63494bc3 100644 --- a/radicle-fetch/Cargo.toml +++ b/radicle-fetch/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "radicle-fetch" description = "Radicle fetch protocol" -homepage = "https://radicle.xyz" -license = "MIT OR Apache-2.0" +homepage.workspace = true +license.workspace = true version = "0.11.0" authors = ["Fintan Halpenny "] -edition = "2021" +edition.workspace = true rust-version.workspace = true [dependencies] diff --git a/radicle-node/Cargo.toml b/radicle-node/Cargo.toml index 89a88938..842b89e4 100644 --- a/radicle-node/Cargo.toml +++ b/radicle-node/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "radicle-node" description = "The Radicle Node" -homepage = "https://radicle.xyz" -license = "MIT OR Apache-2.0" +homepage.workspace = true +license.workspace = true version = "0.11.0" authors = ["cloudhead "] -edition = "2021" +edition.workspace = true build = "build.rs" rust-version.workspace = true diff --git a/radicle-remote-helper/Cargo.toml b/radicle-remote-helper/Cargo.toml index 82527286..7b38da06 100644 --- a/radicle-remote-helper/Cargo.toml +++ b/radicle-remote-helper/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "radicle-remote-helper" description = "Radicle git remote helper" -homepage = "https://radicle.xyz" -license = "MIT OR Apache-2.0" +homepage.workspace = true +license.workspace = true version = "0.10.0" authors = ["cloudhead "] -edition = "2021" +edition.workspace = true build = "build.rs" rust-version.workspace = true diff --git a/radicle-schemars/Cargo.toml b/radicle-schemars/Cargo.toml index 83bd1acc..4d4327c3 100644 --- a/radicle-schemars/Cargo.toml +++ b/radicle-schemars/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "radicle-schemars" description = "Utility to print JSON Schemas from the `radicle` crate" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -license = "MIT OR Apache-2.0" -edition = "2021" +homepage.workspace = true +repository.workspace = true +license.workspace = true +edition.workspace = true version = "0.1.0" rust-version.workspace = true diff --git a/radicle-signals/Cargo.toml b/radicle-signals/Cargo.toml index a6789a9c..f46e507f 100644 --- a/radicle-signals/Cargo.toml +++ b/radicle-signals/Cargo.toml @@ -1,10 +1,10 @@ [package] name = "radicle-signals" description = "Radicle signal handling" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -license = "MIT OR Apache-2.0" -edition = "2021" +homepage.workspace = true +repository.workspace = true +license.workspace = true +edition.workspace = true version = "0.11.0" rust-version.workspace = true diff --git a/radicle-ssh/Cargo.toml b/radicle-ssh/Cargo.toml index 2050af80..b16fe402 100644 --- a/radicle-ssh/Cargo.toml +++ b/radicle-ssh/Cargo.toml @@ -1,8 +1,8 @@ [package] name = "radicle-ssh" description = "Radicle SSH library" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" +homepage.workspace = true +repository.workspace = true license = "Apache-2.0" version = "0.9.0" authors = [ @@ -10,7 +10,7 @@ authors = [ "Pierre-Étienne Meunier ", "cloudhead " ] -edition = "2021" +edition.workspace = true rust-version.workspace = true [dependencies] diff --git a/radicle-systemd/Cargo.toml b/radicle-systemd/Cargo.toml index e6be50d2..e27b39e7 100644 --- a/radicle-systemd/Cargo.toml +++ b/radicle-systemd/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "radicle-systemd" description = "Radicle integration with Systemd" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -license = "MIT OR Apache-2.0" -edition = "2021" +homepage.workspace = true +repository.workspace = true +license.workspace = true +edition.workspace = true version = "0.9.0" rust-version.workspace = true diff --git a/radicle-term/Cargo.toml b/radicle-term/Cargo.toml index a62aa1a2..1e5808aa 100644 --- a/radicle-term/Cargo.toml +++ b/radicle-term/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "radicle-term" description = "Terminal library used by the Radicle CLI" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -license = "MIT OR Apache-2.0" +homepage.workspace = true +repository.workspace = true +license.workspace = true version = "0.12.0" authors = ["cloudhead "] -edition = "2021" +edition.workspace = true rust-version.workspace = true [features] diff --git a/radicle-tools/Cargo.toml b/radicle-tools/Cargo.toml index 98f9498d..49f0eff1 100644 --- a/radicle-tools/Cargo.toml +++ b/radicle-tools/Cargo.toml @@ -1,9 +1,9 @@ [package] name = "radicle-tools" -license = "MIT OR Apache-2.0" +license.workspace = true version = "0.9.0" authors = ["Alexis Sellier "] -edition = "2021" +edition.workspace = true rust-version.workspace = true [[bin]] diff --git a/radicle/Cargo.toml b/radicle/Cargo.toml index 5bb6ed7e..38562b02 100644 --- a/radicle/Cargo.toml +++ b/radicle/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "radicle" description = "Radicle standard library" -homepage = "https://radicle.xyz" -repository = "https://app.radicle.xyz/seeds/seed.radicle.xyz/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5" -license = "MIT OR Apache-2.0" +homepage.workspace = true +repository.workspace = true +license.workspace = true version = "0.15.0" authors = ["cloudhead "] -edition = "2021" +edition.workspace = true rust-version.workspace = true [features]