From 4249872e25b67761d0512de06aa90bce86dff99f Mon Sep 17 00:00:00 2001 From: xblakicex Date: Sun, 15 Jan 2023 19:59:17 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore(code/rust):=20add=20cargo?= =?UTF-8?q?=20in=20chapier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- codes/rust/Cargo.toml | 17 ++++----------- .../Cargo.toml | 21 +++++++++++++++++++ 2 files changed, 25 insertions(+), 13 deletions(-) create mode 100644 codes/rust/chapter_computational_complexity/Cargo.toml diff --git a/codes/rust/Cargo.toml b/codes/rust/Cargo.toml index d9ff563c..91b54bc3 100644 --- a/codes/rust/Cargo.toml +++ b/codes/rust/Cargo.toml @@ -1,14 +1,5 @@ -[package] -name = "chapter_computational_complexity" -version = "0.1.0" -edition = "2021" -[[bin]] -name = "time_complexity" -path = "chapter_computational_complexity/time_complexity.rs" - -[[bin]] -name = "worst_best_time_complexity" -path = "chapter_computational_complexity/worst_best_time_complexity.rs" -[dependencies] -rand = "0.8.5" +[workspace] +members = [ + "chapter_computational_complexity", +] \ No newline at end of file diff --git a/codes/rust/chapter_computational_complexity/Cargo.toml b/codes/rust/chapter_computational_complexity/Cargo.toml new file mode 100644 index 00000000..acfb2170 --- /dev/null +++ b/codes/rust/chapter_computational_complexity/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "chapter_computational_complexity" +version = "0.1.0" +edition = "2021" + + +[[bin]] +name = "leetcode_two_sum" +path = "leetcode_two_sum.rs" + +[[bin]] +name = "time_complexity" +path = "time_complexity.rs" + +[[bin]] +name = "worst_best_time_complexity" +path = "worst_best_time_complexity.rs" + + +[dependencies] +rand = "0.8.5"