Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
298 lines (285 loc) · 9.39 KB
/
Copy pathCargo.toml
File metadata and controls
298 lines (285 loc) · 9.39 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
293
294
295
296
297
298
[workspace]
resolver = "2"
members = [
"lore",
"lore-aws",
"lore-base",
"lore-capi",
"lore-chaos-client",
"lore-client",
"lore-credential",
"lore-error-set",
"lore-error-set-macro",
"lore-hashicorp",
"lore-integration-tests",
"lore-io",
"lore-macro",
"lore-notification",
"lore-proto",
"lore-revision",
"lore-server",
"lore-storage",
"lore-telemetry",
"lore-transport",
]
[workspace.package]
version = "0.10.2-nightly"
[workspace.lints.rust]
future_incompatible = { level = "warn", priority = -1 }
nonstandard_style = { level = "warn", priority = -1 }
rust_2018_idioms = { level = "warn", priority = -1 }
# lore-server's telemetry reads cfg(tokio_unstable). Declared here because a crate cannot
# have its own lints table alongside `workspace = true`.
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tokio_unstable)'] }
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
# cargo = { level = "warn", priority = -1 } # TODO(raghav.narula) Enable after duplicate dependencies fixed
# undocumented_unsafe_blocks = "warn" # TODO(raghav.narula) enable in follow up
checked_conversions = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
doc_markdown = "warn"
empty_enums = "warn"
enum_glob_use = "warn"
exit = "warn"
expl_impl_clone_on_copy = "warn"
explicit_deref_methods = "warn"
explicit_into_iter_loop = "warn"
fallible_impl_from = "warn"
filter_map_next = "warn"
flat_map_option = "warn"
float_cmp_const = "warn"
fn_params_excessive_bools = "warn"
implicit_clone = "warn"
imprecise_flops = "warn"
inefficient_to_string = "warn"
invalid_upcast_comparisons = "warn"
large_digit_groups = "warn"
large_futures = "warn"
large_stack_arrays = "warn"
large_types_passed_by_value = "warn"
linkedlist = "warn"
lossy_float_literal = "warn"
macro_use_imports = "warn"
manual_ok_or = "warn"
map_err_ignore = "warn"
map_unwrap_or = "warn"
match_same_arms = "warn"
match_wild_err_arm = "warn"
match_wildcard_for_single_variants = "warn"
mem_forget = "warn"
mut_mut = "warn"
mutex_integer = "warn"
needless_continue = "warn"
needless_for_each = "warn"
option_option = "warn"
path_buf_push_overwrite = "warn"
ptr_as_ptr = "warn"
rc_mutex = "warn"
ref_option_ref = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_functions_in_if_condition = "warn"
semicolon_if_nothing_returned = "warn"
single_match_else = "warn"
string_add_assign = "warn"
string_add = "warn"
string_lit_as_bytes = "warn"
todo = "warn"
trait_duplication_in_bounds = "warn"
unimplemented = "warn"
uninlined_format_args = "warn"
unnested_or_patterns = "warn"
unused_async = "warn"
unused_self = "warn"
verbose_file_reads = "warn"
zero_sized_map_values = "warn"
[workspace.dependencies]
lore = { path = "lore" }
lore-aws = { path = "lore-aws" }
lore-base = { path = "lore-base" }
lore-credential = { path = "lore-credential" }
lore-error-set = { path = "lore-error-set" }
lore-error-set-macro = { path = "lore-error-set-macro" }
lore-hashicorp = { path = "lore-hashicorp" }
lore-integration-tests = { path = "lore-integration-tests" }
lore-io = { path = "lore-io" }
lore-macro = { path = "lore-macro" }
lore-notification = { path = "lore-notification" }
lore-proto = { path = "lore-proto" }
lore-revision = { path = "lore-revision" }
lore-server = { path = "lore-server" }
lore-storage = { path = "lore-storage" }
lore-telemetry = { path = "lore-telemetry" }
lore-transport = { path = "lore-transport" }
anstyle = "1.0.11"
anstream = "0.6.20"
anyhow = "1.0.103"
async-channel = "2.5.0"
async-stream = "0.3.6"
async-trait = "0.1.92"
axum = "0.8.4"
base64 = "0.22.1"
# Pinned: the C API pointer types implement the derive-support traits bitcode exports for its own
# derive macro, which its semver guarantees do not cover.
bitcode = "=0.6.9"
bitflags = "2.9.4"
blake3 = "1.8.2"
bytes = { version = "1.11.1", features = ["serde"] }
chrono = { version = "0.4.42", default-features = false, features = ["alloc", "clock"] }
clap = { version = "4.5.47", features = ["derive", "string", "unicode"] }
clap-markdown = "0.1.5"
config = { version = "0.15.15", features = ["toml"], default-features = false }
ctor = "0.2"
crossbeam = "0.8.4"
dashmap = "6.1.0"
diffy = "0.5.2"
directories = "6.0.0"
enum_dispatch = "0.3.13"
tracing-appender = "0.2.3"
tracing-ecs = "0.4.1"
tracing-opentelemetry = "0.32.0"
fastcdc = "3.2.1"
futures = "0.3.31"
glob-match = "0.2.1"
governor = "0.10.1"
hex = "0.4.3"
http = "1.3.1"
http-body = "1.0.1"
indexmap = "2.11.1"
infer = "0.19.0"
io-uring = "0.7"
jsonwebtoken = "9.3.1"
keyring = { version = "3.6.3", features = [
"apple-native",
"windows-native",
"linux-native",
] }
libc = "0.2.175"
lz4-sys = "1.11"
zstd-sys = { version = "2.0", default-features = false, features = ["experimental"] }
mockall = "0.13.1"
opentelemetry = "0.31.0"
opentelemetry-otlp = { version = "0.31.0", features = ["grpc-tonic", "tls", "tls-roots"] }
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] }
opentelemetry-semantic-conventions = { version = "0.31.0", features = ["semconv_experimental"] }
parking_lot = { version = "0.12.4", features = ["arc_lock"] }
pin-project = "1.1.10"
proc-macro2 = "1"
prost = "0.14.1"
prost-types = "0.14.1"
quinn = { version = "0.11.12", default-features = false, features = ["runtime-tokio", "rustls-ring", "bloom"] }
quinn-proto = { version = "=0.11.19", default-features = false }
quote = "1.0.40"
rand = "0.9.2"
tempfile = "3.21"
regex = "1"
rcgen = "0.14.4"
reqwest = { version = "0.12.23", default-features = false, features = [
"rustls-tls-webpki-roots",
"rustls-tls-native-roots",
"charset",
"http2",
"macos-system-configuration",
] }
ring = "0.17.14"
# We configure rustls to not bring in aws-lc-sys, which seems to have build issues on Windows.
rustls = { version = "0.23.31", default-features = false, features = [
"std",
"logging",
"ring",
] }
rustls-pki-types = "1.13.1"
rustls-native-certs = "0.8.2"
smallvec = { version = "1.15.1", features = ["union"] }
serde = { version = "1.0.219", default-features = false, features = ["derive"] }
serde_bytes = "0.11.17"
serde_json = { version = "1.0.143", default-features = false }
serde_with = { version = "3.14.0", default-features = false, features = ["alloc", "macros"] }
serial_test = { version = "3.2.0" }
socket2 = "0.6.0"
syn = "2.0.106"
sysinfo = { version = "0.37.0", features = ["linux-tmpfs"] }
temp-env = "0.3.6"
thiserror = "2.0.16"
tokio = { version = "1.47.1", features = [
"fs",
"io-util",
"macros",
"net",
"parking_lot",
"rt",
"rt-multi-thread",
"signal",
"sync",
"time",
] }
tokio-metrics = { version = "0.4.5", default-features = false, features = ["rt"] }
tokio-stream = { version = "0.1.17", default-features = false, features = ["sync"] }
tokio-util = { version = "0.7.16", default-features = false, features = ["rt"] }
toml = "0.9.5"
trybuild = "1"
tonic = { version = "0.14.2", default-features = false, features = ["codegen", "router", "server", "tls-native-roots", "tls-webpki-roots"] }
tonic-prost = "0.14.2"
tonic-prost-build = "0.14.2"
tower = { version = "0.5.2", default-features = false }
tower-http = { version = "0.6.11", default-features = false }
tracing = { version = "0.1.41", features = ["release_max_level_debug"] }
tracing-subscriber = { version = "0.3.20", features = ["env-filter", "json"] }
tracing-test = "0.2.5"
url = "2.5.7"
urlencoding = "2.1.3"
uuid = { version = "1.18.1", default-features = false, features = ["v4", "v7"] }
vergen = { version = "9.0.6", default-features = false, features = ["cargo", "rustc", "build", "si"] }
webpki-roots = "1.0.7"
windows-sys = "0.61.0"
x509-parser = "0.18.0"
xxhash-rust = { version = "0.8.15", default-features = false, features = ["xxh3"] }
zerocopy = { version = "0.8.26", features = [
"derive",
"alloc",
"simd",
] }
# Note: we currently control debug symbol splitting in .cargo/config.toml
# Unoptimized builds, and the `test` profile that inherits from this one. Every
# test target links the whole workspace, so full DWARF is copied into each of
# them: it dominates link time, the size of the target directory and the
# linker's peak memory. Line tables keep file and line in a backtrace, which is
# what a failing test reports, and drop the type and variable information a
# debugger would use.
[profile.dev]
debug = "line-tables-only"
# Fast build suitable for local development
[profile.release]
debug = "line-tables-only"
incremental = true
debug-assertions = true
panic = "abort"
# Faster to build than the `release` profile, for rapid iteration when debugging
[profile.iteration]
inherits = "release"
lto = "off"
# The actual release build
[profile.release-lto]
inherits = "release"
incremental = false
opt-level = 3
debug = 2
lto = "fat"
codegen-units = 4
debug-assertions = false
# Package overrides. Use this if you want to generate debug info or de-optimise a specific package
#[profile.release.package.lore-revision]
#debug = 2
#opt-level = 0
# Quinn sometimes debug asserts on something, silence it for now until we can investigate
[profile.release.package.quinn]
debug-assertions = false
# Built with debug assertions, tokio boxes every spawned future over 2 KiB rather than over 16 KiB,
# a second allocation per spawn that release-lto does not make.
[profile.release.package.tokio]
debug-assertions = false
[patch.crates-io]
quinn-proto = { path = "vendor/quinn-proto" }
# Fixes a `**` backtracking defect that made the filter silently under-exclude;
# see vendor/glob-match/Cargo.toml.
glob-match = { path = "vendor/glob-match" }