From b46ccc8faa2962126fdd0565093b2c98e3255c7d Mon Sep 17 00:00:00 2001 From: Tipragot Date: Wed, 7 Feb 2024 07:05:55 +0000 Subject: [PATCH] Making the project into a workspace (#12) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-on: https://git.tipragot.fr/corentin/border-wars/pulls/12 Reviewed-by: Corentin Reviewed-by: Raphaƫl Co-authored-by: Tipragot Co-committed-by: Tipragot --- Cargo.toml | 18 +++++------------- crates/border-wars/Cargo.toml | 10 ++++++++++ {src => crates/border-wars/src}/main.rs | 0 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 crates/border-wars/Cargo.toml rename {src => crates/border-wars/src}/main.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index e90c80e..b174bb5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,19 +1,11 @@ -[package] -name = "border-wars" -version = "0.1.0" -edition = "2021" -description = "An online turn based game." -repository = "https://git.tipragot.fr/corentin/border-wars.git" -authors = ["corentin"] +[workspace] +members = ["crates/*"] +resolver = "2" -[lints.rust] +[workspace.lints.rust] missing_docs = "warn" -[lints.rustdoc] -missing_doc_code_examples = "warn" -private_doc_tests = "warn" - -[lints.clippy] +[workspace.lints.clippy] missing_docs_in_private_items = "warn" unwrap_in_result = "warn" unwrap_used = "warn" diff --git a/crates/border-wars/Cargo.toml b/crates/border-wars/Cargo.toml new file mode 100644 index 0000000..19eeb0b --- /dev/null +++ b/crates/border-wars/Cargo.toml @@ -0,0 +1,10 @@ +[package] +name = "border-wars" +version = "0.1.0" +edition = "2021" +description = "An online turn based game." +repository = "https://git.tipragot.fr/corentin/border-wars.git" +authors = ["CoCoSol"] + +[lints] +workspace = true diff --git a/src/main.rs b/crates/border-wars/src/main.rs similarity index 100% rename from src/main.rs rename to crates/border-wars/src/main.rs