Skip to content

Commit

Permalink
Share workspace metadata between packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rossmacarthur committed Feb 24, 2024
1 parent b8cc449 commit 097bd1e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 30 deletions.
28 changes: 22 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,37 @@
[workspace]
members = ["crates/*", "examples/*"]

[package]
name = "powerpack"
[workspace.package]
version = "0.5.0"
authors = ["Ross MacArthur <ross@macarthur.io>"]
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"

Expand Down
16 changes: 8 additions & 8 deletions crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "powerpack-cli"
version = "0.5.0"
authors = ["Ross MacArthur <ross@macarthur.io>"]
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"
Expand All @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions crates/detach/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "powerpack-detach"
version = "0.5.0"
authors = ["Ross MacArthur <ross@macarthur.io>"]
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"
Expand Down
16 changes: 8 additions & 8 deletions crates/env/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "powerpack-env"
version = "0.5.0"
authors = ["Ross MacArthur <ross@macarthur.io>"]
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

0 comments on commit 097bd1e

Please sign in to comment.