# 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.95"
name = "hv2-runtime"
version = "1.1.0"
authors = ["HyperMachine Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HyperMachine stateful runtime environment for agentic workflows"
homepage = "https://github.com/nervosys/HyperMachine"
readme = false
keywords = [
    "hypervisor",
    "virtualization",
    "kvm",
    "ai-agent",
    "vm",
]
categories = [
    "virtualization",
    "os",
    "hardware-support",
]
license = "AGPL-3.0-only OR LicenseRef-Commercial"
repository = "https://github.com/nervosys/HyperMachine"

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

[[example]]
name = "gpu_fabric_reservation"
path = "examples/gpu_fabric_reservation.rs"

[[test]]
name = "gpu_fabric_integration"
path = "tests/gpu_fabric_integration.rs"

[[test]]
name = "unikernel_gpu_ai"
path = "tests/unikernel_gpu_ai.rs"

[[test]]
name = "unikernel_lifecycle"
path = "tests/unikernel_lifecycle.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4"

[dependencies.hv2-agent]
version = "1.1.0"

[dependencies.hv2-core]
version = "1.1.0"

[dependencies.parking_lot]
version = "0.12"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.42"
features = ["full"]

[dependencies.tracing]
version = "0.1"

[dependencies.uuid]
version = "1.10"
features = [
    "v4",
    "serde",
]

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "json",
]

[lints.clippy]
collapsible_if = "warn"
doc_markdown = "allow"
inefficient_to_string = "warn"
let_and_return = "warn"
manual_clamp = "warn"
manual_range_contains = "warn"
map_entry = "warn"
needless_range_loop = "warn"
semicolon_if_nothing_returned = "warn"
single_match = "warn"
too_many_arguments = "warn"
type_complexity = "warn"
useless_format = "warn"

[lints.rust]
unused_import_braces = "warn"
