Crate of the Week

I nominate UniCase, the easiest and cleanest way to impliment case insensitivity.

sqlx: The Rust SQL Toolkit.

SQLx is a modern SQL client built from the ground up for Rust, in Rust.

  • Truly Asynchronous . Built from the ground-up using async-std using async streams for maximum concurrency.
  • Type-safe SQL (if you want it) without DSLs. Use the query!() macro to check your SQL and bind parameters at compile time. (You can still use dynamic SQL queries if you like.)
  • Pure Rust . The Postgres and MySQL/MariaDB drivers are written in pure Rust using zero unsafe code.
11 Likes

That looks amazing, I hope there'll soon be a SQLlite equivalent, so far anything SQLlite has unsafe :confused:

1 Like

shrinkwraprs

Seen here (Traits to impl to mimic `Rc`?), thanks to them as I hadn't heard of it before

8 Likes

I haven't heard of shrinkwraprs either. Thanks, @drmason13, for the suggestion :kissing_heart:. That crate looks really useful. :nerd_face:

cxx: Safe interop between Rust and C++

18 Likes

redshirt - an OS prototype where binaries are WASM, run in ring 0.

12 Likes

dashmap - Blazing fast concurrent HashMap in Rust.

4 Likes

fasteval - Fast and safe evaluation of algebraic expressions.

7 Likes

mqtt-async-client - An MQTT 3.1.1 client written in Rust, using async functions and tokio.

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!

7 Likes

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

5 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

5 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.

1 Like