Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
292 lines (255 loc) · 7.49 KB
/
Copy pathCargo.toml
File metadata and controls
292 lines (255 loc) · 7.49 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
[workspace]
members = ["backend", "database_agent", "database_agent_common"]
resolver = "3"
[patch.crates-io]
reqwest.git = "https://github.com/0xIO32/reqwest.git"
[workspace.dependencies]
anyhow = "1.0"
arrayvec = "0.7.8"
async-trait = "0.1.92"
base64 = "0.23.1"
bitflags = "2.13.2"
bytes = "1.12.1"
chrono = "0.4.45"
chrono-tz = { version = "0.10.4", features = ["serde"] }
cron = { version = "0.17.0", features = ["serde"] }
futures = "0.3.34"
futures-util = "0.3.34"
hex = "0.4.3"
http = "1.5.0"
lazy-regex = "3.6.2"
parking_lot = "0.12.5"
rand = "0.10.3"
rustls = "0.23.45"
serde = "1.0"
serde_json = "1.0"
sha2 = "0.11.0"
tokio = { version = "1.53.2", features = ["full"] }
tokio-util = { version = "0.7", features = ["io"] }
tracing = "0.1.44"
tracing-subscriber = "0.3.23"
url = "2.5.8"
uuid = "1.27.0"
axum = "0.8.9"
axum-extra = { version = "0.12.6", features = ["typed-header", "cookie"] }
axum-server = { version = "0.8.0", features = ["tls-rustls"] }
database_agent_common = { path = "database_agent_common", default-features = false }
[workspace.dependencies.daemon_common]
git = "https://github.com/novium-dev/daemon.git"
default-features = false
[workspace.dependencies.reqwest]
version = "0.12.28"
default-features = false
features = [
"charset",
"http2",
"json",
"rustls-tls-webpki-roots-no-provider",
"stream",
]
[workspace.dependencies.sqlx]
version = "0.9.0"
default-features = false
features = [
"chrono",
"macros",
"migrate",
"runtime-tokio",
"tls-rustls-aws-lc-rs",
"uuid",
]
[workspace.dependencies.redis]
version = "1.7.1"
default-features = false
features = [
"uuid",
"json",
"tls-rustls",
"tls-rustls-webpki-roots",
"tokio-rustls-comp",
"connection-manager",
]
[workspace.dependencies.toml]
version = "1.1.6"
features = ["serde", "preserve_order"]
[workspace.dependencies.utoipa]
version = "5.5.0"
features = ["macros", "preserve_path_order", "uuid", "indexmap", "chrono", "url"]
[workspace.dependencies.utoipa-axum]
version = "0.2.0"
[workspace.dependencies.utoipa-swagger-ui]
version = "9.0.2"
features = ["axum"]
[workspace.dependencies.tower-http]
version = "0.7.1"
features = ["cors", "auth", "trace"]
[workspace.dependencies.zelus_keys]
git = "https://github.com/novium-dev/zelus_keys.git"
default-features = false
[workspace.dependencies.zelus]
git = "https://github.com/0xIO32/zelus.git"
default-features = false
[profile.dev.package.sqlx-macros]
opt-level = 3
[workspace.lints.rust]
unused = { level = "deny", priority = -1 }
private_bounds = "allow"
deprecated = "warn"
nonstandard_style = { level = "deny", priority = -1 }
let_underscore = { level = "allow", priority = -1 }
refining_impl_trait = { level = "deny", priority = -1 }
keyword_idents = { level = "deny", priority = -1 }
future_incompatible = { level = "deny", priority = -1 }
[workspace.lints.clippy]
correctness = { level = "deny", priority = -1 }
suspicious = { level = "deny", priority = -1 }
complexity = { level = "deny", priority = -1 }
perf = { level = "deny", priority = -1 }
style = { level = "deny", priority = -1 }
pedantic = { level = "deny", priority = -1 }
nursery = { level = "deny", priority = -1 }
implicit_return = "allow"
field_scoped_visibility_modifiers = "allow"
single_call_fn = "allow"
question_mark_used = "allow"
mod_module_files = "allow"
self_named_module_files = "allow"
ref_patterns = "allow"
pattern_type_mismatch = "allow"
iter_over_hash_type = "allow"
inline_always = "allow"
absolute_paths = "allow"
std_instead_of_alloc = "allow"
used_underscore_binding = "allow"
exhaustive_enums = "allow"
exhaustive_structs = "allow"
missing_inline_in_public_items = "allow"
missing_trait_methods = "allow"
# The `Template` trait declares its methods `async fn`; impls mirror that signature.
unused_async_trait_impl = "allow"
partial_pub_fields = "allow"
pub_use = "allow"
single_char_lifetime_names = "allow"
use_debug = "allow"
needless_raw_strings = "allow"
arbitrary_source_item_ordering = "allow"
module_name_repetitions = "allow"
wildcard_imports = "allow"
impl_trait_in_params = "allow"
float_arithmetic = "allow"
single_match_else = "allow"
missing_assert_message = "allow"
redundant_pub_crate = "allow"
significant_drop_in_scrutinee = "forbid"
renamed_function_params = "allow"
min_ident_chars = "deny" # only deny instead of forbid because of autogenerated code
# Horror with match on ErrorKind
wildcard_enum_match_arm = "allow"
let_underscore_must_use = "allow"
let_underscore_untyped = "allow"
todo = "warn"
unimplemented = "warn"
shadow_reuse = "allow"
shadow_unrelated = "allow"
pub_with_shorthand = "allow"
pub_without_shorthand = "forbid"
unseparated_literal_suffix = "allow"
separated_literal_suffix = "forbid"
semicolon_inside_block = "allow"
semicolon_outside_block = "deny"
# For now, deny later
missing_docs_in_private_items = "allow"
allow_attributes_without_reason = "allow"
too_many_lines = "allow"
unwrap_in_result = "allow"
expect_used = "allow"
as_conversions = "allow"
cast_possible_truncation = "allow"
cognitive_complexity = "allow"
multiple_inherent_impl = "allow"
integer_division_remainder_used = "allow"
integer_division = "allow"
arithmetic_side_effects = "allow"
# For now, deny later, DOC
missing_errors_doc = "allow"
missing_panics_doc = "allow"
# Restriction
allow_attributes = "deny"
as_pointer_underscore = "deny"
assertions_on_result_states = "deny"
cfg_not_test = "deny"
clone_on_ref_ptr = "deny"
create_dir = "deny"
dbg_macro = "deny"
decimal_literal_representation = "deny"
default_numeric_fallback = "deny"
default_union_representation = "deny"
deref_by_slicing = "deny"
disallowed_script_idents = "deny"
doc_include_without_cfg = "deny"
else_if_without_else = "deny"
empty_drop = "deny"
empty_enum_variants_with_brackets = "deny"
empty_structs_with_brackets = "deny"
error_impl_error = "deny"
exit = "forbid" # Should never be part of the code
filetype_is_file = "deny"
float_cmp_const = "deny"
fn_to_numeric_cast_any = "deny"
get_unwrap = "deny"
if_then_some_else_none = "deny"
indexing_slicing = "deny"
infinite_loop = "deny"
inline_asm_x86_att_syntax = "deny"
inline_asm_x86_intel_syntax = "deny"
large_include_file = "deny"
lossy_float_literal = "deny"
map_err_ignore = "deny"
map_with_unused_argument_over_ranges = "deny"
mem_forget = "deny"
missing_asserts_for_indexing = "deny"
mixed_read_write_in_expression = "forbid"
modulo_arithmetic = "deny"
multiple_unsafe_ops_per_block = "deny"
mutex_atomic = "deny"
mutex_integer = "deny"
non_ascii_literal = "deny"
non_zero_suggestions = "deny"
panic = "deny"
panic_in_result_fn = "deny"
pathbuf_init_then_push = "deny"
# pointer_format = "deny" # Not found by clippy?
precedence_bits = "deny"
print_stderr = "deny"
print_stdout = "deny"
rc_buffer = "forbid"
rc_mutex = "forbid"
redundant_test_prefix = "allow"
redundant_type_annotations = "deny"
rest_pat_in_fully_bound_structs = "deny"
return_and_then = "deny"
same_name_method = "deny"
shadow_same = "deny"
std_instead_of_core = "deny"
str_to_string = "deny"
string_add = "deny"
string_lit_chars_any = "deny"
string_slice = "deny"
implicit_clone = "forbid"
suspicious_xor_used_as_pow = "deny"
tests_outside_test_module = "deny"
try_err = "deny"
undocumented_unsafe_blocks = "deny"
unnecessary_safety_comment = "deny"
unnecessary_safety_doc = "deny"
unnecessary_self_imports = "deny"
unneeded_field_pattern = "deny"
unreachable = "allow"
unused_result_ok = "deny"
unused_trait_names = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"
alloc_instead_of_core = "deny"
big_endian_bytes = "deny"
host_endian_bytes = "deny"
little_endian_bytes = "deny"