[package]
name = "static-alloc"
version = "0.3.2"
description = "A bump allocator on static memory for the alloc-traits crate"
edition = "2024"
documentation = "https://docs.rs/static-alloc"
categories = ["embedded", "memory-management", "no-std"]
rust-version = "1.85"
authors.workspace = true
license.workspace = true
readme = "Readme.md"
repository.workspace = true
[package.metadata.docs.rs]
all-features = true
[dependencies]
alloc-traits = { path = "../alloc-traits", version = "0.1.0" }
portable-atomic = { version = "1", optional = true, default-features = false }
allocator-api2 = { version = "0.4", optional = true, default-features = false }
[dev-dependencies]
allocator-api2 = { version = "0.4", features = ["std"] }
[features]
alloc = []
nightly_chain = ["alloc"]
polyfill = ["portable-atomic"]
[[test]]
name = "vec"
path = "tests/vec.rs"
[[test]]
name = "vec_try"
path = "tests/vec_try.rs"
required-features = []
[[test]]
name = "huuuuuge"
path = "tests/alloc/huuuuuge.rs"
required-features = ["DISABLED"]
[[test]]
name = "unsync"
path = "tests/unsync.rs"
[[test]]
name = "chain"
path = "tests/chain.rs"
required-features = ["nightly_chain"]
[[test]]
name = "allocator-api2"
path = "tests/allocator-api2.rs"
required-features = ["allocator-api2"]