microvm-runtime 0.4.0-alpha.1

Firecracker microVM driver for decentralized Tangle operators — pure-Rust primitive, no service, no auth, no business logic.
Documentation
# 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 = "2024"
rust-version = "1.91"
name = "microvm-runtime"
version = "0.4.0-alpha.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Firecracker microVM driver for decentralized Tangle operators — pure-Rust primitive, no service, no auth, no business logic."
homepage = "https://github.com/tangle-network/microvm-runtime"
documentation = "https://docs.rs/microvm-runtime"
readme = "README.md"
keywords = [
    "firecracker",
    "microvm",
    "vmm",
    "tangle",
    "sandbox",
]
categories = [
    "virtualization",
    "os::linux-apis",
]
license = "Unlicense"
repository = "https://github.com/tangle-network/microvm-runtime"

[features]
default = []
firecracker = [
    "dep:nix",
    "dep:sha2",
    "dep:userfaultfd",
    "dep:base64",
]

[lib]
name = "microvm_runtime"
path = "src/lib.rs"

[[example]]
name = "guest_metadata_daemon"
path = "examples/guest_metadata_daemon.rs"
required-features = ["firecracker"]

[dependencies.base64]
version = "0.22"
features = ["std"]
optional = true
default-features = false

[dependencies.nix]
version = "0.30"
features = [
    "fs",
    "user",
    "socket",
    "uio",
]
optional = true
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"
optional = true
default-features = false

[dependencies.thiserror]
version = "2"

[dev-dependencies.tempfile]
version = "3"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[target.'cfg(target_os = "linux")'.dependencies.userfaultfd]
version = "0.8"
optional = true

[target.'cfg(target_os = "linux")'.dev-dependencies.base64]
version = "0.22"
features = ["std"]
default-features = false

[target.'cfg(target_os = "linux")'.dev-dependencies.vsock]
version = "0.5"