Crate of the Week

GlueSQL

4 Likes

CraftQL - A CLI tool to manipulate GraphQL schemas and to output a graph data structure as a graphviz .dot format

1 Like

cached: Allows you to create "memoized" functions, which apparently means their results are cached based on their inputs. :slight_smile:

7 Likes

serde-query: An efficient query language for Serde:

  • Efficient. You can extract only the target parts from a potentially large document with a jq-like syntax. It works like a streaming parser and touches only a minimal amount of elements.
  • Flexible. serde-query can work with any serde-compatible formats.
  • Zero-cost. The traversal structure is encoded as types in compile time.
11 Likes

cucumber-rust: An implementation of the Cucumber testing framework for Rust. Fully native, no external test runners or dependencies.

3 Likes

gitoxide: An idiomatic, modern, lean, fast, safe & pure rust implementation of git

19 Likes

ultraviolet: A wide linear algebra crate for games and graphics.

3 Likes

Seconded. gitoxide is incredible work, and it'd be nice to get people aware of it while it's still early, to help drive use cases and get contributors.

5 Likes

https://github.com/dropbox/pb-jelly

This looks really nice!

3 Likes

Nominating arrayref, which instantly solved a tedious and annoying problem (turning &[T; 16] into (&[T; 8], &[T; 8])) that was holding me up the other day. Tiny crates are the best.

This package contains just four macros, which enable the creation of array references to portions of arrays or slices (or things that can be sliced).

3 Likes

https://github.com/Kushagra-0801/fn-compose
Some people have asked for s.th. similar in the past.

1 Like

https://github.com/VFLashM/tuple_list
This one looks handy!

1 Like

A library for setting up Rust objects inspired by factory_bot.
https://github.com/TaKO8Ki/beaver

crates: https://crates.io/crates/beaver
docs: beaver - Rust

1 Like

Nominating cargo-about, because it lets you create the file you're legally obliged to ship with your executable according to most licenses' text. Also, it checks crates against your list of approved licenses. Where there's a choice of license, it only includes the license you've approved. By default it generates HTML, but with some fiddling about with the about.hbs it can produce nice plain text output too. Saved me a lot of time.

10 Likes

Nominating fs-err.

When you use std::fs, you may get very unhelpful errors like
The system cannot find the file specified. (os error 2)
that don't show the path of the file on which the error occured.

fs-err wraps the functions in std::fs and adds the path information to the error while staying compatible with std::io::Error.
Saved me the pain of adding the error context myself everywhere.

16 Likes

Nominating https://github.com/lukaslueg/volkswagen/tree/HEAD/volkswagen because it's funny.

7 Likes

https://github.com/mozilla/uniffi-rs

Looks interesting...

4 Likes

https://github.com/ritchie46/polars

1 Like

Not sure if this has been featured before:

https://github.com/dtolnay/paste

For concatenating idents!

3 Likes

https://github.com/agausmann/declio

1 Like