Cargo Features
esp-alloc has no features set by default.
[dependencies]
esp-alloc = { version = "0.6.0", features = ["nightly", "defmt", "internal-heap-stats"] }
- nightly
- defmt
-
Implement
defmt::Format
on certain types.Enables defmt
- internal-heap-stats
-
Enable this feature if you want to keep stats about the internal heap usage such as:
- Max memory usage since initialization of the heap
- Total allocated memory since initialization of the heap
- Total freed memory since initialization of the heap
⚠️ Note: Enabling this feature will require extra computation every time alloc/dealloc is called.