ax-hal 0.5.2

ArceOS hardware abstraction layer, provides unified APIs for platform-specific operations
Documentation
# 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.2"
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]
default = []
defplat = [
    "dep:ax-plat-x86-pc",
    "dep:ax-plat-aarch64-qemu-virt",
    "dep:ax-plat-riscv64-qemu-virt",
    "dep:ax-plat-loongarch64-qemu-virt",
]
fp-simd = [
    "ax-cpu/fp-simd",
    "ax-plat-x86-pc?/fp-simd",
    "ax-plat-aarch64-qemu-virt?/fp-simd",
    "ax-plat-riscv64-qemu-virt?/fp-simd",
    "ax-plat-loongarch64-qemu-virt?/fp-simd",
    "axplat-dyn?/fp-simd",
]
hv = [
    "paging",
    "ax-cpu/arm-el2",
    "ax-percpu/arm-el2",
    "axplat-dyn?/hv",
]
ipi = ["irq"]
irq = [
    "ax-plat-x86-pc?/irq",
    "ax-plat-aarch64-qemu-virt?/irq",
    "ax-plat-riscv64-qemu-virt?/irq",
    "ax-plat-loongarch64-qemu-virt?/irq",
    "ax-plat/irq",
    "axplat-dyn?/irq",
]
myplat = []
paging = [
    "dep:ax-alloc",
    "dep:ax-page-table-multiarch",
]
plat-dyn = ["axplat-dyn"]
rtc = [
    "ax-plat-x86-pc?/rtc",
    "ax-plat-aarch64-qemu-virt?/rtc",
    "ax-plat-riscv64-qemu-virt?/rtc",
    "ax-plat-loongarch64-qemu-virt?/rtc",
]
smp = [
    "ax-plat-x86-pc?/smp",
    "ax-plat-aarch64-qemu-virt?/smp",
    "ax-plat-riscv64-qemu-virt?/smp",
    "ax-plat-loongarch64-qemu-virt?/smp",
    "axplat-dyn?/smp",
    "ax-plat/smp",
]
tls = ["ax-cpu/tls"]
uspace = [
    "paging",
    "ax-cpu/uspace",
    "axplat-dyn?/uspace",
]

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

[dependencies.ax-alloc]
version = "0.5.2"
optional = true

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

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

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

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

[dependencies.ax-page-table-multiarch]
version = "0.8.1"
features = ["ax-errno"]
optional = true

[dependencies.ax-percpu]
version = "0.4.3"

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

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

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

[dependencies.heapless]
version = "0.9"

[dependencies.log]
version = "0.4"

[dependencies.spin]
version = "0.10"

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

[target.'cfg(target_arch = "aarch64")'.dependencies.ax-plat-aarch64-qemu-virt]
version = "0.5.1"
optional = true

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

[target.'cfg(target_arch = "riscv64")'.dependencies.ax-plat-riscv64-qemu-virt]
version = "0.5.0"
optional = true

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

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