-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathCargo.toml
More file actions
223 lines (207 loc) · 11.3 KB
/
Cargo.toml
File metadata and controls
223 lines (207 loc) · 11.3 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
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
[workspace]
resolver = "2"
members = ["crates/*"]
[workspace.package]
edition = "2024"
rust-version = "1.88"
authors = ["The Oxidizer Project Authors"]
license = "MIT"
homepage = "https://github.com/microsoft/oxidizer"
# Adhere to the following rules when adding dependencies:
# * All dependencies specified here need to have default-features turned off - individual crates can enable the
# features they need
# * Do not create dependency cycles involving dev-dependencies. While Cargo itself may allow this, and even
# `cargo-release` can deal with them when path-based dependencies are used, they introduce cognitive overhead
# and tooling uncertainties (e.g. rust-analyzer issues warnings if cycles are present). Until a strong reason
# is found to allow cycles, we pre-emptively disallow them.
[workspace.dependencies]
# local dependencies
anyspawn = { path = "crates/anyspawn", default-features = false, version = "0.2.0" }
bytesbuf = { path = "crates/bytesbuf", default-features = false, version = "0.4.1" }
bytesbuf_io = { path = "crates/bytesbuf_io", default-features = false, version = "0.4.0" }
cachet = { path = "crates/cachet", default-features = false, version = "0.1.0" }
cachet_memory = { path = "crates/cachet_memory", default-features = false, version = "0.1.0" }
cachet_service = { path = "crates/cachet_service", default-features = false, version = "0.1.0" }
cachet_tier = { path = "crates/cachet_tier", default-features = false, version = "0.1.0" }
data_privacy = { path = "crates/data_privacy", default-features = false, version = "0.11.0" }
data_privacy_macros = { path = "crates/data_privacy_macros", default-features = false, version = "0.9.0" }
data_privacy_macros_impl = { path = "crates/data_privacy_macros_impl", default-features = false, version = "0.9.0" }
fundle = { path = "crates/fundle", default-features = false, version = "0.3.0" }
fundle_macros = { path = "crates/fundle_macros", default-features = false, version = "0.3.0" }
fundle_macros_impl = { path = "crates/fundle_macros_impl", default-features = false, version = "0.3.0" }
http_extensions = { path = "crates/http_extensions", default-features = false, version = "0.2.1" }
layered = { path = "crates/layered", default-features = false, version = "0.3.0" }
ohno = { path = "crates/ohno", default-features = false, version = "0.3.1" }
ohno_macros = { path = "crates/ohno_macros", default-features = false, version = "0.3.0" }
recoverable = { path = "crates/recoverable", default-features = false, version = "0.1.1" }
seatbelt = { path = "crates/seatbelt", default-features = false, version = "0.4.3" }
templated_uri = { path = "crates/templated_uri", default-features = false, version = "0.1.0" }
templated_uri_macros = { path = "crates/templated_uri_macros", default-features = false, version = "0.1.0" }
templated_uri_macros_impl = { path = "crates/templated_uri_macros_impl", default-features = false, version = "0.1.0" }
testing_aids = { path = "crates/testing_aids", default-features = false }
thread_aware = { path = "crates/thread_aware", default-features = false, version = "0.6.2" }
thread_aware_macros = { path = "crates/thread_aware_macros", default-features = false, version = "0.6.1" }
thread_aware_macros_impl = { path = "crates/thread_aware_macros_impl", default-features = false, version = "0.6.1" }
tick = { path = "crates/tick", default-features = false, version = "0.2.1" }
uniflight = { path = "crates/uniflight", default-features = false, version = "0.1.0" }
# external dependencies
ahash = { version = "0.8", default-features = false }
alloc_tracker = { version = "0.5.9", default-features = false }
anyhow = { version = "1.0.100", default-features = false }
async-once-cell = { version = "0.5", default-features = false }
bytes = { version = "1.11.1", default-features = false }
chrono = { version = "0.4.40", default-features = false }
chrono-tz = { version = "0.10.4", default-features = false }
chumsky = { version = "0.12.0", default-features = false }
criterion = { version = "0.8.1", default-features = false }
darling = { version = "0.23.0", default-features = false }
dashmap = { version = "6.1", default-features = false }
derive_more = { version = "2.0.1", default-features = false }
duct = { version = "1.1.1", default-features = false }
dynosaur = { version = "0.3.0", default-features = false }
fastrand = { version = "2.3.0", default-features = false, features = ["std"] }
foldhash = { version = "0.2.0", default-features = false }
futures = { version = "0.3.31", default-features = false }
futures-channel = { version = "0.3.31", default-features = false }
futures-core = { version = "0.3.31", default-features = false }
futures-util = { version = "0.3.31", default-features = false }
http = { version = "1.2.0", default-features = false, features = ["std"] }
http-body = { version = "1.0.1", default-features = false }
http-body-util = { version = "0.1.3", default-features = false }
hyper = { version = "1.6.0", default-features = false }
hyper-util = { version = "0.1.16", default-features = false }
infinity_pool = { version = "0.8.1", default-features = false }
insta = { version = "1.44.1", default-features = false }
jiff = { version = "0.2.21", default-features = false }
libc = { version = "0.2.178", default-features = false }
many_cpus = { version = "2.1.0", default-features = false }
mockall = { version = "0.14.0", default-features = false }
moka = { version = "0.12.14", default-features = false }
mutants = { version = "0.0.3", default-features = false }
new_zealand = { version = "1.0.1", default-features = false }
nm = { version = "0.1.21", default-features = false }
num-traits = { version = "0.2.19", default-features = false }
once_cell = { version = "1.21.3", default-features = false }
opentelemetry = { version = "0.31.0", default-features = false }
opentelemetry-stdout = { version = "0.31.0", default-features = false }
opentelemetry_sdk = { version = "0.31.0", default-features = false }
parking_lot = { version = "0.12.5", default-features = false }
pct-str = { version = "3.0.1", default-features = false }
pin-project = { version = "1.1.8", default-features = false }
pin-project-lite = { version = "0.2.13", default-features = false }
pretty_assertions = { version = "1.4.1", default-features = false }
prettyplease = { version = "0.2.37", default-features = false }
proc-macro2 = { version = "1.0.103", default-features = false }
quote = { version = "1.0.42", default-features = false }
rapidhash = { version = "4.1.1", default-features = false }
regex = { version = "1.12.2", default-features = false }
rstest = { version = "0.26", default-features = false }
rustc-hash = { version = "2.1.0", default-features = false }
serde = { version = "1.0.228", default-features = false }
serde_core = { version = "1.0.228", default-features = false }
serde_json = { version = "1.0.145", default-features = false }
smallvec = { version = "1.15.1", default-features = false }
static_assertions = { version = "1.1.0", default-features = false }
syn = { version = "2.0.111", default-features = false }
thiserror = { version = "2.0.17", default-features = false }
time = { version = "0.3.47", default-features = false }
tokio = { version = "1.48.0", default-features = false }
tower = { version = "0.5.2", default-features = false }
tower-layer = { version = "0.3.3", default-features = false }
tower-service = { version = "0.3.3", default-features = false }
tracing = { version = "0.1.41", default-features = false }
tracing-subscriber = { version = "0.3.20", default-features = false }
tracing-test = { version = "0.2.6", default-features = false }
trait-variant = { version = "0.1.2", default-features = false }
trybuild = { version = "1.0.114", default-features = false }
typeid = { version = "1.0.3", default-features = false }
uuid = { version = "1.21.0", default-features = false }
windows-sys = { version = "0.61.2", default-features = false }
xxhash-rust = { version = "0.8.15", default-features = false }
[workspace.lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
# Allow our special-purpose nonstandard cfg attributes.
unexpected_cfgs = { level = "warn", check-cfg = [
'cfg(coverage,coverage_nightly)',
] }
[workspace.lints.clippy]
cargo = { level = "warn", priority = -1 }
complexity = { level = "warn", priority = -1 }
correctness = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
perf = { level = "warn", priority = -1 }
style = { level = "warn", priority = -1 }
suspicious = { level = "warn", priority = -1 }
# Lints from the `restriction` group that are not enabled by categories above but are still useful.
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
fn_to_numeric_cast_any = "warn"
if_then_some_else_none = "warn"
map_err_ignore = "warn"
multiple_unsafe_ops_per_block = "warn"
panic = "warn"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
semicolon_outside_block = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unwrap_used = "warn"
#
# Below are undesirable lint rules that are enabled by the categories above but are not useful.
#
# This lint in many cases produces less readable code and is not worth the trouble.
option_if_let_else = "allow"
# Just because a fn can be const does not mean it should be const. Const is a promise, part of the
# API contract, and removing it is a breaking change so we need to be careful where we commit to const.
missing_const_for_fn = "allow"
# This sometimes prevents marking crate-scoped items as pub(crate), so is not welcome.
redundant_pub_crate = "allow"
# Testing panic messages is not universally applicable - panic messages are not an API contract.
should_panic_without_expect = "allow"
# This just misfires a lot and claims we can drop values that actually need to remain borrowed.
# It also often results in much less readable code for no benefit.
significant_drop_tightening = "allow"
# Blocked by Clippy bug: https://github.com/rust-lang/rust-clippy/issues/15036
wildcard_imports = "allow"
# In a large workspace, duplicate dependencies are inevitable; this lint causes more maintenance burden than practical benefit.
multiple_crate_versions = "allow"
[workspace.lints.rustdoc]
missing_crate_level_docs = "warn"
unescaped_backticks = "warn"
# A bit of debugging support for release builds.
[profile.release]
debug = "line-tables-only"
# Best perf possible for benchmarks
[profile.bench]
lto = "fat"
codegen-units = 1
# Best debugging experience possible for test builds. Even though this is the default, we specify it explicitly,
# otherwise it appears that cargo-llvm-cov assumes different defaults which leads to only minimal debug info in
# coverage builds.
[profile.test]
debug = "full"
# No debug info for mutation testing to speed up compilation
[profile.mutants]
inherits = "test"
debug = "none"