flex-alloc

Crates.ioflex-alloc
lib.rsflex-alloc
version0.0.5
sourcesrc
created_at2024-09-06 23:09:23.537967
updated_at2024-11-08 04:20:16.074111
descriptionData structures with extra flexible storage
homepage
repositoryhttps://github.com/andrewwhitehead/flex-alloc/
max_upload_size
id1366736
size246,246
Andrew Whitehead (andrewwhitehead)

documentation

README

flex-alloc

flex-alloc provides highly flexible container types (currently Box, Cow, and Vec) which mimic the API provided in std, with allocation flexibility going beyond what is supported by unstable features such as allocator-api.

Both no-std and no-alloc environments are supported.

The flex-alloc-secure crate adds data types for working with security-sensitive data such as cryptographic keys.

See the API documentation:

flex-alloc highlights

  • Optional alloc support, such that application may easily alternate between fixed buffers and heap allocation.
  • Custom allocator implementations, including the ability to spill from a small stack allocation to a heap allocation.
  • Additional fallible update methods, allowing for more ergonomic fixed size collections and handling of allocation errors.
  • const initializers.
  • Support for inline collections.
  • Custom index types and growth behavior to manage memory usage.

flex-alloc-secure highlights

  • Collection types for working with secured allocations, using multiple levels of protections: memory locking (mlock/VirtualLock), memory protection (mprotect/VirtualProtect), and encryption at rest.
  • Secure stack variables for working with sensitive data.

License

Licensed under either of

at your option.

Commit count: 94

cargo fmt