-
Notifications
You must be signed in to change notification settings - Fork 8
/
Cargo.toml
307 lines (290 loc) · 8.36 KB
/
Cargo.toml
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
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
[workspace.package]
authors = ["Calimero Limited <[email protected]>"]
edition = "2021"
repository = "https://github.com/calimero-network/core"
license = "MIT OR Apache-2.0"
license-file = "LICENSE.md"
[workspace]
resolver = "2"
members = [
"./crates/config",
"./crates/context",
"./crates/context/config",
"./crates/crypto",
"./crates/meroctl",
"./crates/merod",
"./crates/network",
"./crates/node",
"./crates/node-primitives",
"./crates/primitives",
"./crates/runtime",
"./crates/sdk",
"./crates/sdk/libs/near",
"./crates/sdk/macros",
"./crates/server",
"./crates/server-primitives",
"./crates/storage",
"./crates/storage-macros",
"./crates/store",
"./crates/store/blobs",
"./apps/kv-store",
"./apps/only-peers",
"./apps/gen-ext",
"./apps/visited",
"./apps/blockchain",
"./contracts/context-config",
"./contracts/registry",
"./contracts/proxy-lib",
"./contracts/test-counter",
"./e2e-tests",
]
[workspace.dependencies]
assert-json-diff = "2.0.2"
async-stream = "0.3.5"
axum = "0.7.4"
base64 = "0.22.0"
borsh = "1.3.1"
bs58 = "0.5.0"
bytes = "1.6.0"
candid = "0.10.10"
camino = "1.1.6"
cfg-if = "1.0.0"
chrono = "0.4.37"
claims = "0.7.1"
clap = "4.4.18"
color-eyre = "0.6.2"
const_format = "0.2.32"
curve25519-dalek = "4.1.3"
dirs = "5.0.1"
ed25519-dalek = "2.1.1"
either = "1.13.0"
eyre = "0.6.12"
fixedstr = { version = "0.5.7", features = ["flex-str", "serde", "std"] }
fragile = "2.0.0"
futures-util = "0.3.30"
generic-array = "1.0.0"
hex = "0.4.3"
http = "1.1.0"
http-serde = "2.1.1"
ic-canister-sig-creation = "1.1"
ic-signature-verification = "0.2"
indexmap = "2.6.0"
jsonwebtoken = "9.3.0"
libp2p = "0.53.2"
libp2p-stream = "0.1.0-alpha.1"
libp2p-identity = "0.2.9"
multiaddr = "0.18.1"
near-account-id = "1.0.0"
near-crypto = "0.26.0"
near-jsonrpc-client = "0.13.0"
near-jsonrpc-primitives = "0.26.0"
near-primitives = "0.26.0"
near-sdk = "5.5.0"
near-workspaces = "0.10.0"
notify = "6.1.1"
ouroboros = "0.18.3"
owo-colors = "3.5.0"
parking_lot = "0.12.3"
prettyplease = "0.2.17"
proc-macro2 = "1.0"
quote = "1.0.37"
rand = "0.8.5"
rand_chacha = "0.3.1"
reqwest = "0.12.2"
ring = "0.17.8"
rocksdb = "0.22.0"
rust-embed = "8.5.0"
sha2 = "0.10.8"
sha3 = "0.10.8"
semver = "1.0.22"
serde = "1.0.196"
serde_json = "1.0.113"
serde_with = "3.9.0"
starknet = "0.12.0"
starknet-crypto = "0.7.1"
starknet-types-core = "0.1.7"
strum = "0.26.2"
syn = "2.0"
tempdir = "0.3.7"
tempfile = "3.12.0"
thiserror = "1.0.56"
thunderdome = "0.6.1"
tokio = "1.35.1"
tokio-test = "0.4.4"
tokio-tungstenite = "0.24.0"
tokio-util = "0.7.11"
toml = "0.8.9"
toml_edit = "0.22.14"
tower = "0.4.13"
tower-http = "0.5.2"
tower-sessions = "0.12.0"
tracing = "0.1.37"
tracing-subscriber = "0.3.17"
trybuild = "1.0"
ureq = "2.9.7"
url = "2.5.2"
uuid = { version = "1.10.0", features = ["serde"] }
velcro = "0.5.4"
wasmer = "4.2.5"
wasmer-types = "4.2.5"
web3 = "0.19.0"
local-ip-address = "0.6.1"
rcgen = "0.13.1"
x509-parser = "0.16.0"
axum-server = { version = "0.6", features = ["tls-rustls"] }
axum-server-dual-protocol = "0.6.0"
[profile.release]
strip = "symbols"
lto = "fat"
codegen-units = 1
opt-level = "z"
panic = "abort"
[profile.app-release]
inherits = "release"
codegen-units = 1
opt-level = "z"
lto = true
debug = false
panic = "abort"
overflow-checks = true
[workspace.lints.rust]
# Future compatibility lints
future_incompatible = { level = "deny", priority = -1 }
# Deprecated approach lints
rust_2018_compatibility = { level = "deny", priority = -1 }
rust_2018_idioms = { level = "warn", priority = -1 }
rust_2021_compatibility = { level = "deny", priority = -1 }
# Unused code lints
unused = { level = "warn", priority = -1 }
# Cherry-picked lints
## Forbid
#unsafe_code = "forbid" TODO: Unsafe code is needed at present
#unsafe_op_in_unsafe_fn = "forbid" TODO: Unsafe code is needed at present
## Deny
deprecated = "deny"
deprecated_where_clause_location = "deny"
incomplete_features = "deny"
internal_features = "deny"
macro_use_extern_crate = "deny"
unknown_lints = "deny"
unnameable_test_items = "deny"
#unreachable_pub = "deny" TODO: Enable later
## Warn
let_underscore_drop = "warn"
meta_variable_misuse = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
#missing_docs = "warn" TODO: Enable later once documentation has been added
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unused_crate_dependencies = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "warn"
unused_results = "warn"
variant_size_differences = "warn"
[workspace.lints.clippy]
# Clippy lint categories
#cargo = { level = "warn", priority = -1 } TODO: Enable later
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# Clippy cargo lints
#negative_feature_names = "deny" TODO: Enable later
#wildcard_dependencies = "deny" TODO: Enable later
# Clippy pedantic lints
## Deny
pub_underscore_fields = "deny"
## Allow
module_name_repetitions = "allow"
# Clippy restriction lints
## Forbid TODO: Make these forbid ASAP
allow_attributes_without_reason = "deny"
dbg_macro = "deny"
exit = "deny"
infinite_loop = "deny"
missing_assert_message = "deny"
#missing_docs_in_private_items = "forbid" TODO: Enable later once documentation has been added
mod_module_files = "deny"
panic_in_result_fn = "deny"
str_to_string = "deny"
string_to_string = "deny"
tests_outside_test_module = "deny"
#unimplemented = "forbid" TODO: Enable as soon as possible, once first release is stable
unwrap_in_result = "deny" # TODO: Change to "forbid" once all unwraps have been removed
## Deny
clone_on_ref_ptr = "deny"
empty_enum_variants_with_brackets = "deny"
empty_structs_with_brackets = "deny"
error_impl_error = "deny"
#expect_used = "deny" TODO: Enable as soon as possible
float_cmp_const = "deny"
fn_to_numeric_cast_any = "deny"
format_push_string = "deny"
get_unwrap = "deny"
impl_trait_in_params = "deny"
integer_division = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
multiple_inherent_impl = "deny"
#panic = "deny" TODO: Enable as soon as possible
rc_mutex = "deny"
renamed_function_params = "deny"
try_err = "deny"
#unwrap_used = "deny" TODO: Enable as soon as possible
wildcard_enum_match_arm = "deny"
## Warn
absolute_paths = "warn"
allow_attributes = "warn"
arithmetic_side_effects = "warn"
as_underscore = "warn"
decimal_literal_representation = "warn"
default_numeric_fallback = "warn"
deref_by_slicing = "warn"
empty_drop = "warn"
#field_scoped_visibility_modifiers = "warn" TODO: Enable later
filetype_is_file = "warn"
if_then_some_else_none = "warn"
#indexing_slicing = "warn" TODO: Enable this later when dealing with unwraps
iter_over_hash_type = "warn"
let_underscore_must_use = "warn"
#let_underscore_untyped = "warn" TODO: Consider enabling later
#map_err_ignore = "warn" TODO: Consider enabling later
missing_asserts_for_indexing = "warn"
mixed_read_write_in_expression = "warn"
mutex_atomic = "warn"
#pattern_type_mismatch = "warn" TODO: Consider enabling later
pub_without_shorthand = "warn"
rc_buffer = "warn"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
#same_name_method = "warn" TODO: Consider enabling later
semicolon_inside_block = "warn"
#shadow_reuse = "warn" TODO: Consider enabling later
#shadow_same = "warn" TODO: Consider enabling later
#shadow_unrelated = "warn" TODO: Consider enabling later
std_instead_of_core = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
suspicious_xor_used_as_pow = "warn"
#todo = "warn" TODO: Enable once all implemented
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
#unreachable = "warn" TODO: Consider enabling later
unseparated_literal_suffix = "warn"
#use_debug = "warn" TODO: Consider enabling later
verbose_file_reads = "warn"
# Clippy suspicious lints
const_is_empty = "deny"
deprecated_clippy_cfg_attr = "deny"
incompatible_msrv = "deny"
multiple_bound_locations = "deny"
unconditional_recursion = "deny"
unnecessary_clippy_cfg = "deny"
# Lint customisations
doc_markdown = "allow" # Annoying number of false positives
multiple_crate_versions = "allow" # Cannot resolve all these
missing_errors_doc = "allow" # TODO: Remove later once documentation has been added
missing_panics_doc = "allow" # TODO: Remove later once documentation has been added
future_not_send = "allow" # TODO: Remove later once Send is implemented