From 4c6ac174ff81780f26bdd950600e7c7c56ef9690 Mon Sep 17 00:00:00 2001 From: user0-07161 Date: Tue, 9 Sep 2025 18:36:30 +0200 Subject: [PATCH] feat: migrate to cargo workspaces --- Cargo.toml | 12 ++++++++++-- coreutils/Cargo.toml | 2 +- shell/Cargo.toml | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 43e4058..3b4354e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,11 +3,19 @@ name = "rebox" version = "0.1.0" edition = "2024" -[dependencies] -boxutils = { path = "./utils" } +[workspace] +members = ["utils", "coreutils", "shell"] +resolver = "3" + +[workspace.dependencies] coreutils = { path = "./coreutils" } +boxutils = { path = "./utils" } shell = { path = "./shell" } +[dependencies] +coreutils.workspace = true +boxutils.workspace = true +shell.workspace = true [[bin]] name = "box" diff --git a/coreutils/Cargo.toml b/coreutils/Cargo.toml index fa9c566..dbbe70e 100644 --- a/coreutils/Cargo.toml +++ b/coreutils/Cargo.toml @@ -4,6 +4,6 @@ version = "0.1.0" edition = "2024" [dependencies] -boxutils = { path = "../utils" } +boxutils.workspace = true hostname = "0.4.0" num_cpus = "1.16.0" diff --git a/shell/Cargo.toml b/shell/Cargo.toml index 10deedd..2bdf0a5 100644 --- a/shell/Cargo.toml +++ b/shell/Cargo.toml @@ -4,4 +4,4 @@ version = "0.1.0" edition = "2024" [dependencies] -boxutils = { path = "../utils" } +boxutils.workspace = true