From b9c219a72646b5e996b28943ca1f6cee5ca89f86 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Tue, 6 Feb 2024 20:59:22 +0100 Subject: [PATCH 1/2] Making the project into a workspace --- 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..25c1e40 --- /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 = ["corentin"] + +[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 -- 2.43.4 From 95df1cebbe39354767cd95f17dcada3dad07d3f9 Mon Sep 17 00:00:00 2001 From: Tipragot Date: Wed, 7 Feb 2024 06:18:30 +0000 Subject: [PATCH 2/2] Actualiser crates/border-wars/Cargo.toml --- crates/border-wars/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/border-wars/Cargo.toml b/crates/border-wars/Cargo.toml index 25c1e40..19eeb0b 100644 --- a/crates/border-wars/Cargo.toml +++ b/crates/border-wars/Cargo.toml @@ -4,7 +4,7 @@ version = "0.1.0" edition = "2021" description = "An online turn based game." repository = "https://git.tipragot.fr/corentin/border-wars.git" -authors = ["corentin"] +authors = ["CoCoSol"] [lints] workspace = true -- 2.43.4