[package]
name = "microsandbox-runtime"
description = "Runtime library for the microsandbox sandbox process and microVM entry points."
version.workspace = true
authors.workspace = true
repository.workspace = true
license.workspace = true
edition.workspace = true

[lib]
name = "microsandbox_runtime"
path = "lib/lib.rs"

[features]
default = ["prebuilt", "net"]
prebuilt = ["microsandbox-filesystem/prebuilt"]
net = ["dep:microsandbox-network", "msb_krun/net"]

[dependencies]
bytes = { workspace = true }
chrono.workspace = true
clap = { workspace = true, features = ["derive"] }
crossbeam-queue = { workspace = true }
libc.workspace = true
microsandbox-agent-client = { workspace = true, features = ["uds"] }
microsandbox-db.workspace = true
microsandbox-filesystem.workspace = true
microsandbox-metrics.workspace = true
microsandbox-network = { workspace = true, optional = true }
microsandbox-protocol.workspace = true
microsandbox-types.workspace = true
microsandbox-utils.workspace = true
msb_krun = { workspace = true, features = ["blk"] }
nix = { workspace = true, features = ["process", "signal"] }
rustls = { workspace = true }
sea-orm.workspace = true
serde.workspace = true
serde_json.workspace = true
tempfile.workspace = true
thiserror.workspace = true
tokio.workspace = true
tracing.workspace = true

[dev-dependencies]
microsandbox-migration.workspace = true
