diff --git a/codes/rust/Cargo.toml b/codes/rust/Cargo.toml index d9ff563c8..91b54bc3b 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 000000000..acfb2170c --- /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"