alloc-traits 0.1.1

Traits to replace or supplement the alloc module in no_std
Documentation
  • Coverage
  • 100%
    19 out of 19 items documented0 out of 2 items with examples
  • Size
  • Source code size: 14.13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.33 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • 197g/static-alloc
    58 10 4
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • HeroicKatora

Traits to replace or supplement the alloc module in no_std.

Defines traits, similar to alloc::GlobalAlloc, that can be implemented to defined different kinds of allocators. Unlike the standard library one they do not presume global uniqueness and static lifetime of the memory resource provider. In return, the allocators are not required to implement the Sync bound and can easily be built without operating system support to be usable.

There are additional independent crates with additional abstractions on-top:

  • static-alloc: A simple allocator drawing from a memory region statically embedded within the compiled binary.
  • without-alloc: A set of data structures (Box, Vec, Rc, ...) that can be allocated from the implementors of the traits defined here.