From 097bd1ed715202de3dfdf7a63210bf4a11a77d6d Mon Sep 17 00:00:00 2001 From: Ross MacArthur Date: Sat, 24 Feb 2024 16:01:09 +0200 Subject: [PATCH] Share workspace metadata between packages --- Cargo.toml | 28 ++++++++++++++++++++++------ crates/cli/Cargo.toml | 16 ++++++++-------- crates/detach/Cargo.toml | 16 ++++++++-------- crates/env/Cargo.toml | 16 ++++++++-------- 4 files changed, 46 insertions(+), 30 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7e915fa..0e0ba74 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,21 +1,37 @@ [workspace] members = ["crates/*", "examples/*"] -[package] -name = "powerpack" +[workspace.package] version = "0.5.0" authors = ["Ross MacArthur "] edition = "2021" -description = "⚡ Supercharge your Alfred workflows by building them in Rust!" -readme = "README.md" repository = "https://github.com/rossmacarthur/powerpack" license = "MIT OR Apache-2.0" keywords = ["alfred", "workflow"] categories = ["command-line-utilities"] +[workspace.dependencies] +powerpack = { version = "0.5.0", path = "." } +powerpack-detach = { version = "0.5.0", path = "crates/detach" } +powerpack-env = { version = "0.5.0", path = "crates/env" } + +############################################################################### + +[package] +name = "powerpack" +version.workspace = true +authors.workspace = true +edition.workspace = true +description = "⚡ Supercharge your Alfred workflows by building them in Rust!" +readme = "README.md" +repository.workspace = true +license.workspace = true +keywords.workspace = true +categories.workspace = true + [dependencies] -powerpack-detach = { version = "0.5.0", path = "crates/detach", optional = true } -powerpack-env = { version = "0.5.0", path = "crates/env", optional = true } +powerpack-detach = { workspace = true, optional = true } +powerpack-env = { workspace = true, optional = true } serde = { version = "1.0.193", features = ["derive"] } serde_json = "1.0.108" diff --git a/crates/cli/Cargo.toml b/crates/cli/Cargo.toml index 334d00e..1ccc994 100644 --- a/crates/cli/Cargo.toml +++ b/crates/cli/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "powerpack-cli" -version = "0.5.0" -authors = ["Ross MacArthur "] -edition = "2021" +version.workspace = true +authors.workspace = true +edition.workspace = true description = "⚡ Supercharge your Alfred workflows by building them in Rust!" readme = "README.md" -repository = "https://github.com/rossmacarthur/powerpack" -license = "MIT OR Apache-2.0" -keywords = ["alfred", "workflow"] -categories = ["command-line-utilities"] +repository.workspace = true +license.workspace = true +keywords.workspace = true +categories.workspace = true [dependencies] anyhow = "1.0.78" @@ -23,7 +23,7 @@ uuid = { version = "1.6.1", features = ["v4"] } zip = { version = "0.6.6", features = ["deflate-zlib", "time"], default-features = false } [dev-dependencies] -powerpack = { path = "../.." } +powerpack.workspace = true [[bin]] name = "powerpack" diff --git a/crates/detach/Cargo.toml b/crates/detach/Cargo.toml index 02b8027..7e42738 100644 --- a/crates/detach/Cargo.toml +++ b/crates/detach/Cargo.toml @@ -1,14 +1,14 @@ [package] name = "powerpack-detach" -version = "0.5.0" -authors = ["Ross MacArthur "] -edition = "2021" -description = "⚡ Detach a background process from your Alfred workflow." +version.workspace = true +authors.workspace = true +edition.workspace = true +description = "⚡ Detach a background process from your Alfred workflow" readme = "README.md" -repository = "https://github.com/rossmacarthur/powerpack" -license = "MIT OR Apache-2.0" -keywords = ["alfred", "workflow"] -categories = ["command-line-utilities"] +repository.workspace = true +license.workspace = true +keywords.workspace = true +categories.workspace = true [dependencies] libc = "0.2.151" diff --git a/crates/env/Cargo.toml b/crates/env/Cargo.toml index 8c0275e..2e13fc7 100644 --- a/crates/env/Cargo.toml +++ b/crates/env/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "powerpack-env" -version = "0.5.0" -authors = ["Ross MacArthur "] -edition = "2021" -description = "⚡ Useful environment variables in Alfred workflows." +version.workspace = true +authors.workspace = true +edition.workspace = true +description = "⚡ Useful environment variables in Alfred workflows" readme = "README.md" -repository = "https://github.com/rossmacarthur/powerpack" -license = "MIT OR Apache-2.0" -keywords = ["alfred", "workflow"] -categories = ["command-line-utilities"] +repository.workspace = true +license.workspace = true +keywords.workspace = true +categories.workspace = true