@@ -23,6 +23,64 @@ license-file = "LICENSE"
2323repository = " https://github.com/dojoengine/torii"
2424version = " 1.8.11"
2525
26+ [workspace .lints .clippy ]
27+ # Enable pedantic lints for stricter code quality
28+ pedantic = { level = " warn" , priority = -1 }
29+
30+ # Pedantic overrides - these are too noisy or don't fit this codebase
31+ missing_errors_doc = " allow"
32+ missing_panics_doc = " allow"
33+ must_use_candidate = " allow"
34+ doc_markdown = " allow"
35+ similar_names = " allow"
36+ too_many_lines = " allow"
37+ module_name_repetitions = " allow"
38+ struct_excessive_bools = " allow"
39+ fn_params_excessive_bools = " allow"
40+ items_after_statements = " allow"
41+ uninlined_format_args = " allow"
42+ return_self_not_must_use = " allow"
43+ # Cast lints - many false positives where values are known to be in range
44+ cast_possible_truncation = " allow"
45+ cast_sign_loss = " allow"
46+ cast_precision_loss = " allow"
47+ cast_possible_wrap = " allow"
48+ default_trait_access = " allow"
49+ match_same_arms = " allow"
50+ unused_async = " allow"
51+ manual_let_else = " allow"
52+ used_underscore_binding = " allow"
53+ ref_option_ref = " allow"
54+ ref_option = " allow"
55+ format_push_string = " allow"
56+ case_sensitive_file_extension_comparisons = " allow"
57+ unnecessary_wraps = " allow"
58+ needless_pass_by_value = " allow"
59+ trivially_copy_pass_by_ref = " allow"
60+ no_effect_underscore_binding = " allow"
61+ redundant_closure_for_method_calls = " allow"
62+
63+ # Panic safety - deny any operations that could panic
64+ unwrap_used = " deny"
65+ expect_used = " deny"
66+ panic = " deny"
67+
68+ # Prohibit all allow attributes - no exceptions
69+ allow_attributes = " deny"
70+
71+ # Allow large error types
72+ result_large_err = " allow"
73+
74+ # No debug macros in production code
75+ dbg_macro = " deny"
76+ # No incomplete code markers
77+ todo = " deny"
78+ unimplemented = " deny"
79+
80+ # Use tracing instead of println/eprintln in library code
81+ print_stdout = " deny"
82+ print_stderr = " deny"
83+
2684[profile .performance ]
2785codegen-units = 1
2886incremental = false
0 commit comments