From 445b64ad6699c7455a8c6335ef630bf5963f8457 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Fri, 8 May 2026 14:56:30 +0700 Subject: [PATCH] build: centralize internal dependencies using workspace inheritance --- Cargo.toml | 8 ++++++++ crates/irtt-cli/Cargo.toml | 6 +++--- crates/irtt-client/Cargo.toml | 2 +- crates/irtt-stats/Cargo.toml | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1c5cfe6..7caeed5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,11 @@ resolver = "2" edition = "2021" license = "Apache-2.0" rust-version = "1.75" +repository = "https://github.com/Lochnair/irtt-rs" +homepage = "https://github.com/Lochnair/irtt-rs" +readme = "README.md" + +[workspace.dependencies] +irtt-proto = { version = "0.1.0", path = "crates/irtt-proto" } +irtt-client = { version = "0.1.0", path = "crates/irtt-client" } +irtt-stats = { version = "0.1.0", path = "crates/irtt-stats" } diff --git a/crates/irtt-cli/Cargo.toml b/crates/irtt-cli/Cargo.toml index acaf64a..4af1aee 100644 --- a/crates/irtt-cli/Cargo.toml +++ b/crates/irtt-cli/Cargo.toml @@ -12,6 +12,6 @@ stats = ["dep:irtt-stats"] [dependencies] clap = { version = "4.5", features = ["derive"] } ctrlc = "3.4" -irtt-client = { path = "../irtt-client" } -irtt-proto = { path = "../irtt-proto" } -irtt-stats = { path = "../irtt-stats", optional = true } +irtt-client.workspace = true +irtt-proto.workspace = true +irtt-stats = { workspace = true, optional = true } diff --git a/crates/irtt-client/Cargo.toml b/crates/irtt-client/Cargo.toml index 71296a9..71388f5 100644 --- a/crates/irtt-client/Cargo.toml +++ b/crates/irtt-client/Cargo.toml @@ -6,7 +6,7 @@ license.workspace = true rust-version.workspace = true [dependencies] -irtt-proto = { path = "../irtt-proto" } +irtt-proto.workspace = true libc = { version = "0.2", optional = true } socket2 = { version = "0.5", features = ["all"] } thiserror = "2" diff --git a/crates/irtt-stats/Cargo.toml b/crates/irtt-stats/Cargo.toml index 3472fa2..642f1ec 100644 --- a/crates/irtt-stats/Cargo.toml +++ b/crates/irtt-stats/Cargo.toml @@ -6,4 +6,4 @@ license.workspace = true rust-version.workspace = true [dependencies] -irtt-client = { path = "../irtt-client" } +irtt-client.workspace = true