ax-hal 0.5.16

ArceOS hardware abstraction layer, provides unified APIs for platform-specific operations
# 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"
name = "ax-hal"
version = "0.5.16"
authors = ["Yuekai Jia <equation618@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ArceOS hardware abstraction layer, provides unified APIs for platform-specific operations"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/rcore-os/tgoskits"

[features]
axvisor-linker = []
default = []
defplat = [
    "dep:ax-plat-x86-pc",
    "dep:ax-plat-loongarch64-qemu-virt",
]
fp-simd = [
    "ax-cpu/fp-simd",
    "ax-plat-x86-pc?/fp-simd",
    "ax-plat-riscv64-sg2002?/fp-simd",
    "ax-plat-riscv64-visionfive2?/fp-simd",
    "ax-plat-loongarch64-qemu-virt?/fp-simd",
    "ax-plat-x86-qemu-q35?/fp-simd",
    "axplat-dyn?/fp-simd",
]
hv = [
    "paging",
    "ax-cpu/arm-el2",
    "ax-cpu/exception-table",
    "ax-percpu/arm-el2",
    "axplat-dyn?/hv",
]
ipi = ["irq"]
irq = [
    "ax-plat-x86-pc?/irq",
    "ax-plat-riscv64-sg2002?/irq",
    "ax-plat-riscv64-visionfive2?/irq",
    "ax-plat-loongarch64-qemu-virt?/irq",
    "ax-plat-x86-qemu-q35?/irq",
    "ax-plat/irq",
    "axplat-dyn?/irq",
    "dep:ax-kspin",
]
loongarch64-qemu-virt = ["dep:ax-plat-loongarch64-qemu-virt"]
myplat = []
paging = [
    "dep:ax-alloc",
    "dep:ax-page-table-multiarch",
    "ax-page-table-multiarch/ax-errno",
    "ax-plat-loongarch64-qemu-virt?/paging",
]
plat-dyn = ["axplat-dyn"]
riscv64-sg2002 = ["dep:ax-plat-riscv64-sg2002"]
riscv64-visionfive2 = ["dep:ax-plat-riscv64-visionfive2"]
rtc = [
    "ax-plat-x86-pc?/rtc",
    "ax-plat-riscv64-sg2002?/rtc",
    "ax-plat-riscv64-visionfive2?/rtc",
    "ax-plat-loongarch64-qemu-virt?/rtc",
    "ax-plat-x86-qemu-q35?/rtc",
    "axplat-dyn?/rtc",
]
smp = [
    "ax-plat-x86-pc?/smp",
    "ax-plat-riscv64-sg2002?/smp",
    "ax-plat-riscv64-visionfive2?/smp",
    "ax-plat-loongarch64-qemu-virt?/smp",
    "ax-plat-x86-qemu-q35?/smp",
    "axplat-dyn?/smp",
    "ax-plat/smp",
]
tls = ["ax-cpu/tls"]
uspace = [
    "paging",
    "ax-cpu/uspace",
    "axplat-dyn?/uspace",
]
x86-pc = ["dep:ax-plat-x86-pc"]
x86-qemu-q35 = [
    "dep:ax-plat-x86-qemu-q35",
    "ax-plat-x86-qemu-q35/reboot-on-system-off",
]
xuantie-c9xx = ["ax-cpu/xuantie-c9xx"]

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

[dependencies.ax-alloc]
version = "0.8.0"
optional = true
default-features = false

[dependencies.ax-config]
version = "0.5.11"

[dependencies.ax-cpu]
version = "0.6.5"

[dependencies.ax-kernel-guard]
version = "0.3.10"

[dependencies.ax-kspin]
version = "0.3.10"
optional = true

[dependencies.ax-memory-addr]
version = "0.6.9"

[dependencies.ax-page-table-multiarch]
version = "0.8.11"
optional = true

[dependencies.ax-percpu]
version = "0.4.12"
features = ["non-zero-vma"]

[dependencies.ax-plat]
version = "0.6.0"

[dependencies.cfg-if]
version = "1.0"

[dependencies.fdt-parser]
version = "0.4"

[dependencies.heapless]
version = "0.9"

[dependencies.log]
version = "0.4"

[dependencies.rdrive]
version = "0.21.0"

[dependencies.spin]
version = "0.12"

[build-dependencies.ax-config]
version = "0.5.11"

[build-dependencies.toml]
version = "1"

[target.'cfg(target_arch = "loongarch64")'.dependencies.ax-plat-loongarch64-qemu-virt]
version = "0.5.11"
optional = true
default-features = false

[target.'cfg(target_arch = "riscv64")'.dependencies.ax-plat-riscv64-sg2002]
version = "0.4.0"
optional = true

[target.'cfg(target_arch = "riscv64")'.dependencies.ax-plat-riscv64-visionfive2]
version = "0.1.5"
optional = true

[target.'cfg(target_arch = "x86_64")'.dependencies.ax-plat-x86-pc]
version = "0.5.11"
optional = true

[target.'cfg(target_arch = "x86_64")'.dependencies.ax-plat-x86-qemu-q35]
version = "0.4.9"
optional = true
default-features = false

[target.'cfg(target_os = "none")'.dependencies.axplat-dyn]
version = "0.7.0"
optional = true
default-features = false