From c212d48263efb931a5677d0de10401d733082c1a Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Wed, 22 Feb 2023 21:55:15 -0500 Subject: [PATCH] Move the main subcrate into the outer crate --- Cargo.toml | 9 +++++---- {this_algorithm/src => src}/conversions.rs | 0 {this_algorithm/src => src}/lib.rs | 0 src/main.rs | 3 --- {this_algorithm/src => src}/v0.rs | 0 {this_algorithm/tests => tests}/common/mod.rs | 0 {this_algorithm/tests => tests}/display.rs | 0 this_algorithm/Cargo.toml | 11 ----------- 8 files changed, 5 insertions(+), 18 deletions(-) rename {this_algorithm/src => src}/conversions.rs (100%) rename {this_algorithm/src => src}/lib.rs (100%) delete mode 100644 src/main.rs rename {this_algorithm/src => src}/v0.rs (100%) rename {this_algorithm/tests => tests}/common/mod.rs (100%) rename {this_algorithm/tests => tests}/display.rs (100%) delete mode 100644 this_algorithm/Cargo.toml diff --git a/Cargo.toml b/Cargo.toml index 248929b..f503caa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,13 +5,14 @@ edition = "2021" [workspace] members = [ - # ".", + ".", "./words", - "./this_algorithm", + # "./this_algorithm", ] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -serde="1" -s2="0.0.12" +s2 = "0.0.12" +thiserror = "1.0.38" +words = {path="./words"} diff --git a/this_algorithm/src/conversions.rs b/src/conversions.rs similarity index 100% rename from this_algorithm/src/conversions.rs rename to src/conversions.rs diff --git a/this_algorithm/src/lib.rs b/src/lib.rs similarity index 100% rename from this_algorithm/src/lib.rs rename to src/lib.rs diff --git a/src/main.rs b/src/main.rs deleted file mode 100644 index e7a11a9..0000000 --- a/src/main.rs +++ /dev/null @@ -1,3 +0,0 @@ -fn main() { - println!("Hello, world!"); -} diff --git a/this_algorithm/src/v0.rs b/src/v0.rs similarity index 100% rename from this_algorithm/src/v0.rs rename to src/v0.rs diff --git a/this_algorithm/tests/common/mod.rs b/tests/common/mod.rs similarity index 100% rename from this_algorithm/tests/common/mod.rs rename to tests/common/mod.rs diff --git a/this_algorithm/tests/display.rs b/tests/display.rs similarity index 100% rename from this_algorithm/tests/display.rs rename to tests/display.rs diff --git a/this_algorithm/Cargo.toml b/this_algorithm/Cargo.toml deleted file mode 100644 index fcc7083..0000000 --- a/this_algorithm/Cargo.toml +++ /dev/null @@ -1,11 +0,0 @@ -[package] -name = "this_algorithm" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] -s2 = "0.0.12" -thiserror = "1.0.38" -words={path="../words"}