Rust alternative std lib w/o alloc, takes allocator as argument?

Is there any Rust crate / project that provides an alternative standard library where:

  1. functions do not use any 'global' allocator

  2. to each function that may need to allocate memory, an "allocator object" is passed, and this object is invoked when memory is needed

On nightly the standard collections can take an allocator.

rust-lang/wg-allocators: Home of the Allocators working group: Paving a path for a standard set of allocator traits to be used in collections! (github.com)

1 Like