U8pool: Stack for u8 slices in a client-provided buffer

โš“ Rust    ๐Ÿ“… 2025-10-22    ๐Ÿ‘ค surdeus    ๐Ÿ‘๏ธ 3      

surdeus

I've just published a new crate u8pool:

  • Uses preallocated memory to store byte slices
  • Optionally with a companion Sized object
  • The interface is stack-based, with forward and reverse iterators
  • The code is no_std, without dependencies

Links

I use u8pool in a json processing library, to store the path from the top to the current nested json element, together with the parser state on each level. I suppose all recursive parsers need something like it, therefore I'm making an extra effort to publish the code and announce the crate here.

Please try, review, tell about your use cases! If you liked u8pool, please star the github repo: GitHub - olpa/streaming_json: Process json while it's being generated

1 post - 1 participant

Read full topic

๐Ÿท๏ธ Rust_feed