[package]
name = "riscv_vcpu"
version = "0.5.14"
edition.workspace = true
authors = [
    "KeYang Hu <keyang.hu@qq.com>",
    "Mingxian Su <aarkegz@gmail.com>",
    "Peizhong Qiu <15608652022@163.com>",
    "周睿 <zrufo747@outlook.com>"
]
description = "ArceOS-Hypervisor riscv vcpu module"
repository = "https://github.com/arceos-hypervisor/riscv_vcpu"
categories = ["embedded", "no-std"]
keywords = ["hypervisor", "riscv", "vcpu"]
license = "Apache-2.0"

[package.metadata.docs.rs]
default-target = "riscv64gc-unknown-none-elf"
targets = ["riscv64gc-unknown-none-elf"]

[features]
default = []
sstc = []

[target.'cfg(target_arch = "riscv64")'.dependencies]
log = "0.4"
cfg-if = "1.0"
bitflags = "2.2"
bit_field = "0.10"
ax-crate-interface = { workspace = true }
riscv = { workspace = true, features = ["s-mode"] }
riscv-h = { workspace = true }
riscv-decode = "0.2.3"
rustsbi = { version = "0.4.0", features = ["forward"] }
sbi-rt = { workspace = true, features = ["integer-impls"] }
sbi-spec = { version = "0.0.9", features = ["legacy"] }
tock-registers = "0.10"
memoffset = { version = ">=0.6.5", features = ["unstable_const"] }

ax-errno = { workspace = true }
ax-memory-addr = { workspace = true }
axvcpu = { workspace = true }
axvm-types = { workspace = true }
