Crate of the Week

I'd like to nominate cargo-husky - a pre-commit tool that has zero setup costs - just check out a repo that uses it. (tl/dr: It's a dev-dependency crate that has a build.rs that sets up git pre-commit hooks if they're not already there.) - it's already saved me a bunch of time!

6 Likes

https://crates.io/crates/tinyvec
https://docs.rs/tinyvec/0.3.1/tinyvec/

4 Likes

Rather literally, THAT'S AWESOME!

Kind of writing Rust in a vacuum here so seeing some of the code examples is a great help.

https://crates.io/crates/bitmatch

4 Likes

OpenAPI support for the Warp web framework:

1 Like

Parametrized tests:

https://crates.io/crates/test-case

11 Likes

Rust Music Theory - A music theory guide written in Rust.

2 Likes

RustQIP - Quantum Computing library leveraging graph building to build efficient quantum circuit simulations.

faux - Traitless Mocking Library for Rust.

6 Likes

get-port: A convenient way to get an available port on the system.

nestur - an NES emulator.

1 Like

Argh - an opinionated Derive-based argument parser optimized for code size.

6 Likes

Pueue - manage your shell commands. Now rewritten in Rust.

2 Likes

yaiouom: Prototype extension of the Rust type system towards checking units-of-measure

1 Like

caretaker: A simple, configurable filesystem watcher written in Rust

1 Like

ytop: A TUI system monitor written in Rust

3 Likes

oreboot - a downstream fork of coreboot, i.e. oreboot is coreboot without 'c'.

5 Likes

Very easy macro to turn stateful loops and async requests into a Stream.

stream! {
    while let Some(item) = next().await {
       yield item;
    }
}
8 Likes

inlineable_string: An owned, grow-able UTF-8 string that stores small strings inline and avoids heap-allocation.

2 Likes

static_assertions: A crate that allows you to make assertions at compile time:

    const DATA: &str = include_str!("path/to/string.txt");
    const_assert!(DATA.len() < 512);
7 Likes