rustio rustio.net

Rust Patterns

77

predicates

3.1.4 Stable

An implementation of boolean-valued predicate functions.

147.2M downloads · 1mo ago
77

ordered-float

5.2.0 Stable

Wrappers for total ordering on floats

280.1M downloads · 2d ago
76

error-stack

0.7.0 Growing

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

3.2M downloads · yesterday
76

bon

3.9.1 Stable

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

26.3M downloads · 14d ago
75

once_cell

1.21.4 Stable

Single assignment cells and lazy values.

782.7M downloads · 15d ago
74

thiserror

2.0.18 Stable

derive(Error)

854.0M downloads · 2mo ago
74

anyhow

1.0.102 Stable

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

601.0M downloads · 1mo ago
73

derive_more

2.1.1 Stable

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

289.1M downloads · 3mo ago
72

raw-parts

2.2.2 Stable

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

83.7K downloads · 11d ago
72

snafu

0.9.0 Growing

An ergonomic error handling library

81.4M downloads · 25d ago
72

tor-error

0.40.0 Growing

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

333.7K downloads · 24d ago
72

tor-checkable

0.40.0 Growing

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

365.2K downloads · 24d ago
71

rgb

0.8.53 Growing

`struct RGB/RGBA/etc.` for sharing pixels between crates + convenience methods for color manipulation. Allows no-copy high-level interoperability. Also adds common convenience methods and implements standard Rust traits to make `RGB`/`RGBA` pixels and slices first-class Rust objects.

69.3M downloads · 1mo ago
71

bumpalo

3.20.2 Stable

A fast bump allocation arena for Rust.

336.1M downloads · 1mo ago
71

id-arena

2.3.0 Stable

A simple, id-based arena.

37.1M downloads · 2mo ago
71

safelog

0.8.0 Growing

Conditionally suppress confidential information from logs

349.3K downloads · 24d ago
71

caret

0.9.0 Growing

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

352.1K downloads · 24d ago
71

derive-where

1.6.1 Stable

Deriving with custom trait bounds

39.4M downloads · 14d ago
70

phlow

3.0.0 Stable

An engine for scripting reactive browsers in Rust by adding custom views to structures

24.4K downloads · 5d ago
70

tor-units

0.40.0 Growing

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

358.6K downloads · 24d ago
69

stacksafe

1.0.1 Growing

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

189.9K downloads · 1mo ago
69

oneshot-fused-workaround

0.6.0 Growing

Fused wrapper for futures::channel::oneshot

200.9K downloads · 24d ago
69

retry-error

0.11.0 Growing

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

355.3K downloads · 24d ago
68

indoc

2.0.7 Growing

Indented document literals

212.2M downloads · 5mo ago
68

typewit

1.14.2 Growing

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

9.7M downloads · 6mo ago
68

erased-serde

0.4.10 Growing

Type-erased Serialize and Serializer traits

141.9M downloads · 25d ago
68

pin-project-internal

1.1.11 Stable

Implementation detail of the `pin-project` crate.

382.6M downloads · 28d ago
68

tor-basic-utils

0.40.0 Growing

General helpers used by Tor

325.6K downloads · 24d ago
68

tor-async-utils

0.40.0 Growing

Async/futures helpers for use with Tor

296.4K downloads · 24d ago
67

num_enum

0.7.6 Growing

Procedural macros to make inter-operation between primitives and enums easier.

179.9M downloads · 12d ago
67

predicates-core

1.0.10 Stable

An API for boolean-valued predicate functions.

132.1M downloads · 1mo ago
67

asimov-patterns

25.1.0 Growing

ASIMOV Software Development Kit (SDK) for Rust

11.7K downloads · 1mo ago
67

dyn-clone

1.0.20 Growing

Clone trait that is dyn-compatible

188.4M downloads · 8mo ago
67

pingora-error

0.8.0 Growing

Error types and error handling APIs for Pingora.

5.1M downloads · 25d ago
67

iter-enum

1.2.1 Stable

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

411.7K downloads · 28d ago
66

auto_impl

1.3.0 Growing

Automatically implement traits for common smart pointers and closures

47.0M downloads · 11mo ago
66

imgref

1.12.0 Growing

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

26.7M downloads · 6mo ago
66

lazy_static

1.5.0 Growing

A macro for declaring lazily evaluated statics in Rust.

660.2M downloads · 1y ago
66

phlow-derive

3.0.0 Stable

Proc-macro helpers for declaring phlow extensions and views

14.7K downloads · 5d ago
66

ref-cast

1.0.25 Growing

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

106.9M downloads · 6mo ago
66

auto_enums

0.8.8 Growing

A library for to allow multiple return types by automatically generated enum.

12.4M downloads · 28d ago
66

pin-project

1.1.11 Stable

A crate for safe and ergonomic pin-projection.

382.7M downloads · 28d ago
65

enum-ordinalize

4.3.2 Growing

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.

59.5M downloads · 5mo ago
65

calendrical_calculations

0.2.3 Growing

Calendrical calculations in Rust

5.1M downloads · 5mo ago
65

predicates-tree

1.0.13 Stable

Render boolean-valued predicate functions results as a tree.

131.8M downloads · 1mo ago
65

sqlx-d1-core

0.3.1 Growing

core implementation for sqlx-d1 - SQLx for Cloudflare D1

6.8K downloads · 2mo ago
65

sqlx-d1

0.3.1 Growing

SQLx for Cloudflare D1

6.3K downloads · 2mo ago
65

downcast-rs

2.0.2 Growing

Trait object downcasting support using only safe Rust. It supports type parameters, associated types, and type constraints.

102.2M downloads · 6mo ago
65

oxc-miette

2.7.0 Stable

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

2.2M downloads · 2mo ago
65

stacksafe-macro

1.0.1 Growing

Procedural macro implementation for the stacksafe crate.

190.0K downloads · 1mo ago