Crate of the Week


easy_reader: “Move forward, backward or randomly through the lines of huge files. Easily and fastly.”


slotmap: “A Rust library providing two containers with persistent unique keys to access stored values”. Good for game entities or graph nodes.


froggy: “Froggy is a prototype for Component Graph System”. Also good for game entities.


generational-arena: “A safe arena allocator that allows deletion without suffering from the ABA problem by using generational indices.” Again this is good for game entities or graph nodes.


spin-sleep: providing a very accurate sleep() function as well as a LoopHelper which is really handy. The author puts quite some effort into measuring a lot on different platforms (see here).


Crate of the week suggestion: . Attempts to summarize licenses of crates you depend on.


cgroups: “Native Rust library for managing control groups under Linux”.

I’m nominating this because it unlocks the ability to start writing lightweight Docker-like libraries in Rust for Linux!


failsafe (reddit thread) - Wrap function in a supervisor that prohibits execution (returns error early) for some time in case of consequtive failures of the wrapped function.


I was just told about cargo-src.


mdproof: “A standalone markdown to PDF converter”


mtpng: "A parallelized PNG encoder in Rust "


smallbox: Small Box optimization: store small item on the stack and fallback to heap for large item.