Skip to content

Commit

Permalink
refactor: Move common dependencies to the root Cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Mcdostone committed Feb 9, 2025
1 parent 8009c79 commit 5061940
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ command = { package = "yozefu-command", path = "crates/command/", version = "0.0
yozefu = { package = "yozefu", path = "crates/bin/", version = "0.0.6" }
tui = { package = "yozefu-tui", path = "crates/tui/", version = "0.0.6" }
wasm-types = { package = "wasm-types", path = "crates/wasm-types/", version = "0.0.6" }
serde_json = { version = "1.0.138", features = ["preserve_order"] }
serde = { version = "1.0.217", features = ["derive"] }
log = {version = "0.4.25" }

[profile.release]
opt-level = 3
Expand Down
10 changes: 5 additions & 5 deletions compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:

kafka:
image: confluentinc/cp-kafka:7.7.1
image: confluentinc/cp-kafka:latest
container_name: yozefu-kafka
ports:
- "9092:9092"
Expand All @@ -24,7 +24,7 @@ services:
CLUSTER_ID: 'MkU3OEVBNTcwNTJENDM2Qk'

schema-registry:
image: confluentinc/cp-schema-registry:7.7.1
image: confluentinc/cp-schema-registry:latest
hostname: schema-registry
container_name: yozefu-schema-registry
depends_on:
Expand All @@ -50,7 +50,7 @@ services:

akhq:
container_name: yozefu-akhq
image: tchiotludo/akhq
image: tchiotludo/akhq:latest
restart: unless-stopped
environment:
AKHQ_CONFIGURATION: |
Expand Down Expand Up @@ -94,7 +94,7 @@ services:
kafdrop:
profiles: ["disabled"]
container_name: yozefu-kafdrop
image: obsidiandynamics/kafdrop
image: obsidiandynamics/kafdrop:latest
ports:
- "9003:9000"
environment:
Expand All @@ -120,7 +120,7 @@ services:
provectus-kafka-ui:
profiles: ["disabled"]
container_name: yozefu-provectus
image: provectuslabs/kafka-ui
image: provectuslabs/kafka-ui:latest
ports:
- "9006:8080"
environment:
Expand Down
6 changes: 3 additions & 3 deletions crates/app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ license.workspace = true
repository.workspace = true

[dependencies]
serde = { version = "1.0.217", features = ["derive"] }
serde_json = { version = "1.0.138", features = ["preserve_order"] }
log = "0.4.25"
serde = { workspace = true }
serde_json = { workspace = true }
log = { workspace = true }
lib = { workspace = true, features = ["native"] }
itertools = "0.14.0"
thousands = "0.2.0"
Expand Down
4 changes: 2 additions & 2 deletions crates/command/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ clap = { version = "4.5.28", features = [
"color",
"suggestions",
] }
serde_json = { version = "1.0.138", features = ["preserve_order"] }
log = "0.4.25"
serde_json = { workspace = true }
log = { workspace = true }
env_logger = "0.11.6"
chrono = "0.4.39"
strum = { version = "0.26.3", features = ["derive", "strum_macros"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ license.workspace = true
repository.workspace = true

[dependencies]
serde = { version = "1.0.217", features = ["derive"] }
serde_json = { version = "1.0.138", features = ["preserve_order"] }
serde = { workspace = true }
serde_json = { workspace = true }
chrono = { version = "0.4.39", features = ["serde"], optional = true }
itertools = "0.14.0"
strum = { version = "0.26.3", features = ["derive", "strum_macros"], optional = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/tui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ repository.workspace = true

[dependencies]
tokio = { version = "1", features = ["full", "tracing"] }
serde = { version = "1.0.217", features = ["derive"] }
serde_json = { version = "1.0.138", features = ["preserve_order"] }
log = "0.4.25"
serde = { workspace = true }
serde_json = { workspace = true }
log = { workspace = true }
tui-input = "0.11.1"
chrono = "0.4.39"
strum = { version = "0.26.3", features = ["derive", "strum_macros"] }
Expand Down
4 changes: 2 additions & 2 deletions crates/wasm-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ repository.workspace = true


[dependencies]
serde = { version = "1.0.217", features = ["derive"] }
serde_json = { version = "1.0.138", features = ["preserve_order"] }
serde = { workspace = true }
serde_json = { workspace = true }
lib = { workspace = true }

0 comments on commit 5061940

Please sign in to comment.