# 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 = "axaddrspace"
version = "0.5.7"
authors = [
    "KeYang Hu <keyang.hu@qq.com>",
    "Mingxian Su <aarkegz@gmail.com>",
    "DeBin Luo <luodeb@outlook.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ArceOS-Hypervisor guest address space management module"
readme = "README.md"
keywords = [
    "hypervisor",
    "address-space",
]
categories = [
    "embedded",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/arceos-hypervisor/axaddrspace"

[features]
arm-el2 = ["ax-page-table-entry/arm-el2"]
default = ["arm-el2"]

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

[[test]]
name = "address_space"
path = "tests/address_space.rs"

[[test]]
name = "frame"
path = "tests/frame.rs"

[[test]]
name = "memory_accessor"
path = "tests/memory_accessor.rs"

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

[dependencies.ax-lazyinit]
version = "0.4"

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

[dependencies.ax-memory-set]
version = "0.6"

[dependencies.ax-page-table-entry]
version = "0.8"

[dependencies.ax-page-table-multiarch]
version = "0.8"

[dependencies.bit_field]
version = "0.10"

[dependencies.bitflags]
version = "2.9"

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

[dependencies.log]
version = "0.4"

[dependencies.numeric-enum-macro]
version = "0.2"

[dev-dependencies.assert_matches]
version = "1.5.0"

[dev-dependencies.axin]
version = "0.1.0"

[dev-dependencies.lazy_static]
version = "1.5"

[dev-dependencies.spin]
version = "0.10"

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