# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.79.0" name = "hyperlight-host" version = "0.1.0" build = "build.rs" autobins = false autoexamples = false autotests = false autobenches = false description = """ A lightweight Virtual Machine Manager that can be hosted in an application to safely run untrusted or code within a VM partition with very low latency and overhead. """ homepage = "https://github.com/hyperlight-dev/hyperlight" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/hyperlight-dev/hyperlight" [lib] name = "hyperlight_host" path = "src/lib.rs" bench = false [[example]] name = "chrome-tracing" path = "examples/chrome-tracing/main.rs" [[example]] name = "func_ctx" path = "examples/func_ctx/main.rs" [[example]] name = "hello-world" path = "examples/hello-world/main.rs" [[example]] name = "logging" path = "examples/logging/main.rs" [[example]] name = "metrics" path = "examples/metrics/main.rs" [[example]] name = "otlp_tracing" path = "examples/otlp_tracing/main.rs" [[example]] name = "tracing" path = "examples/tracing/main.rs" [[test]] name = "integration_test" path = "tests/integration_test.rs" [[test]] name = "sandbox_host_tests" path = "tests/sandbox_host_tests.rs" [[bench]] name = "benchmarks" path = "benches/benchmarks.rs" harness = false [dependencies.anyhow] version = "1.0" [dependencies.bitflags] version = "2.4.0" [dependencies.cfg-if] version = "1.0.0" [dependencies.crossbeam] version = "0.8.0" [dependencies.crossbeam-channel] version = "0.5.8" [dependencies.flatbuffers] version = "24.3.25" [dependencies.goblin] version = "0.9" [dependencies.hyperlight-common] version = "0.1.0" default-features = true [dependencies.lazy_static] version = "1.4.0" [dependencies.libc] version = "0.2.155" [dependencies.log] version = "0.4.20" [dependencies.once_cell] version = "1.18.0" [dependencies.page_size] version = "0.6.0" [dependencies.paste] version = "1.0" [dependencies.prometheus] version = "0.13.3" [dependencies.rand] version = "0.8.5" [dependencies.rust-embed] version = "8.3.0" features = [ "debug-embed", "include-exclude", "interpolate-folder-path", ] [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.serde_yaml] version = "0.9" [dependencies.sha256] version = "1.4.0" [dependencies.strum] version = "0.25" features = ["derive"] [dependencies.tempfile] version = "3.10" optional = true [dependencies.termcolor] version = "1.2.0" [dependencies.thiserror] version = "1.0.30" [dependencies.tracing] version = "0.1.37" features = ["log"] [dependencies.tracing-core] version = "0.1.31" [dependencies.tracing-log] version = "0.2.0" [dependencies.uuid] version = "1.4.1" features = ["v4"] [dependencies.vmm-sys-util] version = "0.12.1" [dev-dependencies.criterion] version = "0.5.1" [dev-dependencies.crossbeam-queue] version = "0.3.8" [dev-dependencies.env_logger] version = "0.11.5" [dev-dependencies.envy] version = "0.4.2" [dev-dependencies.opentelemetry] version = "0.26.0" [dev-dependencies.opentelemetry-otlp] version = "0.26.0" features = ["default"] [dev-dependencies.opentelemetry_sdk] version = "0.26.0" features = ["rt-tokio"] [dev-dependencies.proptest] version = "1.2.0" [dev-dependencies.serde] version = "1.0" [dev-dependencies.serial_test] version = "3.1.1" [dev-dependencies.signal-hook-registry] version = "1.4.1" [dev-dependencies.tempfile] version = "3.8.0" [dev-dependencies.tokio] version = "1.34.0" features = ["full"] [dev-dependencies.tracing] version = "0.1.37" [dev-dependencies.tracing-chrome] version = "0.7.2" [dev-dependencies.tracing-forest] version = "0.1.6" features = [ "uuid", "chrono", "smallvec", "serde", "env-filter", ] [dev-dependencies.tracing-opentelemetry] version = "0.27.0" [dev-dependencies.tracing-serde] version = "0.1.3" [dev-dependencies.tracing-subscriber] version = "0.3.18" features = [ "std", "env-filter", ] [build-dependencies.anyhow] version = "1.0.75" [build-dependencies.built] version = "0.7.0" features = [ "chrono", "git2", ] [build-dependencies.cfg_aliases] version = "0.2.1" [features] default = [ "kvm", "mshv", "seccomp", ] dump_on_crash = ["dep:tempfile"] executable_heap = [] function_call_metrics = [] inprocess = [] kvm = [ "dep:kvm-bindings", "dep:kvm-ioctls", ] mshv = [ "dep:mshv-bindings", "dep:mshv-ioctls", ] print_debug = [] seccomp = ["dep:seccompiler"] [target."cfg(unix)".dependencies.kvm-bindings] version = "0.10.0" features = ["fam-wrappers"] optional = true [target."cfg(unix)".dependencies.kvm-ioctls] version = "0.19.0" optional = true [target."cfg(unix)".dependencies.mshv-bindings] version = "=0.2.1" optional = true [target."cfg(unix)".dependencies.mshv-ioctls] version = "=0.2.1" optional = true [target."cfg(unix)".dependencies.seccompiler] version = "0.4.0" optional = true [target."cfg(unix)".dev-dependencies.proc-maps] version = "0.4.0" [target."cfg(windows)".dependencies.windows] version = "0.58" features = [ "Win32_Foundation", "Win32_System_LibraryLoader", "Win32_System_Threading", "Win32_System_JobObjects", "Win32_Security", "Win32_System_Diagnostics_Debug", "Win32_System_Hypervisor", "Win32_System_LibraryLoader", "Win32_System_Memory", "Win32_System_Threading", "Win32_System_JobObjects", ] [target."cfg(windows)".dependencies.windows-result] version = "0.2" [target."cfg(windows)".dependencies.windows-sys] version = "0.59" features = ["Win32"] [target."cfg(windows)".dev-dependencies.windows] version = "0.58" features = ["Win32_System_Diagnostics_ToolHelp"] [lints.rust] unsafe_op_in_unsafe_fn = "deny"