[package]
edition = "2021"
name = "buddy-slab-allocator"
version = "0.1.1"
authors = ["Song Zhiyong <songzhyo@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Memory allocator with Buddy and Slab allocation"
documentation = "https://docs.rs/buddy-slab-allocator"
readme = "README.md"
keywords = [
"buddy",
"slab",
"allocator",
]
categories = [
"memory-management",
"no-std",
"embedded",
]
license = "Apache-2.0"
repository = "https://github.com/arceos-hypervisor/buddy-slab-allocator"
[features]
bench = [
"dep:criterion",
"dep:rand",
]
default = []
log = ["dep:log"]
tracking = []
[lib]
name = "buddy_slab_allocator"
path = "src/lib.rs"
[[test]]
name = "dma32_pages_test"
path = "tests/dma32_pages_test.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[bench]]
name = "buddy_allocator"
path = "benches/buddy_allocator.rs"
harness = false
required-features = ["bench"]
[[bench]]
name = "global_allocator"
path = "benches/global_allocator.rs"
harness = false
required-features = ["bench"]
[[bench]]
name = "slab_allocator"
path = "benches/slab_allocator.rs"
harness = false
required-features = ["bench"]
[[bench]]
name = "stability"
path = "benches/stability.rs"
harness = false
required-features = ["bench"]
[dependencies.cfg-if]
version = "1.0"
[dependencies.criterion]
version = "0.4"
features = ["html_reports"]
optional = true
[dependencies.log]
version = "0.4"
optional = true
[dependencies.rand]
version = "0.8"
features = ["small_rng"]
optional = true