storage_api

Crates.iostorage_api
lib.rsstorage_api
version0.5.1
created_at2025-04-13 10:28:51.304604+00
updated_at2025-05-06 09:07:30.742247+00
descriptionImplementation of the Storage API, a better version of Allocator
homepage
repositoryhttps://github.com/HomelikeBrick42/StorageAPI
max_upload_size
id1631711
size54,815
(HomelikeBrick42)

documentation

README

Storage API

Latest Version Rust Documentation GitHub license

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?

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

Commit count: 47

cargo fmt