https://github.com/heroickatora/static-alloc
Data structures like Rust `alloc` which reuse user allocated memory
https://github.com/heroickatora/static-alloc
Last synced: 2 months ago
JSON representation
Data structures like Rust `alloc` which reuse user allocated memory
- Host: GitHub
- URL: https://github.com/heroickatora/static-alloc
- Owner: HeroicKatora
- License: apache-2.0
- Created: 2019-07-10T12:08:59.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-09-20T05:46:08.000Z (9 months ago)
- Last Synced: 2024-10-14T18:19:06.226Z (8 months ago)
- Language: Rust
- Homepage:
- Size: 572 KB
- Stars: 51
- Watchers: 6
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE.APACHE
Awesome Lists containing this project
README
# About this repository
This repository contains a few interconnected Rust libraries that enable
generic, dynamic data structures in environments that do not have a global
allocator or where its usage should be avoided.* `alloc-traits`: This base crate contains a trait which defines the contract
of a local allocator, substituting or supplementing the global allocator.
* `static-alloc`: Defines a limited allocator that requires no runtime
operating system interaction by allocating from a memory region embedded in
the program binary, and allocated by the program loader.
* `unsize`: A utility trait that can replace the unstable internal trait
combination `Unsize`/`CoerceUnsize` so that custom smart pointers such as
boxes can be unsized.
* `without-alloc`: Defines data structures similar to those in `alloc` which do
not require a global allocator. They instead work on a once-allocated memory
region with interoperability with allocators that impl `alloc-traits` traits.