-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCargo.toml
More file actions
280 lines (241 loc) · 8.67 KB
/
Cargo.toml
File metadata and controls
280 lines (241 loc) · 8.67 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
[workspace]
resolver = "3"
members = [
# ============================================
# L0: Common (MIT OR Apache-2.0)
# ============================================
"common/arcbox-constants",
"common/arcbox-error",
"common/arcbox-dns",
"common/arcbox-asset",
"common/arcbox-logging",
"common/arcbox-route",
# ============================================
# L1-3: Virtualization (MIT OR Apache-2.0)
# ============================================
"virt/arcbox-hv",
"virt/arcbox-vz",
"virt/arcbox-hypervisor",
"virt/arcbox-vmm",
"virt/arcbox-virtio",
"virt/arcbox-virtio-core",
"virt/arcbox-virtio-blk",
"virt/arcbox-virtio-console",
"virt/arcbox-virtio-fs",
"virt/arcbox-virtio-net",
"virt/arcbox-virtio-rng",
"virt/arcbox-virtio-vsock",
"virt/arcbox-virtio-balloon",
"virt/arcbox-vm",
"virt/arcbox-fs",
"virt/arcbox-net",
"virt/arcbox-dhcp",
# ============================================
# L4: RPC (MIT OR Apache-2.0)
# ============================================
"rpc/arcbox-protocol",
"rpc/arcbox-grpc",
"rpc/arcbox-transport",
# ============================================
# L5: Runtime (MIT OR Apache-2.0)
# ============================================
"runtime/arcbox-container",
"runtime/arcbox-oci",
# ============================================
# L6-7: Application (MIT OR Apache-2.0)
# ============================================
"app/arcbox-core",
"app/arcbox-api",
"app/arcbox-docker",
"app/arcbox-docker-tools",
"app/arcbox-cli",
"app/arcbox-daemon",
"app/arcbox-helper",
"app/arcbox",
"app/arcbox-migration",
# ============================================
# Guest Components (MIT OR Apache-2.0)
# ============================================
"guest/arcbox-agent", "virt/arcbox-net-inject",
]
[workspace.package]
version = "0.4.1" # x-release-please-version
edition = "2024"
rust-version = "1.85"
license = "MIT OR Apache-2.0"
repository = "https://github.com/arcboxlabs/arcbox"
authors = ["ArcBox Labs <[email protected]>", "AprilNEA <[email protected]> (https://aprilnea.me)"]
[workspace.dependencies]
# Async runtime
tokio = { version = "1", features = ["full", "tracing"] }
# Error handling
thiserror = "2"
anyhow = "1"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json", "tracing-log"] }
tracing-appender = "0.2"
tracing-log = "0.2"
# Error reporting
sentry = { version = "0.46", default-features = false, features = [
"backtrace",
"contexts",
"panic",
"tracing",
"anyhow",
"reqwest",
"rustls",
"tokio",
] }
# CLI
clap = { version = "4", features = ["derive"] }
clap_complete = "4"
# gRPC
tonic = "0.12"
prost = "0.13"
tonic-build = "0.12"
prost-build = "0.13"
# HTTP server (Docker REST API)
axum = { version = "0.8", features = ["macros"] }
tower = "0.5"
tower-http = { version = "0.6", features = ["trace", "cors"] }
hyper = { version = "1", features = ["full"] }
# RPC (privileged helper)
tarpc = { version = "0.37", features = ["serde-transport", "unix", "serde-transport-bincode"] }
# Async utilities
futures = "0.3"
async-trait = "0.1"
async-stream = "0.3"
tokio-stream = "0.1"
pin-project-lite = "0.2"
# Terminal
crossterm = "0.27"
# Bytes and buffer
bytes = "1"
# Cryptography
sha2 = "0.10"
# Concurrent data structures
dashmap = "6"
# Configuration
figment = { version = "0.10", features = ["toml", "env"] }
toml = "0.8"
dirs = "6"
# UUID
uuid = { version = "1", features = ["v4", "serde"] }
# Time
chrono = { version = "0.4", features = ["serde"] }
# Hostname
hostname = "0.4"
# Nix (Unix APIs)
nix = { version = "0.29", features = [
"fs",
"net",
"process",
"socket",
"ioctl",
"mman",
"term",
"signal",
"user",
] }
# libc
libc = "0.2"
# macOS bridge FDB (forwarding database) access via private ioctls
ifbridge = "0.1"
# Process identity (pidpath, bsdinfo)
libproc = "0.14"
arcbox-asset = { version = "0.4.1", path = "common/arcbox-asset", features = ["download"] } # x-release-please-version
arcbox-docker-tools = { version = "0.4.1", path = "app/arcbox-docker-tools" } # x-release-please-version
# External crates
arcbox-boot = { version = "0.5.1", features = ["download"] }
macos-resolver = "0.2.0"
fc-sdk = "0.2.3"
# Internal crates
arcbox-constants = { version = "0.4.1", path = "common/arcbox-constants", features = ["std"] } # x-release-please-version
arcbox-dns = { version = "0.4.1", path = "common/arcbox-dns" } # x-release-please-version
arcbox-error = { version = "0.4.1", path = "common/arcbox-error" } # x-release-please-version
arcbox-vz = { version = "0.4.1", path = "virt/arcbox-vz" } # x-release-please-version
arcbox-hypervisor = { version = "0.4.1", path = "virt/arcbox-hypervisor" } # x-release-please-version
arcbox-vmm = { version = "0.4.1", path = "virt/arcbox-vmm" } # x-release-please-version
arcbox-virtio = { version = "0.4.1", path = "virt/arcbox-virtio" } # x-release-please-version
arcbox-virtio-core = { version = "0.4.1", path = "virt/arcbox-virtio-core" } # x-release-please-version
arcbox-virtio-blk = { version = "0.4.1", path = "virt/arcbox-virtio-blk" } # x-release-please-version
arcbox-virtio-console = { version = "0.4.1", path = "virt/arcbox-virtio-console" } # x-release-please-version
arcbox-virtio-fs = { version = "0.4.1", path = "virt/arcbox-virtio-fs" } # x-release-please-version
arcbox-virtio-net = { version = "0.4.1", path = "virt/arcbox-virtio-net" } # x-release-please-version
arcbox-virtio-rng = { version = "0.4.1", path = "virt/arcbox-virtio-rng" } # x-release-please-version
arcbox-virtio-vsock = { version = "0.4.1", path = "virt/arcbox-virtio-vsock" } # x-release-please-version
arcbox-virtio-balloon = { version = "0.4.1", path = "virt/arcbox-virtio-balloon" } # x-release-please-version
arcbox-vm = { version = "0.4.1", path = "virt/arcbox-vm" } # x-release-please-version
arcbox-fs = { version = "0.4.1", path = "virt/arcbox-fs" } # x-release-please-version
arcbox-net = { version = "0.4.1", path = "virt/arcbox-net" } # x-release-please-version
arcbox-dhcp = { version = "0.4.1", path = "virt/arcbox-dhcp" } # x-release-please-version
arcbox-container = { version = "0.4.1", path = "runtime/arcbox-container" } # x-release-please-version
arcbox-protocol = { version = "0.4.1", path = "rpc/arcbox-protocol" } # x-release-please-version
arcbox-grpc = { version = "0.4.1", path = "rpc/arcbox-grpc" } # x-release-please-version
arcbox-transport = { version = "0.4.1", path = "rpc/arcbox-transport" } # x-release-please-version
arcbox-docker = { version = "0.4.1", path = "app/arcbox-docker" } # x-release-please-version
arcbox-helper = { version = "0.4.1", path = "app/arcbox-helper" } # x-release-please-version
arcbox-core = { version = "0.4.1", path = "app/arcbox-core" } # x-release-please-version
arcbox-api = { version = "0.4.1", path = "app/arcbox-api" } # x-release-please-version
arcbox-logging = { version = "0.4.1", path = "common/arcbox-logging", default-features = false } # x-release-please-version
# Test infrastructure
tempfile = "3"
[workspace.lints.clippy]
# Enable pedantic and nursery at workspace level
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# Pedantic lints that are project-wide noise
module_name_repetitions = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
must_use_candidate = "allow"
doc_markdown = "allow"
missing_const_for_fn = "allow"
# Style preferences
uninlined_format_args = "allow"
redundant_else = "allow"
items_after_statements = "allow"
if_not_else = "allow"
single_match_else = "allow"
option_if_let_else = "allow"
redundant_closure_for_method_calls = "allow"
significant_drop_tightening = "allow"
# Numeric casts — common in low-level/systems code
cast_possible_truncation = "allow"
cast_sign_loss = "allow"
cast_precision_loss = "allow"
cast_lossless = "allow"
# Protobuf generated code
derive_partial_eq_without_eq = "allow"
# Other pedantic lints not useful for this project
similar_names = "allow"
unreadable_literal = "allow"
match_same_arms = "allow"
needless_pass_by_value = "allow"
unused_self = "allow"
unused_async = "allow"
too_many_lines = "allow"
return_self_not_must_use = "allow"
struct_excessive_bools = "allow"
manual_let_else = "allow"
default_trait_access = "allow"
wildcard_imports = "allow"
[workspace.lints.rust]
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.bench]
inherits = "release"
debug = true
[profile.dev]
# Faster incremental builds
incremental = true
[profile.dev.package."*"]
# Optimize dependencies in dev mode for better performance
opt-level = 2