Crate of the Week

snafu: Easily assign underlying errors into domain-specific errors while adding context

2 Likes

cascade: Dart-like cascade expressions in Rust

1 Like

bus: like channels, but a message will be sent to every consumer, not just one.

1 Like

doc-comment: macros to help keeping documentation up-to-date (and to test your README examples!).

1 Like

select-rustc: provides macros for conditional compilation according to rustc compiler version analogous to #[cfg(...)] and #[cfg_attr(...)] . Example #[rustc::stable(1.34)]

5 Likes

copyless avoid the memcpy in a Box::new(foo). Super useful, especially if box foo syntax is removed.

ramhorns renders Mustache templates in runtime.

It comes with a derive macro which allows for templates to be rendered from native Rust data structures without doing temporary allocations, intermediate HashMaps or what have you.

With a touch of magic :tophat:, the power of friendship :clinking_glasses:, and a sparkle of FNV hashing :sparkles:, render times easily compete with static template engines like Askama.

What else do you want, a sticker?

2 Likes

unstructured provides types for usage with unstructured data.

1 Like

lolcate-rs: A comically fast way of indexing and querying your filesystem

1 Like

shrinkwraprs: Auto-derive for Rust conversion traits -- make working with newtypes a breeze

2 Likes

rayon_croissant: This crate offers a new parallel iterator adapter which allows you to mapfold an iterator and reduce the result of the folds into a given mutable reference

3 Likes

“Easy and safe library for overriding stdout / stderr / stdin with any file/socket while using rust memory management to guard the change” stdio-override

markup.rs: A blazing fast, type-safe template engine for Rust

1 Like

i nominate web-view:

It uses Cocoa/WebKit on macOS, gtk-webkit2 on Linux and MSHTML (IE10/11) on Windows, so your app will be much leaner than with Electron.

I tried it this week for a little tool that needs to have a GUI. Web-view was straightforward to use, it has example code available and is lightweight.

9 Likes

micromath: Embedded Rust arithmetic, 2D/3D vector, and statistics library

trybuild: compile failure tests

Trybuild is a test harness for invoking rustc on a set of test cases and asserting that any resulting error messages are the ones intended.

4 Likes

ifmt: A small crate which brings inline string interpolation to rust's standard formatting macros.

let four = 4;
iprintln!("four plus four is: {four + 4}");
5 Likes

panic-never: This crate guarantees that your application is free of panicking branches.

7 Likes

raqote: A pure Rust 2D Graphics Library

4 Likes

Sundial: An implementation of the iCalendar spec RRules specification

1 Like