# 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-task"
version = "0.5.1"
authors = ["Yuekai Jia <equation618@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ArceOS task management module"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/rcore-os/tgoskits"

[features]
default = []
irq = [
    "ax-hal/irq",
    "dep:ax-timer-list",
]
multitask = [
    "dep:ax-config",
    "dep:axpoll",
    "dep:ax-sched",
    "dep:ax-cpumask",
    "dep:ax-crate-interface",
    "dep:futures-util",
    "dep:ax-kernel-guard",
    "dep:ax-kspin",
    "dep:ax-lazyinit",
    "dep:ax-memory-addr",
    "dep:ax-percpu",
    "dep:spin",
]
preempt = [
    "irq",
    "ax-percpu?/preempt",
    "ax-kernel-guard/preempt",
]
sched-cfs = [
    "multitask",
    "preempt",
]
sched-fifo = ["multitask"]
sched-rr = [
    "multitask",
    "preempt",
]
smp = ["ax-kspin/smp"]
task-ext = ["dep:extern-trait"]
test = ["ax-percpu?/sp-naive"]
tls = ["ax-hal/tls"]

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

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

[dependencies.ax-cpumask]
version = "0.3.0"
optional = true

[dependencies.ax-crate-interface]
version = "0.5.0"
optional = true

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

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

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

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

[dependencies.ax-lazyinit]
version = "0.4.2"
optional = true

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

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

[dependencies.ax-sched]
version = "0.5.1"
optional = true

[dependencies.ax-timer-list]
version = "0.3.0"
optional = true

[dependencies.axpoll]
version = "0.3.3"
optional = true

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

[dependencies.extern-trait]
version = "0.4"
optional = true

[dependencies.futures-util]
version = "0.3"
features = [
    "alloc",
    "async-await-macro",
]
optional = true
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.spin]
version = "0.10"
optional = true

[target.'cfg(not(target_os = "none"))'.dev-dependencies.ax-hal]
version = "0.5.1"
features = ["fp-simd"]
