Crate of the Week

#526

Thanks, didn’t know about iter-python, will give it a try!

#527

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

1 Like
#528

cascade: Dart-like cascade expressions in Rust

1 Like
#529

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

1 Like
#530

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

1 Like
#531

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

4 Likes
#532

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

#533

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?

1 Like
#534

unstructured provides types for usage with unstructured data.

1 Like
#535

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

1 Like
#536

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

2 Likes
#537

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
#538

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

#539

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

#540

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.

6 Likes
#541

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

#542

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
#543

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}");
3 Likes
#544

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

4 Likes
#545

raqote: A pure Rust 2D Graphics Library

2 Likes