-
-
Notifications
You must be signed in to change notification settings - Fork 696
Expand file tree
/
Copy pathCargo.toml
More file actions
277 lines (265 loc) · 7.46 KB
/
Cargo.toml
File metadata and controls
277 lines (265 loc) · 7.46 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
[profile.release]
# Enable only "line tables", which give line information in backtraces, but do not record information
# about local variables.
debug = 1
# Optimise for the speed of our binary, rather than the speed of compilation.
codegen-units = 1
lto = "thin"
[workspace]
resolver = "2"
# These are the packages which are built/tested when the --all flag is passed to cargo.
#
# We need to explicitly list these, because otherwise the standalone tools
# (e.g. fs_util) won't be included when we build/test things.
members = [
"address",
"async_latch",
"async_value",
"cache",
"client",
"concrete_time",
"dep_inference",
"engine",
"fs",
"fs/brfs",
"fs/fs_util",
"fs/store",
"graph",
"grpc_util",
"hashing",
"stdio",
"logging",
"nailgun",
"options",
"pants_ng/client",
"pants_ng/options",
"pantsd",
"process_execution",
"process_execution/docker",
"process_execution/pe_nailgun",
"process_execution/remote",
"process_execution/sandboxer",
"process_executor",
"protos",
"remote_provider",
"remote_provider/remote_provider_opendal",
"remote_provider/remote_provider_reapi",
"remote_provider/remote_provider_traits",
"rule_graph",
"sharded_lmdb",
"task_executor",
"testutil",
"testutil/mock",
"testutil/local_cas",
"testutil/local_execution_server",
"tryfuture",
"ui",
"watch",
"workunit_store",
]
# These are the packages which are built/tested when no special selector flags are passed to cargo.
#
# This is the set of packages which are expected to work on any arbitrary system that checks out the code.
# It should be exactly equivalent to members, except without any packages that require more system
# configuration than we're comfortable doing in our bootstrap scripts.
#
# In particular, it does not contain the fs/brfs package, which will not compile without a fuse installation.
# On Ubuntu, that means installing libfuse-dev. On OSX, that means installing OSXFUSE.
default-members = [
"address",
"async_latch",
"async_value",
"cache",
"client",
"concrete_time",
"dep_inference",
"engine",
"fs",
"fs/fs_util",
"fs/store",
"graph",
"grpc_util",
"hashing",
"stdio",
"logging",
"nailgun",
"options",
"pantsd",
"process_execution",
"process_execution/docker",
"process_execution/pe_nailgun",
"process_execution/remote",
"process_execution/sandboxer",
"process_executor",
"protos",
"remote_provider",
"remote_provider/remote_provider_opendal",
"remote_provider/remote_provider_reapi",
"remote_provider/remote_provider_traits",
"rule_graph",
"sharded_lmdb",
"task_executor",
"testutil",
"testutil/mock",
"testutil/local_cas",
"testutil/local_execution_server",
"tryfuture",
"ui",
"watch",
"workunit_store",
]
# We set external dependency versions at the workspace level, so they are synced
# across all crates. A crate can use the version set here by setting `workspace = true`
# instead of setting an explicit version. See:
# https://doc.rust-lang.org/nightly/cargo/reference/specifying-dependencies.html#\
# inheriting-a-dependency-from-a-workspace
[workspace.dependencies]
arc-swap = "1.8.2"
async-lock = "3.4.2"
async-oncecell = "0.2"
async-stream = "0.3"
async-trait = "0.1"
axum = "0.8.8"
axum-server = "0.8.0"
bincode = "=1.3.3"
bollard = "0.18.1"
byteorder = "1.5"
bytes = "1.11.1"
chrono = "0.4.43"
clap = "4.5.60"
colored = "3.1.1"
console = "0.16.2"
criterion = "0.8.2"
crossbeam-channel = "0.5"
# TODO: Waiting on https://github.com/Aeledfyr/deepsize/pull/{30,31,32}.
deepsize = { git = "https://github.com/stuhood/deepsize.git", rev = "5c8bee5443fcafe4aaa9274490d354412d0955c1" }
derivative = "2.2"
digest = "0.11"
dirs-next = "2"
docker_credential = "1.3"
either = "1"
env_logger = "0.11.9"
errno = "0.3.14"
fixedbitset = "0.5.7"
fnv = "1.0.5"
fs-set-times = "0.20.3"
fuser = "0.11.1"
futures = "0.3"
futures-core = "0.3.32"
generic-array = "0.14"
glob = "0.3.3"
hdrhistogram = "7.5"
hex = "0.4.3"
http = "1.4.0"
http-body = "1"
http-body-util = "0.1"
hyper = "1"
hyper-rustls = "0.27"
hyper-util = "0.1"
ignore = "0.4.25"
indexmap = { version = "2.13.0", features = ["std", "serde"] }
indicatif = "0.18.4"
internment = "0.6"
itertools = "0.14"
libc = "0.2.182"
lmdb-rkv = { git = "https://github.com/pantsbuild/lmdb-rs.git", rev = "6ae7a552aa2c932c3ddf652a68cdde2fed547cbc" }
log = "0.4.29"
maplit = "1.0.1"
nails = "0.13"
nix = "0.26.3"
notify = { git = "https://github.com/pantsbuild/notify", rev = "276af0f3c5f300bfd534941386ba2f3b3a022df7" }
num_cpus = "1"
num_enum = "0.7"
once_cell = "1.20"
opendal = { version = "0.53.1", default-features = false, features = [
"services-memory",
"services-fs",
"services-ghac",
] }
os_pipe = "1.2.3"
parameterized = "2.0.0"
parking_lot = "0.12.5"
peg = "0.8"
petgraph = { version = "0.8.3", default-features = false, features = ["std", "stable_graph"] }
pin-project = "1.1.5"
pin-project-lite = "0.2"
prodash = { git = "https://github.com/stuhood/prodash", rev = "stuhood/raw-messages-draft", version = "16", default-features = false, features = [
"progress-tree",
"render-line",
"render-line-termion",
] }
prost = "0.13"
prost-build = "0.13"
prost-types = "0.13"
pyo3 = { version = "0.27.2", features = ["parking_lot"] }
pyo3-build-config = "0.27.2"
rand = "0.10.0"
regex = "1.12.3"
reqwest = { version = "0.12", default-features = false }
rlimit = "0.10"
rustls = "0.23.36"
rustls-native-certs = "0.8.3"
rustls-pemfile = "2.0"
rustls-pki-types = "1.14.0"
serde = "1.0.228"
serde_derive = "1.0.98"
serde_json = "1.0.149"
serde_test = "1.0"
serde_yaml = "0.9"
sha2 = "0.10"
shell-quote = "0.7"
shellexpand = "2.1"
shlex = "1.2.0"
smallvec = "1"
strum = "0.26"
strum_macros = "0.26"
sysinfo = "0.20.5"
tempfile = "3.25.0"
terminal_size = "0.1.15"
time = "0.3.47"
tokio = "1.49.0"
tokio-retry2 = "0.6"
tokio-rustls = "0.26"
tokio-stream = "0.1.18"
tokio-util = "0.7.18"
toml = "0.8"
tonic = "0.12"
tonic-build = "0.12"
tower = "0.5.3"
tower-layer = "0.3"
tower-service = "0.3"
uname = "0.1.1"
url = "2.5"
uuid = "1.21.0"
walkdir = "2"
webpki = "0.22"
whoami = "1.6.1"
# NB: If a change to these versions requires cache busting, bump the version of
# `src/rust/dep_inference/Cargo.toml`.
tree-sitter = "0.26.5"
tree-sitter-dockerfile = { git = "https://github.com/pantsbuild/tree-sitter-dockerfile.git", rev = "508588913c93a30e7ef09a4ac3ecdee955b7b950" }
tree-sitter-python = "0.25.0"
tree-sitter-typescript = "0.23.2"
# Default lints adopted by most crates in this workspace.
[workspace.lints.rust]
warnings = { level = "deny", priority = 0 }
# Enable all clippy lints except for many of the pedantic ones.
[workspace.lints.clippy]
all = { level = "deny", priority = 0 }
default_trait_access = { level = "deny", priority = 1 }
expl_impl_clone_on_copy = { level = "deny", priority = 1 }
if_not_else = { level = "deny", priority = 1 }
needless_continue = { level = "deny", priority = 1 }
unseparated_literal_suffix = { level = "deny", priority = 1 }
used_underscore_binding = { level = "deny", priority = 1 }
# It is often more clear to show that nothing is being moved.
match_ref_pats = { level = "allow", priority = 1 }
# Subjective style.
len_without_is_empty = { level = "allow", priority = 1 }
redundant_field_names = { level = "allow", priority = 1 }
too_many_arguments = { level = "allow", priority = 1 }
# Default isn't as big a deal as people seem to think it is.
new_without_default = { level = "allow", priority = 1 }
new_ret_no_self = { level = "allow", priority = 1 }
# Arc<Mutex> can be more clear than needing to grok Orderings:
mutex_atomic = { level = "allow", priority = 1 }