#allocator-api #allocator #storage-api

nightly storage_api

Implementation of the Storage API, a better version of Allocator

6 releases (3 breaking)

Uses new Rust 2024

new 0.4.0 Apr 13, 2025
0.3.2 Apr 13, 2025
0.2.0 Apr 13, 2025
0.1.0 Apr 13, 2025

#290 in Memory management

Download history

62 downloads per month

MIT license

49KB
928 lines

Storage API

Latest Version Rust Documentation GitHub license

This is an implementation of the Storage API, a better version of the Allocator API, and data structures made for them including

  • Box
  • Vec
  • String

How is it better than Allocator?

Storages have an associated Handle type so allocations dont need to be represented by a pointer, which allows Storages to allocate from a buffer they store inline

Instead of having Vec and ArrayVec as 2 seperate data structures they can be merged together, only using different Storages

No runtime deps