ax-cpu 0.10.0

Privileged instruction and structure abstractions for various CPU architectures
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-cpu"
version = "0.10.0"
authors = ["RCore Team <yuchen@tsinghua.edu.cn>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Privileged instruction and structure abstractions for various CPU architectures"
readme = "README.md"
keywords = [
    "arceos",
    "cpu",
    "architecture",
    "hal",
]
categories = [
    "embedded",
    "no-std",
    "hardware-support",
    "os",
]
license = "Apache-2.0 AND MPL-2.0"
repository = "https://github.com/rcore-os/tgoskits"

[package.metadata.docs.rs]
features = [
    "context",
    "fp-simd",
    "uspace",
    "pmu",
]
targets = [
    "x86_64-unknown-none",
    "aarch64-unknown-none-softfloat",
    "riscv64gc-unknown-none-elf",
    "loongarch64-unknown-none-softfloat",
]

[features]
context = []
default = []
exception-table = []
fp-simd = ["context"]
pmu = ["dep:thiserror"]
riscv-sstc = []
riscv-thead-mae = []
tls = ["context"]
uspace = [
    "context",
    "exception-table",
    "dep:bytemuck",
]
virtualization = [
    "context",
    "fp-simd",
    "exception-table",
    "dep:thiserror",
    "dep:tock-registers",
]

[lib]
name = "ax_cpu"
path = "src/lib.rs"
test = false
doctest = false
bench = false

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

[dependencies.bitflags]
version = "2.11"

[dependencies.bytemuck]
version = "1.24"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.page-table-generic]
version = "0.9"

[dependencies.thiserror]
version = "2"
optional = true
default-features = false

[dependencies.trait-ffi]
version = "0.3.1"

[target.'cfg(target_arch = "aarch64")'.dependencies.aarch64-cpu]
version = "11.0"

[target.'cfg(target_arch = "aarch64")'.dependencies.tock-registers]
version = "0.10"

[target.'cfg(target_arch = "loongarch64")'.dependencies.loongArch64]
version = "0.2"

[target.'cfg(target_arch = "riscv64")'.dependencies.riscv]
version = "0.16.1"
default-features = false

[target.'cfg(target_arch = "x86_64")'.dependencies.ax-lazyinit]
version = "0.5"

[target.'cfg(target_arch = "x86_64")'.dependencies.tock-registers]
version = "0.10"
optional = true

[target.'cfg(target_arch = "x86_64")'.dependencies.x86]
version = "0.52"

[target.'cfg(target_arch = "x86_64")'.dependencies.x86_64]
version = "0.15"
features = ["instructions"]
default-features = false

[lints.clippy]
new_without_default = "allow"