-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
118 lines (111 loc) · 3.34 KB
/
Cargo.toml
File metadata and controls
118 lines (111 loc) · 3.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
[workspace]
package.version = "0.0.5-dev1"
package.license = "Apache-2.0"
members = ["rust/*"]
exclude = ["rust/test_schema_store"]
resolver = "2"
[workspace.dependencies]
derive_more = { version = "2.0.1" }
log = { version = "0.4.26" }
ordermap = { version = "0.5.4" }
pyo3 = { version = "0.26.0" }
pyo3-build-config = { version = "0.26.0" }
pyo3-log = { version = "0.13.1" }
fancy-regex = { version = "0.17" }
serde = { version = "1.0.217" }
serde_json = { version = "1.0.135" }
serde_yaml = { version = "0.9.33" }
[profile.release]
# debug = true
[profile.release-lto]
inherits = "release"
lto = true
[workspace.lints.rust]
unsafe_code = "forbid"
missing_docs = "warn"
missing_debug_implementations = "warn"
unreachable_pub = "warn"
unused_qualifications = "warn"
deprecated = "warn"
semicolon_in_expressions_from_macros = "deny"
rust_2024_compatibility = { level = "warn", priority = -1 }
[workspace.lints.clippy]
# Pedantic group
pedantic = { level = "warn", priority = -1 }
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_docs_in_private_items = "allow"
# Restriction group
allow_attributes_without_reason = "warn"
as_conversions = "warn"
create_dir = "deny"
dbg_macro = "deny"
empty_drop = "deny"
empty_enum_variants_with_brackets = "deny"
empty_structs_with_brackets = "deny"
error_impl_error = "deny"
exit = "deny"
expect_used = "warn"
field_scoped_visibility_modifiers = "deny"
filetype_is_file = "deny"
float_cmp_const = "deny"
fn_to_numeric_cast_any = "deny"
format_push_string = "deny"
get_unwrap = "deny"
if_then_some_else_none = "deny"
impl_trait_in_params = "deny"
indexing_slicing = "deny"
infinite_loop = "deny"
integer_division_remainder_used = "warn"
integer_division = "warn"
iter_over_hash_type = "warn"
lossy_float_literal = "deny"
map_err_ignore = "deny"
map_with_unused_argument_over_ranges = "deny"
mem_forget = "deny"
min_ident_chars = "deny"
mixed_read_write_in_expression = "deny"
module_name_repetitions = "deny"
multiple_inherent_impl = "deny"
multiple_unsafe_ops_per_block = "deny"
needless_raw_strings = "deny"
panic = "warn"
panic_in_result_fn = "deny"
partial_pub_fields = "deny"
pathbuf_init_then_push = "deny"
print_stderr = "deny"
print_stdout = "warn"
pub_without_shorthand = "deny"
redundant_type_annotations = "warn"
ref_patterns = "allow" # TODO: discuss
renamed_function_params = "deny"
rest_pat_in_fully_bound_structs = "deny"
same_name_method = "deny"
self_named_module_files = "deny"
semicolon_inside_block = "allow" # TODO: discuss
semicolon_outside_block = "allow" # TODO: discuss
separated_literal_suffix = "allow" # TODO: discuss
shadow_reuse = "warn"
shadow_unrelated = "deny"
str_to_string = "deny"
string_add = "allow" # TODO: discuss
string_lit_chars_any = "warn"
string_slice = "warn"
suspicious_xor_used_as_pow = "warn"
tests_outside_test_module = "deny"
todo = "deny"
try_err = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
unnecessary_safety_comment = "deny"
unnecessary_safety_doc = "deny"
unnecessary_self_imports = "deny"
unneeded_field_pattern = "warn"
unreachable = "deny"
unseparated_literal_suffix = "allow" # TODO: discuss
unused_result_ok = "deny"
unused_trait_names = "deny"
unwrap_in_result = "warn"
unwrap_used = "allow" # TODO: discuss
use_debug = "warn"
verbose_file_reads = "deny"