Crate of the Week

It's been a while, but I'd like to post in a recommendation for aliri_braid, a simple newtype wrapper for strings, making it easy to carry semantic information along with your string values.

I would like to self-suggest the crate scandir. It is a very fast file tree scanner. The high performance is achieved through multithreaded metadata reading. It comes with 2 packages:

  • One is for direct use in other Rust project without pyo3 dependency.
  • And the other is for creating a Python module.

The crate and the doc can be found here.

Best regards

2 Likes

I’ve found derive_more helpful recently, so id like to nominate it for next week:

It makes deriving implementations of standard traits easier. It has a wide range of traits, including conversion, reference, access, formatting, and numeric traits.

2 Likes

Self-nomination: show-option.
Display Option<T> without unnecessary conversions and allocations.

println!("received: {}", Some(20).show_suffixed_or(" bytes", "none")); // "received: 20 bytes"

Nominating (for any week :slight_smile:) GitHub - dropbox/fast_rsync: An optimized implementation of librsync in pure Rust.

It's a faster implementation of librsync in pure Rust, with SIMD optimizations.

1 Like

Self-nomination: stated-scope-guard, a more flexible RAII pattern for stated resource management.

1 Like