rustio rustio.net

Rust Patterns

78

bon

3.10.2 Stable

Next-gen compile-time-checked builder generator, named function's arguments, and more!

64.8M downloads · 1mo ago
77

thiserror

2.0.21 Stable

derive(Error)

1.6B downloads · 1mo ago
76

auto_impl

1.4.0 Stable

Automatically implement traits for common smart pointers and closures

72.2M downloads · 1mo ago
75

indoc

2.0.8 Stable

Indented document literals

339.9M downloads · 1mo ago
74

error-stack

0.8.0 Growing

A context-aware error-handling library that supports arbitrary attached user data

5.1M downloads · 3mo ago
74

tor-error

0.47.0 Growing

Provides the unified type-erased error type returned by many (esp. high-level) Tor APIs.

1.0M downloads · 1mo ago
73

ordered-float

5.5.0 Stable

Wrappers for total ordering on floats

479.8M downloads · 2mo ago
73

asimov-patterns

25.7.2 Stable

ASIMOV Software Development Kit (SDK) for Rust

62.5K downloads · 1mo ago
73

tor-checkable

0.47.0 Growing

Types to ensure that signed or time-bound data is validated before use

1.1M downloads · 1mo ago
72

imgref

1.12.3 Stable

A basic 2-dimensional slice for safe and convenient handling of pixel buffers with width, height & stride

57.1M downloads · 2mo ago
72

lazy_static

1.5.1 Stable

A macro for declaring lazily evaluated statics in Rust.

1.0B downloads · 1mo ago
72

enough

0.4.5 Experimental

Minimal cooperative cancellation trait for long-running operations

883.2K downloads · 1mo ago
72

caret

0.11.0 Growing

Macros for declaring non-exhaustive C-style enumerations, with named members

1.1M downloads · 1mo ago
72

safelog

0.10.0 Growing

Conditionally suppress confidential information from logs

1.1M downloads · 1mo ago
71

predicates

3.1.4 Growing

An implementation of boolean-valued predicate functions.

237.6M downloads · 9mo ago
71

nutype

0.8.0 Growing

The newtype with guarantees.

6.3M downloads · 2mo ago
71

raw-parts

2.2.4 Stable

Ergonomic wrapper around `Vec::from_raw_parts` and `Vec::into_raw_parts`.

111.4K downloads · 2mo ago
71

anyhow

1.0.104 Stable

Flexible concrete Error type built on std::error::Error

1.0B downloads · 4mo ago
71

stacksafe

1.0.3 Stable

Prevent stack overflow in deeply recursive functions with automatic stack management.

2.2M downloads · 3mo ago
71

ref-cast

1.0.27 Stable

Safely cast &T to &U where the struct U contains a single field of type T.

283.4M downloads · 3mo ago
71

tor-units

0.47.0 Growing

Provides macros for types which are constrained within a range, ensuring invalid values are unrepresentable.

1.1M downloads · 1mo ago
71

oneshot-fused-workaround

0.8.0 Growing

Fused wrapper for futures::channel::oneshot

833.8K downloads · 1mo ago
70

bitvec

1.1.1 Stable

Addresses memory by bits, for packed collections and bitfields

297.8M downloads · 5mo ago
70

snafu

0.9.2 Growing

An ergonomic error handling library

117.0M downloads · 4mo ago
70

derive-where

1.7.0 Stable

Deriving with custom trait bounds

71.7M downloads · 2mo ago
70

web-time-compat

0.3.0 Experimental

Compatibility layer for web-time

264.6K downloads · 1mo ago
70

tor-async-utils

0.47.0 Growing

Async/futures helpers for use with Tor

995.4K downloads · 1mo ago
70

tor-basic-utils

0.47.0 Growing

General helpers used by Tor

1.0M downloads · 1mo ago
70

retry-error

0.14.0 Growing

An error type for an operation that can fail more than once

1.1M downloads · 1mo ago
69

variadics_please

2.0.0 Growing

Implement things as if rust had variadics

6.4M downloads · 6mo ago
69

oxc_index

5.0.0 Stable

Newtype-style helpers for `Vec` and `usize`.

9.9M downloads · 4mo ago
69

educe

0.8.1 Growing

This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.

117.7M downloads · 2mo ago
69

oxc-miette

4.0.0 Stable

Fancy diagnostic reporting library and protocol for us mere mortals who aren't compiler hackers.

7.7M downloads · 3mo ago
69

almost-enough

0.4.5 Experimental

Batteries-included ergonomic extensions for the `enough` cooperative cancellation crate

50.5K downloads · 1mo ago
68

ra_ap_la-arena

0.0.149 Growing

Simple index-based arena without deletion.

1.2M downloads · 1mo ago
68

enum-ordinalize

4.4.2 Stable

This library enables enums to not only obtain the ordinal values of their variants but also allows for the construction of enums from an ordinal value.

114.6M downloads · 3mo ago
68

orx-pinned-vec

4.1.0 Stable

`PinnedVec` trait defines the interface for vectors which guarantee that elements added to the vector are pinned to their memory locations unless explicitly changed.

4.0M downloads · 2mo ago
68

derive_more

2.1.1 Growing

Adds #[derive(x)] macros for more traits

521.4M downloads · 11mo ago
68

once_cell

1.21.4 Growing

Single assignment cells and lazy values.

1.3B downloads · 8mo ago
68

bumpalo

3.20.3 Stable

A fast bump allocation arena for Rust.

630.6M downloads · 6mo ago
68

stacksafe-macro

1.0.3 Stable

Procedural macro implementation for the stacksafe crate.

2.2M downloads · 3mo ago
68

pingora-error

0.9.0 Growing

Error types and error handling APIs for Pingora.

9.8M downloads · 2mo ago
68

error-forge

1.0.2 Stable

Pragmatic Rust error-handling framework with stable error metadata, contextual diagnostics, optional async support, and synchronous recovery primitives (retry, circuit-breaker, backoff). Optional #[derive(ModError)], declarative define_errors!, and feature-gated logging / tracing / serde adapters.

7.7K downloads · 1mo ago
68

iter-enum

1.3.0 Stable

#[derive(Iterator, DoubleEndedIterator, ExactSizeIterator, Extend)] for enums.

741.2K downloads · 1mo ago
67

la-arena

0.3.1 Growing

Simple index-based arena without deletion.

4.3M downloads · 1mo ago
67

auto_enums_derive

0.7.12 Growing

An internal crate to support auto_enums - do not use directly

8.2M downloads · 1mo ago
67

rancor

0.1.3 Growing

Scalable and efficient error handling without type composition

35.9M downloads · 3mo ago
67

orx-fixed-vec

4.1.0 Stable

An efficient fixed capacity vector with pinned element guarantees.

4.0M downloads · 2mo ago
67

typewit

1.15.2 Growing

type-witness-based abstractions, mostly for emulating polymorphism in const fns

21.0M downloads · 7mo ago
67

id-arena

2.3.0 Growing

A simple, id-based arena.

146.1M downloads · 10mo ago