10 releases (4 breaking)
Uses new Rust 2024
new 0.5.1 | May 6, 2025 |
---|---|
0.5.0 | May 6, 2025 |
0.4.2 | May 6, 2025 |
0.4.1 | Apr 23, 2025 |
0.1.0 | Apr 13, 2025 |
#179 in Memory management
808 downloads per month
55KB
1K
SLoC
Storage API
Note: This crate currently requires using nightly by default, unless you make default-features = false
, this is so Box
can support T: ?Sized
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
?
Storage
s have an associated Handle
type so allocations dont need to be represented by a pointer, which allows Storage
s 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 Storage
s