Skip to content

Commit

Permalink
Move common fields into root Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasPickering committed Jan 14, 2025
1 parent eadcc7c commit 6e11684
Show file tree
Hide file tree
Showing 6 changed files with 60 additions and 50 deletions.
30 changes: 20 additions & 10 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,29 @@
[package]
authors = ["Lucas Pickering <[email protected]>"]
authors = {workspace = true}
description = "Terminal-based HTTP client"
edition = {workspace = true}
homepage = {workspace = true}
keywords = {workspace = true}
license = {workspace = true}
name = "slumber"
repository = {workspace = true}
rust-version = {workspace = true}
version = {workspace = true}

[workspace]
members = ["crates/*"]

[workspace.package]
authors = ["Lucas Pickering <[email protected]>"]
edition = "2021"
homepage = "https://slumber.lucaspickering.me"
keywords = ["rest", "http", "terminal", "tui"]
license = "MIT"
name = "slumber"
repository = "https://github.com/LucasPickering/slumber"
version = "2.5.0"
# Keep in sync w/ rust-toolchain.toml
rust-version = "1.80.0"

[workspace]
members = ["crates/*"]

# Dependencies used in multiple crates get de-duplicated here
[workspace.dependencies]
anyhow = "1.0.0"
Expand All @@ -36,11 +46,11 @@ serde_json = {version = "1.0.120", default-features = false, features = ["preser
serde_json_path = "0.7.1"
serde_test = "1.0.176"
serde_yaml = {version = "0.9.0", default-features = false}
slumber_cli = {path = "./crates/cli", version = "2.5.0" }
slumber_config = {path = "./crates/config", version = "2.5.0" }
slumber_core = {path = "./crates/core", version = "2.5.0" }
slumber_import = {path = "./crates/import", version = "2.5.0" }
slumber_tui = {path = "./crates/tui", version = "2.5.0" }
slumber_cli = {path = "./crates/cli", version = "2.5.0"}
slumber_config = {path = "./crates/config", version = "2.5.0"}
slumber_core = {path = "./crates/core", version = "2.5.0"}
slumber_import = {path = "./crates/import", version = "2.5.0"}
slumber_tui = {path = "./crates/tui", version = "2.5.0"}
strum = {version = "0.26.3", default-features = false}
thiserror = "1.0.63"
tokio = {version = "1.39.2", default-features = false}
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]
authors = ["Lucas Pickering <[email protected]>"]
authors = {workspace = true}
description = "Command line interface for Slumber. Not intended for external use."
edition = "2021"
homepage = "https://slumber.lucaspickering.me"
keywords = ["rest", "http", "terminal", "tui"]
license = "MIT"
edition = {workspace = true}
homepage = {workspace = true}
keywords = {workspace = true}
license = {workspace = true}
name = "slumber_cli"
repository = "https://github.com/LucasPickering/slumber"
version = "2.5.0"
# Rely on parent for rust-version
repository = {workspace = true}
rust-version = {workspace = true}
version = {workspace = true}

[dependencies]
anyhow = {workspace = true}
Expand Down
16 changes: 8 additions & 8 deletions crates/config/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
authors = ["Lucas Pickering <[email protected]>"]
authors = {workspace = true}
description = "Configuration for Slumber. Not intended for external use."
edition = "2021"
homepage = "https://slumber.lucaspickering.me"
keywords = ["rest", "http", "terminal", "tui"]
license = "MIT"
edition = {workspace = true}
homepage = {workspace = true}
keywords = {workspace = true}
license = {workspace = true}
name = "slumber_config"
repository = "https://github.com/LucasPickering/slumber"
version = "2.5.0"
# Rely on parent for rust-version
repository = {workspace = true}
rust-version = {workspace = true}
version = {workspace = true}

[dependencies]
anyhow = {workspace = true}
Expand Down
16 changes: 8 additions & 8 deletions crates/core/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
authors = ["Lucas Pickering <[email protected]>"]
authors = {workspace = true}
description = "Core library for Slumber. Not intended for external use."
edition = "2021"
homepage = "https://slumber.lucaspickering.me"
keywords = ["rest", "http", "terminal", "tui"]
license = "MIT"
edition = {workspace = true}
homepage = {workspace = true}
keywords = {workspace = true}
license = {workspace = true}
name = "slumber_core"
repository = "https://github.com/LucasPickering/slumber"
version = "2.5.0"
# Rely on parent for rust-version
repository = {workspace = true}
rust-version = {workspace = true}
version = {workspace = true}

[dependencies]
anyhow = {workspace = true}
Expand Down
16 changes: 8 additions & 8 deletions crates/import/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
authors = ["Lucas Pickering <[email protected]>"]
authors = {workspace = true}
description = "Import from other formats to Slumber collections. Not intended for external use."
edition = "2021"
homepage = "https://slumber.lucaspickering.me"
keywords = ["rest", "http", "terminal", "tui"]
license = "MIT"
edition = {workspace = true}
homepage = {workspace = true}
keywords = {workspace = true}
license = {workspace = true}
name = "slumber_import"
repository = "https://github.com/LucasPickering/slumber"
version = "2.5.0"
# Rely on parent for rust-version
repository = {workspace = true}
rust-version = {workspace = true}
version = {workspace = true}

[dependencies]
anyhow = {workspace = true}
Expand Down
16 changes: 8 additions & 8 deletions crates/tui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
authors = ["Lucas Pickering <[email protected]>"]
authors = {workspace = true}
description = "Terminal user interface for Slumber. Not intended for external use."
edition = "2021"
homepage = "https://slumber.lucaspickering.me"
keywords = ["rest", "http", "terminal", "tui"]
license = "MIT"
edition = {workspace = true}
homepage = {workspace = true}
keywords = {workspace = true}
license = {workspace = true}
name = "slumber_tui"
repository = "https://github.com/LucasPickering/slumber"
version = "2.5.0"
# Rely on parent for rust-version
repository = {workspace = true}
rust-version = {workspace = true}
version = {workspace = true}

[dependencies]
anyhow = {workspace = true}
Expand Down

0 comments on commit 6e11684

Please sign in to comment.