-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCargo.toml
More file actions
118 lines (106 loc) · 3.88 KB
/
Cargo.toml
File metadata and controls
118 lines (106 loc) · 3.88 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
[package]
name = "agentkernel"
version = "0.18.1"
edition = "2024"
description = "Run AI coding agents in secure, isolated microVMs"
authors = ["Paul Thrasher <thrashr888@gmail.com>"]
license = "MIT"
repository = "https://github.com/thrashr888/agentkernel"
keywords = ["ai", "agents", "sandbox", "firecracker", "microvm"]
categories = ["command-line-utilities", "development-tools"]
include = [
"/src/**/*",
"/guest-agent/**/*",
"/claude-plugin/**/*",
"/plugins/**/*",
"/images/build/build-kernel.sh",
"/images/kernel/microvm.config",
"/templates/*.toml",
"/Cargo.toml",
"/Cargo.lock",
"/LICENSE",
"/README.md",
]
[features]
default = ["kubernetes", "nomad", "enterprise"]
hyperlight = ["dep:hyperlight-wasm"]
kubernetes = ["dep:kube", "dep:k8s-openapi", "dep:schemars", "dep:serde_yaml", "dep:futures"]
nomad = ["dep:reqwest"]
enterprise = ["dep:cedar-policy", "dep:ed25519-dalek", "dep:jsonwebtoken", "dep:reqwest"]
[dependencies]
anyhow = "1.0"
async-trait = "0.1"
base64 = "0.22"
bytes = "1.0"
clap = { version = "4.0", features = ["derive"] }
clap_complete = "4.0"
hyper = { version = "1.5", features = ["client", "http1", "server"] }
hyper-util = { version = "0.1", features = ["client-legacy", "tokio"] }
http-body-util = "0.1"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
tokio = { version = "1.0", features = ["full", "process", "net"] }
toml = "0.8"
uuid = { version = "1.0", features = ["v4", "v7"] }
chrono = { version = "0.4", features = ["serde"] }
redis = "0.27"
rusqlite = { version = "0.33", features = ["bundled"] }
tokio-postgres = { version = "0.7", features = ["with-serde_json-1"] }
mysql_async = { version = "0.36", default-features = false, features = ["default-rustls"] }
sha2 = "0.10"
prometheus = { version = "0.13", default-features = false }
wat = "1.225" # WAT to WASM compiler for WebAssembly text format support
tempfile = "3.0" # Temporary directories for rootfs conversion
dirs = "6.0.0"
sysinfo = "0.34"
urlencoding = "2"
tokio-stream = "0.1"
# SSH support (CA key generation and client key signing)
ssh-key = { version = "0.6", features = ["ed25519", "rand_core"] }
rand = "0.8"
ring = "0.17"
hex = "0.4"
# OpenTelemetry trace export
opentelemetry = "0.28"
opentelemetry_sdk = { version = "0.28", features = ["rt-tokio"] }
opentelemetry-otlp = { version = "0.28", features = ["http-proto", "reqwest-client"] }
# TLS support for HTTP API
rustls = { version = "0.23", features = ["ring"] }
rustls-pemfile = "2"
tokio-rustls = "0.26"
rcgen = "0.13"
# Kubernetes backend (optional, behind "kubernetes" feature flag)
kube = { version = "0.98", features = ["client", "runtime", "ws", "derive"], optional = true }
k8s-openapi = { version = "0.24", features = ["latest"], optional = true }
schemars = { version = "0.8", optional = true }
thiserror = "2"
futures = { version = "0.3", optional = true }
serde_yaml = { version = "0.9", optional = true }
# Nomad backend (optional, behind "nomad" feature flag)
# Enterprise policy engine (optional, behind "enterprise" feature)
cedar-policy = { version = "4", optional = true }
ed25519-dalek = { version = "2", features = ["rand_core"], optional = true }
jsonwebtoken = { version = "10", optional = true }
reqwest = { version = "0.12", features = ["json", "rustls-tls", "stream"], optional = true }
webpki-roots = "1.0.6"
# Unix socket support for Firecracker API
[target.'cfg(unix)'.dependencies]
hyperlocal = "0.9"
tokio-vsock = "0.6"
libc = "0.2"
# Hyperlight for sub-millisecond Wasm sandboxes (Linux only, requires KVM)
[target.'cfg(target_os = "linux")'.dependencies]
hyperlight-wasm = { version = "0.12", optional = true }
[dev-dependencies]
tempfile = "3.0"
tokio = { version = "1.0", features = ["rt-multi-thread", "macros"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = "0.4"
[lints.clippy]
uninlined_format_args = "allow"
[profile.release]
lto = true
codegen-units = 1
opt-level = 3
strip = true