[package]
name = "esp-alloc"
version = "0.10.0"
edition = "2024"
rust-version = "1.88.0"
description = "A heap allocator for Espressif devices"
documentation = "https://docs.espressif.com/projects/rust/esp-alloc/latest/"
keywords = ["allocator", "embedded", "esp32", "espressif", "memory"]
categories = ["embedded", "memory-management", "no-std"]
repository = "https://github.com/esp-rs/esp-hal"
license = "MIT OR Apache-2.0"
[package.metadata.espressif]
doc-config = { features = ["defmt"] }
check-configs = [
{ features = [] },
{ features = ["defmt"] },
{ features = ["alloc-hooks"] },
{ features = ["internal-heap-stats"] },
{ features = ["defmt", "internal-heap-stats"] },
]
clippy-configs = [
{ features = ["defmt", "internal-heap-stats", "alloc-hooks"] },
]
[package.metadata.docs.rs]
default-target = "riscv32imc-unknown-none-elf"
features = ["nightly"]
[lib]
bench = false
test = false
[dependencies]
allocator-api2 = { version = "0.3.0", default-features = false }
defmt = { version = "1.0.1", optional = true }
cfg-if = "1"
enumset = "1"
esp-sync = { version = "0.2.1", path = "../esp-sync" }
document-features = "0.2"
linked_list_allocator = { version = "0.10.5", default-features = false, features = ["const_mut_refs"] }
rlsf = { version = "0.2", features = ["unstable"] }
[build-dependencies]
esp-config = { version = "0.7.0", path = "../esp-config", features = ["build"] }
[features]
default = ["compat", "global-allocator"]
nightly = []
defmt = ["dep:defmt", "enumset/defmt"]
internal-heap-stats = []
compat = []
global-allocator = []
alloc-hooks = []
esp32c2 = ["esp-sync/esp32c2"]
esp32c3 = ["esp-sync/esp32c3"]
esp32c5 = ["esp-sync/esp32c5"]
esp32c6 = ["esp-sync/esp32c6"]
esp32c61 = ["esp-sync/esp32c61"]
esp32h2 = ["esp-sync/esp32h2"]
esp32 = ["esp-sync/esp32"]
esp32s2 = ["esp-sync/esp32s2"]
esp32s3 = ["esp-sync/esp32s3"]