[package]
edition = "2024"
name = "ax-percpu"
version = "0.4.9"
authors = [
"Yuekai Jia <equation618@gmail.com>",
"hky1999 <976929993@qq.com>",
"Su Mingxian <aarkegz@gmail.com>",
"yufeng <321353225@qq.com>",
]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Define and access per-CPU data structures"
readme = "README.md"
keywords = [
"arceos",
"percpu",
]
categories = [
"development-tools::procedural-macro-helpers",
"no-std",
]
license = "Apache-2.0"
repository = "https://github.com/rcore-os/tgoskits"
[features]
arm-el2 = ["ax-percpu-macros/arm-el2"]
custom-base = ["ax-percpu-macros/custom-base"]
default = []
non-zero-vma = ["ax-percpu-macros/non-zero-vma"]
preempt = [
"ax-percpu-macros/preempt",
"dep:ax-kernel-guard",
]
sp-naive = ["ax-percpu-macros/sp-naive"]
[lib]
name = "ax_percpu"
path = "src/lib.rs"
[[test]]
name = "test_percpu"
path = "tests/test_percpu.rs"
[dependencies.ax-kernel-guard]
version = "0.3.8"
optional = true
[dependencies.ax-percpu-macros]
version = "0.4.9"
[dependencies.cfg-if]
version = "1.0"
[target.'cfg(not(target_os = "none"))'.dependencies.spin]
version = "0.10"
[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
version = "0.52"