[package]
name = "axalloc"
version = "0.2.2-preview.1"
edition.workspace = true
authors = ["Yuekai Jia <equation618@gmail.com>"]
description = "ArceOS global memory allocator"
license.workspace = true
homepage.workspace = true
repository = "https://github.com/arceos-org/arceos/tree/main/modules/axalloc"
documentation = "https://arceos-org.github.io/arceos/axalloc/index.html"
readme = "README.md"
[features]
default = ["tlsf", "axallocator/page-alloc-256m"]
tlsf = ["axallocator/tlsf"]
slab = ["axallocator/slab"]
buddy = ["axallocator/buddy"]
page-alloc-64g = [
"axallocator/page-alloc-64g",
]
page-alloc-4g = ["axallocator/page-alloc-4g"]
level-1 = []
tracking = ["dep:percpu", "dep:axbacktrace"]
[dependencies]
axallocator = { version = "0.1.3-preview.1", default-features = false, features = ["bitmap"] }
axbacktrace = { workspace = true, optional = true }
axerrno.workspace = true
cfg-if.workspace = true
kspin.workspace = true
log.workspace = true
memory_addr.workspace = true
percpu = { workspace = true, optional = true }
strum = { version = "0.27.2", default-features = false, features = ["derive"] }