[package]
name = "axvmconfig"
version = "0.8.1"
edition.workspace = true
authors = [
    "Keyang Hu <keyang.hu@qq.com>",
    "Mingxian Su <aarkegz@gmail.com>",
]
keywords = ["axvisor", "config", "toml"]
repository = "https://github.com/arceos-hypervisor/axvmconfig"
description = "A simple VM configuration tool for ArceOS-Hypervisor."
license = "Apache-2.0"

[features]
default = ["std"]
std = ["dep:clap", "dep:env_logger", "dep:schemars"]

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

[[bin]]
name = "axvmconfig"
path = "src/main.rs"

[dependencies]
ax-errno = { workspace = true }
axvm-types = { workspace = true }
log = "0.4.21"
serde = {version = "1.0.204", default-features = false, features = ["derive"]}
serde_repr = "0.1"
toml = {version = "0.9.5", default-features = false, features = ["serde", "parse", "display"]}

[target.'cfg(any(windows, unix))'.dependencies]
clap = { version = "4.5.23", optional = true, features = ["derive"] }
env_logger = { version = "0.11.3", optional = true }
schemars = { version = "1.1.0", optional = true }
