-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
203 lines (194 loc) · 8.22 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
[package]
name = "patchify"
version = "0.2.1"
description = "Support for running applications to automatically update themselves"
categories = ["config", "filesystem"]
keywords = ["auto-update", "library", "updater"]
edition = "2021"
rust-version = "1.81.0"
license = "MIT"
authors = ["Dan Williams <[email protected]>"]
documentation = "https://docs.rs/patchify"
repository = "https://github.com/danwilliams/patchify"
readme = "README.md"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.release]
strip = true # Automatically strip symbols from the binary
opt-level = 3 # Maximum optimisation (this is the cargo default)
lto = "thin" # Enable link-time optimisation (fast)
#==============================[ DEPENDENCIES ]===============================
[dependencies]
axum = "0.7.5"
ed25519-dalek = { version = "2.1.1", features = ["rand_core"] }
flume = { version = "0.11.1", features = ["async"] }
futures-util = "0.3.31"
hex = "0.4.3"
parking_lot = "0.12.3"
reqwest = { version = "0.12.9", features = ["stream"] }
rubedo = "0.6.3"
semver = { version = "1.0.23", features = ["serde"] }
serde = { version = "1.0.215", features = ["derive"] }
serde_json = { version = "1.0.132", features = ["preserve_order"] }
sha2 = "0.10.8"
tempfile = "3.14.0"
thiserror = "2.0.3"
tokio = { version = "1.41.1", features = ["fs", "io-std", "io-util", "macros", "rt-multi-thread"] }
tokio-util = { version = "0.7.12", features = ["io", "io-util"] }
tracing = "0.1.40"
[dev-dependencies]
assert-json-diff = "2.0.2"
bytes = "1.8.0"
claims = "0.7.1"
figment = { version = "0.10.19", features = ["toml", "env"] }
mockall = "0.13.0"
rand = "0.8.5"
sham = { version = "0.2.0", features = ["reqwest", "std_process"] }
smart-default = "0.7.1"
test-binary = "3.0.2"
tokio = { version = "1.41.1", features = ["signal"] }
tower-http = { version = "0.6.1", features = ["trace"] }
tracing-subscriber = { version = "0.3.18", features = ["env-filter"] }
velcro = "0.5.4"
wiremock = "0.6.2"
#=================================[ LINTS ]===================================
# For an explanation of the following configuration, see:
# https://github.com/dotfive/standards-rs#code-linting
[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"
unsafe_op_in_unsafe_fn = "forbid"
## 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"
## Warn
let_underscore_drop = "warn"
meta_variable_misuse = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
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"
[lints.clippy]
# Clippy lint categories
cargo = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
# Clippy cargo lints
negative_feature_names = "deny"
wildcard_dependencies = "deny"
# Clippy pedantic lints
pub_underscore_fields = "deny"
module_name_repetitions = "allow" # This is not required
# Clippy restriction lints
## Forbid
allow_attributes_without_reason = "forbid"
dbg_macro = "forbid"
exit = "forbid"
infinite_loop = "forbid"
missing_docs_in_private_items = "forbid"
multiple_inherent_impl = "forbid"
panic_in_result_fn = "forbid"
str_to_string = "forbid"
string_to_string = "forbid"
unimplemented = "forbid"
## Deny
clone_on_ref_ptr = "deny"
empty_enum_variants_with_brackets = "deny"
empty_structs_with_brackets = "deny"
error_impl_error = "deny"
exhaustive_enums = "deny"
exhaustive_structs = "deny"
expect_used = "deny"
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"
missing_assert_message = "deny"
mod_module_files = "deny"
panic = "deny"
print_stderr = "deny"
print_stdout = "deny"
rc_mutex = "deny"
renamed_function_params = "deny"
tests_outside_test_module = "deny"
try_err = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
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"
filetype_is_file = "warn"
if_then_some_else_none = "warn"
indexing_slicing = "warn"
iter_over_hash_type = "warn"
let_underscore_must_use = "warn"
let_underscore_untyped = "warn"
map_err_ignore = "warn"
missing_asserts_for_indexing = "warn"
mixed_read_write_in_expression = "warn"
mutex_atomic = "warn"
pathbuf_init_then_push = "warn"
pattern_type_mismatch = "warn"
pub_without_shorthand = "warn"
rc_buffer = "warn"
redundant_type_annotations = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_name_method = "warn"
semicolon_inside_block = "warn"
shadow_reuse = "warn"
shadow_same = "warn"
shadow_unrelated = "warn"
std_instead_of_core = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
suspicious_xor_used_as_pow = "warn"
todo = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unreachable = "warn"
unseparated_literal_suffix = "warn"
unused_result_ok = "warn"
use_debug = "warn"
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"