summaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml33
1 files changed, 33 insertions, 0 deletions
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..c553f8e
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,33 @@
+[workspace]
+members = ["dungeon", "game", "graphics"]
+resolver = "2"
+
+[workspace.lints.clippy]
+# nursery
+branches_sharing_code = "warn"
+collection_is_never_read = "warn"
+derive_partial_eq_without_eq = "warn"
+return_self_not_must_use = "warn"
+use_self = "warn"
+
+# pedantic
+cast_possible_wrap = "warn"
+cast_possible_truncation = "warn"
+inconsistent_struct_constructor = "warn"
+manual_assert = "warn"
+map_unwrap_or = "warn"
+needless_pass_by_value = "warn"
+redundant_closure_for_method_calls = "warn"
+redundant_else = "warn"
+semicolon_if_nothing_returned = "warn"
+single_match_else = "warn"
+uninlined_format_args = "warn"
+unused_self = "warn"
+unnested_or_patterns = "warn"
+used_underscore_binding = "warn"
+
+# restriction
+allow_attributes = "warn"
+expect_used = "deny"
+shadow_reuse = "warn"
+unwrap_used = "deny"