# 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-driver"
version = "0.5.9"
authors = [
    "Yuekai Jia <equation618@gmail.com>",
    "ChengXiang Qi <kuangjux@outlook.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ArceOS device drivers"
readme = false
license = "Apache-2.0"
repository = "https://github.com/rcore-os/tgoskits"

[features]
ahci = [
    "block",
    "ax-driver-block/ahci",
    "dep:ax-hal",
    "dep:ax-config",
]
bcm2835-sdhci = [
    "block",
    "ax-driver-block/bcm2835-sdhci",
]
block = ["dep:ax-driver-block"]
bus-mmio = []
bus-pci = [
    "dep:ax-driver-pci",
    "dep:ax-hal",
    "dep:ax-config",
]
default = ["bus-pci"]
display = ["dep:ax-driver-display"]
dyn = [
    "dep:ax-errno",
    "dep:axplat-dyn",
]
fxmac = [
    "net",
    "ax-driver-net/fxmac",
    "dep:ax-alloc",
    "dep:ax-hal",
    "dep:ax-dma",
]
input = ["dep:ax-driver-input"]
irq = []
ixgbe = [
    "net",
    "ax-driver-net/ixgbe",
    "dep:ax-alloc",
    "dep:ax-hal",
    "dep:ax-dma",
]
net = [
    "dep:ax-driver-net",
    "axplat-dyn?/net",
]
ramdisk = [
    "block",
    "ax-driver-block/ramdisk",
]
sdmmc = [
    "block",
    "ax-driver-block/sdmmc",
    "dep:ax-hal",
    "dep:ax-config",
]
virtio = [
    "dep:ax-driver-virtio",
    "dep:ax-alloc",
    "dep:ax-hal",
    "dep:ax-config",
]
virtio-blk = [
    "block",
    "virtio",
    "ax-driver-virtio/block",
]
virtio-gpu = [
    "display",
    "virtio",
    "ax-driver-virtio/gpu",
]
virtio-input = [
    "input",
    "virtio",
    "ax-driver-virtio/input",
]
virtio-net = [
    "net",
    "virtio",
    "ax-driver-virtio/net",
]
virtio-socket = [
    "vsock",
    "virtio",
    "ax-driver-virtio/socket",
]
vsock = ["ax-driver-vsock"]

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

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

[dependencies.ax-config]
version = "0.5"
optional = true

[dependencies.ax-crate-interface]
version = "0.5"

[dependencies.ax-dma]
version = "0.5"
optional = true

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

[dependencies.ax-driver-block]
version = "0.3"
optional = true

[dependencies.ax-driver-display]
version = "0.3"
optional = true

[dependencies.ax-driver-input]
version = "0.3"
optional = true

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

[dependencies.ax-driver-pci]
version = "0.3"
optional = true

[dependencies.ax-driver-virtio]
version = "0.3"
optional = true

[dependencies.ax-driver-vsock]
version = "0.3"
optional = true

[dependencies.ax-errno]
version = "0.4"
optional = true

[dependencies.ax-hal]
version = "0.5"
optional = true

[dependencies.axplat-dyn]
version = "0.5"
optional = true
default-features = false

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

[dependencies.log]
version = "0.4"

[dependencies.smallvec]
version = "1.15"
features = [
    "const_generics",
    "union",
]
