From 286f6523d71275069f67cc3d161e539f4c3c80bc Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 26 May 2026 11:26:01 -0700 Subject: [PATCH 1/2] cargo add uuid --- Cargo.lock | 9 +++++++++ combustcean-core/Cargo.toml | 1 + combustcean-core/src/lib.rs | 13 ------------- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 25d9807..af32c64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5,6 +5,9 @@ version = 4 [[package]] name = "combustcean-core" version = "0.1.0" +dependencies = [ + "uuid", +] [[package]] name = "combustcean-range" @@ -13,3 +16,9 @@ version = "0.1.0" [[package]] name = "combustcean-tongs" version = "0.1.0" + +[[package]] +name = "uuid" +version = "1.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" diff --git a/combustcean-core/Cargo.toml b/combustcean-core/Cargo.toml index 397fbf4..be30dd6 100644 --- a/combustcean-core/Cargo.toml +++ b/combustcean-core/Cargo.toml @@ -4,3 +4,4 @@ version = "0.1.0" edition = "2024" [dependencies] +uuid = { version = "1.23.1", default-features = false } diff --git a/combustcean-core/src/lib.rs b/combustcean-core/src/lib.rs index b93cf3f..8b13789 100644 --- a/combustcean-core/src/lib.rs +++ b/combustcean-core/src/lib.rs @@ -1,14 +1 @@ -pub fn add(left: u64, right: u64) -> u64 { - left + right -} -#[cfg(test)] -mod tests { - use super::*; - - #[test] - fn it_works() { - let result = add(2, 2); - assert_eq!(result, 4); - } -} From c80fca5b676d79ad27721ce52df545b0fd7faa3b Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Tue, 26 May 2026 12:04:22 -0700 Subject: [PATCH 2/2] uuid as workspace dependency --- Cargo.toml | 3 +++ combustcean-core/Cargo.toml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 66b8422..b5fc2b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,3 +1,6 @@ [workspace] resolver = "3" members = ["combustcean-core", "combustcean-range", "combustcean-tongs"] + +[dependencies] +uuid = { version = "1.23.1", default-features = false } diff --git a/combustcean-core/Cargo.toml b/combustcean-core/Cargo.toml index be30dd6..260fa89 100644 --- a/combustcean-core/Cargo.toml +++ b/combustcean-core/Cargo.toml @@ -4,4 +4,4 @@ version = "0.1.0" edition = "2024" [dependencies] -uuid = { version = "1.23.1", default-features = false } +uuid.workspace = true