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