# 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 = "patina_internal_cpu"
version = "22.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CPU support."
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/OpenDevicePartnership/patina"

[package.metadata.docs.rs]
features = [
    "doc",
    "std",
]

[features]
ci_features = []
default = []
doc = []
std = []

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

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

[dependencies.log]
version = "0.4"
default-features = false

[dependencies.patina]
version = "22.2.0"

[dependencies.patina_paging]
version = "11.0.4"

[dependencies.patina_stacktrace]
version = "22.2.0"

[dependencies.r-efi]
version = "7"
default-features = false

[dependencies.spin]
version = "0.12"
features = ["rwlock"]

[dev-dependencies.mockall]
version = "0.14.0"

[dev-dependencies.serial_test]
version = "3.5"

[target.'cfg(all(target_arch="aarch64"))'.dependencies.arm-gic]
version = "0.8.1"

[target.'cfg(all(target_arch="x86_64"))'.dependencies.patina_mtrr]
version = "1.1.6"

[lints.clippy]
indexing_slicing = "deny"
undocumented_unsafe_blocks = "warn"
