# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added


### Changed


### Fixed


### Removed


## [v0.9.0] - 2025-10-13

### Added

- Added chip-selection features (#4023)
- New default feature (`compat`) enables implementations for `malloc`, `free`, `calloc`, `realloc` and others (#3890, #4043)
- `ESP_ALLOC_CONFIG_HEAP_ALGORITHM` to select the global heap algorithm (LLFF, TLSF) (#4130, #4316)
- Added option to use TLSF as the heap allocator, implemented by the `rlsf` crate (#4130, #4316)

### Changed

- Make stats structs fields public (#3828)
- Fixed documentation to use `ram(reclaimed)` instead of a no longer valid linker_section syntax. (#4245)

### Fixed

- Fix problem of not de-allocating memory in some situations (#3949)

## [v0.8.0] - 2025-06-03

### Added

- `allocator_api2` to support allocator APIs on stable Rust. (#3318, #3487)
- `AnyMemory`, `InternalMemory`, `ExternalMemory` allocators. (#3318)
- Removed the `Unused` section for `stats()` to make the output cleaner (#3486)

### Changed

- Bump Rust edition to 2024, bump MSRV to 1.86. (#3391, #3560)
- Update `defmt` to 1.0 (#3416)

## [0.7.0] - 2025-02-24

### Added

- `esp_alloc::heap_allocator!` now accepts attributes, e.g., `esp_alloc::heap_allocator!(#[link_section = ".dram2_uninit"] size: 64000)` (#3133)

### Changed

- `esp_alloc::heap_allocator!` syntax has been changed to `esp_alloc::heap_allocator!(size: 64000)` (#3135)

## 0.6.0 - 2025-01-15

### Added

- `esp_alloc::HEAP.stats()` can now be used to get heap usage informations (#2137)

### Changed

- Bump MSRV to 1.84 (#2951)

## 0.5.0 - 2024-10-10

### Changed

- a global allocator is created in esp-alloc, now you need to add individual memory regions (up to 3) to the allocator (#2099)

## 0.4.0 - 2024-06-04

## 0.3.0 - 2023-04-25

## 0.2.1 - 2023-04-21

## 0.2.0 - 2023-02-22

## 0.1.0 - 2022-07-25

[0.7.0]: https://github.com/esp-rs/esp-hal/releases/tag/esp-alloc-v0.7.0
[v0.8.0]: https://github.com/esp-rs/esp-hal/compare/esp-alloc-v0.7.0...esp-alloc-v0.8.0
[v0.9.0]: https://github.com/esp-rs/esp-hal/compare/esp-alloc-v0.8.0...esp-alloc-v0.9.0
[Unreleased]: https://github.com/esp-rs/esp-hal/compare/esp-alloc-v0.9.0...HEAD
