-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
161 lines (132 loc) · 4.61 KB
/
Cargo.toml
File metadata and controls
161 lines (132 loc) · 4.61 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
[package]
name = "void-box"
version = "0.1.2"
edition = "2021"
rust-version = "1.88"
authors = ["Diego Parra <diegolparra@gmail.com>"]
description = "Composable workflow sandbox with KVM micro-VMs and native observability"
repository = "https://github.com/the-void-ia/void-box"
license = "Apache-2.0"
readme = "README.md"
keywords = ["sandbox", "workflow", "observability", "virtualization", "kvm"]
categories = ["development-tools", "virtualization"]
exclude = [
"target/*",
"artifacts/*",
"docs/vhs/*",
".cursor/*",
"scripts/build_*",
"tmp/*",
]
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
async-trait = "0.1"
# Observability -- OpenTelemetry 0.31
opentelemetry = { version = "0.31", optional = true }
opentelemetry_sdk = { version = "0.31", features = ["rt-tokio", "trace", "metrics"], optional = true }
opentelemetry-otlp = { version = "0.31", default-features = false, features = ["grpc-tonic", "trace", "metrics", "internal-logs"], optional = true }
# OTel Semantic Conventions (typed constants for attribute names)
opentelemetry-semantic-conventions = { version = "0.31", features = ["semconv_experimental"] }
# HTTP client (for fetching remote skills from skills.sh)
reqwest = { version = "0.13", default-features = false, features = ["rustls"] }
# Security (cross-platform)
getrandom = "0.3"
# IDs and time formatting
uuid = { version = "1", features = ["v7"] }
humantime = "2"
# CLI
clap = { version = "4", features = ["derive", "cargo", "env"] }
tracing-appender = "0.2"
# Utilities
thiserror = "2"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
void-box-protocol = { path = "void-box-protocol" }
voidbox-oci = { path = "voidbox-oci" }
libc = "0.2"
byteorder = "1"
sha2 = "0.10"
tempfile = "3"
# --- Linux-only dependencies ---
[target.'cfg(target_os = "linux")'.dependencies]
# rust-vmm core
kvm-ioctls = "0.19"
kvm-bindings = { version = "0.10", features = ["fam-wrappers"] }
vm-memory = { version = "=0.17.1", features = ["backend-mmap"] }
vmm-sys-util = "0.12"
linux-loader = { version = "0.13", features = ["bzimage", "elf"] }
# Virtio devices
virtio-bindings = "0.2"
vm-superio = "0.8"
event-manager = "0.4"
# SLIRP networking (smoltcp-based user-mode networking)
smoltcp = { version = "0.11", default-features = false, features = ["std", "medium-ethernet", "proto-ipv4", "socket-tcp", "socket-udp", "socket-dns"] }
# Binary serialization for VM snapshot state
bincode = "1"
# Device Tree Blob generation for aarch64 boot
vm-fdt = "0.3"
# Security (Linux-specific)
seccompiler = "0.4"
ipnet = "2"
nix = { version = "0.29", features = ["fs", "ioctl", "net", "socket", "event"] }
# --- macOS-only dependencies ---
[target.'cfg(target_os = "macos")'.dependencies]
# Objective-C 2.0 bindings (auto-generated from Apple frameworks)
objc2 = "0.6"
objc2-foundation = { version = "0.3", features = [
"NSArray", "NSString", "NSURL", "NSError", "NSRunLoop", "NSDate",
] }
objc2-virtualization = { version = "0.3", features = ["dispatch2"] }
block2 = "0.6"
dispatch2 = "0.3"
[dev-dependencies]
regex-lite = "0.1.9"
tempfile = "3"
tokio-test = "0.4"
voidbox-oci = { path = "voidbox-oci" }
# OTel testing support (in-memory exporters for assertions)
opentelemetry = { version = "0.31" }
opentelemetry_sdk = { version = "0.31", features = ["testing"] }
httpmock = "0.8.2"
[features]
default = []
# Enable full OpenTelemetry integration (OTLP export, trace context propagation)
opentelemetry = ["dep:opentelemetry", "dep:opentelemetry_sdk", "dep:opentelemetry-otlp"]
[[bin]]
name = "voidbox"
path = "src/bin/voidbox/main.rs"
[[example]]
name = "playground_pipeline"
path = "playground/playground_pipeline.rs"
[[test]]
name = "e2e_skill_pipeline"
path = "tests/e2e/skill_pipeline.rs"
[[test]]
name = "e2e_telemetry"
path = "tests/e2e/telemetry.rs"
[[test]]
name = "e2e_mount"
path = "tests/e2e/mount.rs"
[[test]]
name = "orchestration_contract"
path = "tests/orchestration_contract.rs"
[[test]]
name = "conformance"
path = "tests/conformance.rs"
[[test]]
name = "oci_integration"
path = "tests/oci_integration.rs"
[workspace]
members = ["guest-agent", "void-box-protocol", "claudio", "voidbox-oci"]
# guest-agent builds as a tiny static init binary for the guest initramfs.
# Use `cargo build -p guest-agent --release` with these workspace-level settings.
# Per-package profile only supports opt-level; for full size optimization
# (lto, strip), build with: CARGO_PROFILE_RELEASE_LTO=true cargo build ...
[profile.release.package.guest-agent]
opt-level = "z"
[profile.release.package.claudio]
opt-level = "z"