From 1287cab6807c83f75f000a150d0420f1be284b5a Mon Sep 17 00:00:00 2001 From: Ryan Butler Date: Tue, 17 Sep 2024 12:03:01 -0400 Subject: [PATCH] use cargo workspace inheritance --- Cargo.toml | 16 +++++++++++----- crates/semaphore-depth-config/Cargo.toml | 7 +++++-- crates/semaphore-depth-macros/Cargo.toml | 7 +++++-- 3 files changed, 21 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 54dc1a7..fadf744 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,22 +1,28 @@ [package] name = "semaphore" version = "0.1.0" -edition = "2021" authors = [ "Remco Bloemen ", "Philipp Sippl ", ] -homepage = "https://github.com/worldcoin/semaphore-rs" -repository = "https://github.com/worldcoin/semaphore-rs" description = "Rust support library for Semaphore" keywords = ["worldcoin", "protocol", "signup"] categories = ["cryptography"] -readme = "Readme.md" -license = "MIT" + +edition.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true [workspace] members = ["crates/*"] +[workspace.package] +edition = "2021" +homepage = "https://github.com/worldcoin/semaphore-rs" +license = "MIT" +repository = "https://github.com/worldcoin/semaphore-rs" + [features] depth_16 = [ "semaphore-depth-config/depth_16", diff --git a/crates/semaphore-depth-config/Cargo.toml b/crates/semaphore-depth-config/Cargo.toml index 69f37c0..c6a4dcf 100644 --- a/crates/semaphore-depth-config/Cargo.toml +++ b/crates/semaphore-depth-config/Cargo.toml @@ -1,10 +1,13 @@ [package] name = "semaphore-depth-config" version = "0.1.0" -license = "MIT" -edition = "2021" publish = false +edition.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true + [features] depth_16 = [] depth_20 = [] diff --git a/crates/semaphore-depth-macros/Cargo.toml b/crates/semaphore-depth-macros/Cargo.toml index c640b3d..eab7013 100644 --- a/crates/semaphore-depth-macros/Cargo.toml +++ b/crates/semaphore-depth-macros/Cargo.toml @@ -1,10 +1,13 @@ [package] name = "semaphore-depth-macros" version = "0.1.0" -license = "MIT" -edition = "2021" publish = false +edition.workspace = true +homepage.workspace = true +license.workspace = true +repository.workspace = true + [features] depth_16 = ["semaphore-depth-config/depth_16"] depth_20 = ["semaphore-depth-config/depth_20"]