Crate of the Week

I would like to nominate my Transformer implementation using the Burn framework. The Topological Transformer innovates in KV-cache computation and other feats: crates.io: Rust Package Registry
It is a fork of my other crate nanogpt that is a porting og nanoGPT in Rust and it is based on this research paper: GitHub - tuned-org-uk/tauformer-paper: Topological Transformer paper

Thanks and cheers

1 Like

I would like to self-nominate axum-autoroute.
It's a crate that we built and use in my company and that we recently decided to publish (see the recent announcement post: New crate: axum-autoroute ).

The goal of this crate is to ease the writing of OpenAPI documentation in the code for HTTP route handlers, for example by:

  • Avoiding to type the HTTP method or the handler path multiple times
  • Enforce that the HTTP responses returned by the HTTP handler are always documented

It is based on axum and utoipa.

I'd like to submit a new crate:

Charton โ€” an Altair-style declarative plotting library for Rust.

Highlights:

  • Native Polars DataFrame support
  • Declarative grammar inspired by Altair
  • Pure-Rust SVG output
  • Works in evcxr / Jupyter notebooks
  • Designed with Wasm support in mind

Charton github

Charton Crates.io

1 Like

downcast-rs. It generates implementation code for a Trait: Any to allow downcasting from dyn Trait (where the standard library only supports downcasting from dyn Any, apart from trait upcasting (dyn Trait โ†’ dyn Any) in edition 2024, which has limitations).

The typle crate provides the ability to constrain generic arguments to be tuples and supports manipulation of the tuple components.

Personally I found it has quite a few useful features for tuples related code

diesel-guard catches dangerous Postgres migrations before they take down production.

โœ“ Detects operations that lock tables or cause downtime
โœ“ Provides safe alternatives for each blocking operation
โœ“ Works with both Diesel and SQLx migration frameworks
โœ“ Supports safety-assured blocks for verified operations

1 Like

I'd like to nominate figura, a lightweight, fast and flexible templating engine by Saverio Scagnoli.

  • small
  • efficient
  • many features
  • easy to use
  • very well written
  • very well documented
  • actively maintained

I'd like to nominate throttled-tracing
Still puzzled something like this didn't exist yet (except for the -once variation)

1 Like

I'd like to nominate teremock
Te legram ยท Re alistic ยท Mock ing โ€” A fast, ergonomic testing library for teloxide bots.