-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathCargo.toml
More file actions
130 lines (112 loc) · 3.47 KB
/
Cargo.toml
File metadata and controls
130 lines (112 loc) · 3.47 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
[package]
name = "hyperlight-wasm"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
readme.workspace = true
description = """
Library that enables wasm modules and components to be run inside lightweight Virtual Machine backed Sandbox. It is built on top of Hyperlight.
"""
[lib]
name = "hyperlight_wasm"
bench = false # see https://bheisler.github.io/criterion.rs/book/faq.html#cargo-bench-gives-unrecognized-option-errors-for-valid-command-line-options
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[example]]
name = "helloworld"
path = "examples/helloworld/main.rs"
test = true
[[example]]
name = "guest-debugging"
path = "examples/guest-debugging/main.rs"
test = true
[[example]]
name = "hostfuncs"
path = "examples/hostfuncs/main.rs"
test = true
[[example]]
name = "rust_wasm_examples"
path = "examples/rust_wasm_examples/main.rs"
test = true
[[example]]
name = "metrics"
path = "examples/metrics/main.rs"
test = true
[[example]]
name = "tracing-otlp"
path = "examples/tracing-otlp/main.rs"
test = true
[[example]]
name = "interruption"
path = "examples/interruption/main.rs"
test = true
[[example]]
name = "component_greeter_example"
path = "examples/component_greeter_example/main.rs"
test = true
[dependencies]
hyperlight-host.workspace = true
hyperlight-common.workspace = true
libc = "0.2.183"
once_cell = "1.21.4"
tracing = "0.1.44"
log = "0.4"
cfg-if = "1"
metrics = "0.24.3"
env_logger = "0.11.10"
hyperlight-wasm-runtime.workspace = true
[target.'cfg(windows)'.dependencies]
windows = { version = "0.62", features = ["Win32_System_Threading"] }
page_size = "0.6.0"
[dev-dependencies]
hyperlight-component-macro.workspace = true
examples_common = { path = "../examples_common" }
criterion = { version = "0.8.2", features = ["html_reports"] }
crossbeam-queue = "0.3"
blake3 = "1.8"
toml = "1.1.0"
metrics-util = "0.20.1"
metrics-exporter-prometheus = "0.18"
opentelemetry = "0.31.0"
opentelemetry-otlp = { version = "0.31.1", default-features = false, features = ["http-proto", "reqwest-blocking-client", "grpc-tonic"] }
opentelemetry-semantic-conventions = "0.31"
opentelemetry_sdk = { version = "0.31.0", features = ["rt-tokio"] }
tokio = { version = "1.50.0", features = ["full"] }
tracing-forest = { version = "0.3.1", features = ["uuid", "chrono", "smallvec", "serde", "env-filter"] }
tracing = "0.1.44"
tracing-subscriber = {version = "0.3.23", features = ["std", "env-filter"]}
tracing-opentelemetry = "0.32.1"
uuid = { version = "1.23.0", features = ["v4"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[build-dependencies]
cfg_aliases = "0.2.1"
chrono = "0.4"
blake3 = "1.8"
built = { version = "0.8.0", features = ["chrono", "git2"] }
anyhow = { version = "1.0" }
goblin = "0.10.5"
tar = "0.4.45"
cargo-hyperlight = "0.1.8"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[target.'cfg(windows)'.build-dependencies]
junction = "1"
[features]
default = ["function_call_metrics", "kvm", "mshv3"]
function_call_metrics = ["hyperlight-host/function_call_metrics"]
print_debug = ["hyperlight-host/print_debug"]
crashdump = ["hyperlight-host/crashdump"]
gdb = ["hyperlight-host/gdb"]
kvm = ["hyperlight-host/kvm"]
mshv3 = ["hyperlight-host/mshv3"]
pulley = []
trace_guest = ["hyperlight-host/trace_guest"]
[[bench]]
name = "benchmarks"
harness = false
[[bench]]
name = "benchmarks_components"
harness = false