ax-alloc 0.7.1

ArceOS global memory allocator
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-alloc"
version = "0.7.1"
authors = ["Yuekai Jia <equation618@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ArceOS global memory allocator"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/rcore-os/tgoskits"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "doc_cfg",
]

[features]
buddy = [
    "dep:ax-allocator",
    "ax-allocator/buddy",
]
buddy-slab = [
    "dep:buddy-slab-allocator",
    "dep:ax-percpu",
    "dep:ax-plat",
]
default = [
    "tlsf",
    "ax-allocator/page-alloc-4g",
]
page-alloc-4g = [
    "dep:ax-allocator",
    "tlsf",
    "ax-allocator/page-alloc-4g",
]
page-alloc-64g = [
    "dep:ax-allocator",
    "tlsf",
    "ax-allocator/page-alloc-64g",
]
slab = [
    "dep:ax-allocator",
    "ax-allocator/slab",
]
tlsf = [
    "dep:ax-allocator",
    "ax-allocator/tlsf",
]
tracking = [
    "dep:ax-percpu",
    "dep:axbacktrace",
    "tlsf",
]

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

[dependencies.ax-allocator]
version = "0.5.1"
features = ["bitmap"]
optional = true

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

[dependencies.ax-kspin]
version = "0.3.8"

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

[dependencies.ax-percpu]
version = "0.4.11"
optional = true

[dependencies.ax-plat]
version = "0.5.8"
optional = true

[dependencies.axbacktrace]
version = "0.3.9"
optional = true

[dependencies.buddy-slab-allocator]
version = "0.4"
optional = true

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

[dependencies.log]
version = "0.4"

[dependencies.strum]
version = "0.27.2"
features = ["derive"]
default-features = false