Skip to content

Commit

Permalink
refactor: centralize dependency features in workspace root
Browse files Browse the repository at this point in the history
  • Loading branch information
rsachdeva committed Jan 10, 2025
1 parent 1f22db5 commit a0256a3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
11 changes: 11 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@ default-members = [
]

resolver = "2"

[workspace.dependencies]
anyhow = "1.0.95"
clap = "4.5.26"
serde = "1.0.217"
serde_json = "1.0.135"
thiserror = "2.0.11"
tokio = "1"
tokio-test = "0.4.4"
tracing = "0.1.41"
tracing-subscriber = "0.3.19"
16 changes: 8 additions & 8 deletions chatty-tcp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ version = "0.0.1"
edition = "2021"

[dependencies]
tokio = { version = "1", features = ["full"] }
tracing = "0.1.41"
thiserror = "2.0.11"
anyhow = "1.0.95"
serde = "1.0.217"
serde_json = "1.0.135"
clap = { version = "4.5.26", features = ["derive"] }
tokio = { workspace = true, features = ["full"] }
tracing = { workspace = true }
thiserror = { workspace = true }
anyhow = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
clap = { workspace = true, features = ["derive"] }
# workspace member depdenencies
chatty-types = { path = "../chatty-types" }

[dev-dependencies]
tokio-test = "0.4.4"
tokio-test = { workspace = true }

[[bin]]
name = "server"
Expand Down
8 changes: 4 additions & 4 deletions chatty-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.0.1"
edition = "2021"

[dependencies]
tracing = "0.1.41"
tracing-subscriber = { version = "0.3.19", features = ["env-filter"] }
anyhow = "1.0.95"
serde = { version = "1.0.217", features = ["derive"] }
tracing = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
anyhow = { workspace = true }
serde = { workspace = true, features = ["derive"] }

0 comments on commit a0256a3

Please sign in to comment.