# 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 = "axplat-dyn"
version = "0.5.3"
authors = ["周睿 <zrufo747@outlook.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A dynamic platform module for ArceOS, providing runtime platform detection and configuration"
readme = false
keywords = [
    "arceos",
    "kernel",
]
categories = [
    "os",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/rcore-os/tgoskits"

[features]
default = [
    "smp",
    "irq",
]
fp-simd = ["ax-cpu/fp-simd"]
hv = [
    "somehal/hv",
    "ax-cpu/arm-el2",
]
intel-net = [
    "net",
    "dep:eth-intel",
    "dep:pcie",
]
irq = ["ax-plat/irq"]
net = [
    "dep:ax-driver-net",
    "dep:rd-net",
]
phytium-blk = ["dep:phytium-mci"]
rk3568-clk = ["dep:rk3568_clk"]
rk3588-clk = ["dep:rk3588-clk"]
rockchip-pm = ["dep:rockchip-pm"]
sdmmc = ["dep:sdmmc"]
serial = ["dep:some-serial"]
smp = ["ax-plat/smp"]
uspace = ["somehal/uspace"]
virtio-net-pci = ["net"]

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

[dependencies.anyhow]
version = "1"
default-features = false

[dependencies.ax-alloc]
version = "0.5.2"
features = ["buddy-slab"]
default-features = false

[dependencies.ax-config-macros]
version = "0.4.2"

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

[dependencies.ax-driver-base]
version = "0.3.5"

[dependencies.ax-driver-block]
version = "0.3.5"

[dependencies.ax-driver-net]
version = "0.3.5"
optional = true

[dependencies.ax-driver-virtio]
version = "0.3.5"
features = [
    "block",
    "net",
]

[dependencies.ax-errno]
version = "0.4.2"

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

[dependencies.ax-percpu]
version = "0.4.3"
features = ["custom-base"]

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

[dependencies.axklib]
version = "0.5.1"

[dependencies.dma-api]
version = "0.7.2"

[dependencies.eth-intel]
version = "0.1"
optional = true

[dependencies.fdt-edit]
version = "0.2"

[dependencies.heapless]
version = "0.9"

[dependencies.log]
version = "0.4"

[dependencies.pcie]
version = "0.6"
optional = true

[dependencies.phytium-mci]
version = "0.1"
features = ["pio"]
optional = true
default-features = false

[dependencies.rd-block]
version = "0.1"

[dependencies.rd-net]
version = "0.1"
optional = true

[dependencies.rdif-clk]
version = "0.5"

[dependencies.rdrive]
version = "0.20"

[dependencies.rk3568_clk]
version = "0.1"
optional = true

[dependencies.rk3588-clk]
version = "0.1"
optional = true

[dependencies.rockchip-pm]
version = "0.4"
optional = true

[dependencies.sdmmc]
version = "0.1"
features = ["pio"]
optional = true
default-features = false

[dependencies.some-serial]
version = "0.3.1"
optional = true

[dependencies.somehal]
version = "0.6"

[dependencies.spin]
version = "0.10"
