Rust Patterns
bon
3.10.2 StableNext-gen compile-time-checked builder generator, named function's arguments, and more!
thiserror
2.0.21 Stablederive(Error)
auto_impl
1.4.0 StableAutomatically implement traits for common smart pointers and closures
indoc
2.0.8 StableIndented document literals
error-stack
0.8.0 GrowingA context-aware error-handling library that supports arbitrary attached user data
tor-error
0.47.0 GrowingProvides the unified type-erased error type returned by many (esp. high-level) Tor APIs.
ordered-float
5.5.0 StableWrappers for total ordering on floats
asimov-patterns
25.7.2 StableASIMOV Software Development Kit (SDK) for Rust
tor-checkable
0.47.0 GrowingTypes to ensure that signed or time-bound data is validated before use
imgref
1.12.3 StableA basic 2-dimensional slice for safe and convenient handling of pixel buffers with width, height & stride
lazy_static
1.5.1 StableA macro for declaring lazily evaluated statics in Rust.
enough
0.4.5 ExperimentalMinimal cooperative cancellation trait for long-running operations
caret
0.11.0 GrowingMacros for declaring non-exhaustive C-style enumerations, with named members
safelog
0.10.0 GrowingConditionally suppress confidential information from logs
predicates
3.1.4 GrowingAn implementation of boolean-valued predicate functions.
nutype
0.8.0 GrowingThe newtype with guarantees.
raw-parts
2.2.4 StableErgonomic wrapper around `Vec::from_raw_parts` and `Vec::into_raw_parts`.
anyhow
1.0.104 StableFlexible concrete Error type built on std::error::Error
stacksafe
1.0.3 StablePrevent stack overflow in deeply recursive functions with automatic stack management.
ref-cast
1.0.27 StableSafely cast &T to &U where the struct U contains a single field of type T.
tor-units
0.47.0 GrowingProvides macros for types which are constrained within a range, ensuring invalid values are unrepresentable.
oneshot-fused-workaround
0.8.0 GrowingFused wrapper for futures::channel::oneshot
bitvec
1.1.1 StableAddresses memory by bits, for packed collections and bitfields
snafu
0.9.2 GrowingAn ergonomic error handling library
derive-where
1.7.0 StableDeriving with custom trait bounds
web-time-compat
0.3.0 ExperimentalCompatibility layer for web-time
tor-async-utils
0.47.0 GrowingAsync/futures helpers for use with Tor
tor-basic-utils
0.47.0 GrowingGeneral helpers used by Tor
retry-error
0.14.0 GrowingAn error type for an operation that can fail more than once
variadics_please
2.0.0 GrowingImplement things as if rust had variadics
oxc_index
5.0.0 StableNewtype-style helpers for `Vec` and `usize`.
educe
0.8.1 GrowingThis crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.
oxc-miette
4.0.0 StableFancy diagnostic reporting library and protocol for us mere mortals who aren't compiler hackers.
almost-enough
0.4.5 ExperimentalBatteries-included ergonomic extensions for the `enough` cooperative cancellation crate
ra_ap_la-arena
0.0.149 GrowingSimple index-based arena without deletion.
enum-ordinalize
4.4.2 StableThis 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.
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.
derive_more
2.1.1 GrowingAdds #[derive(x)] macros for more traits
once_cell
1.21.4 GrowingSingle assignment cells and lazy values.
bumpalo
3.20.3 StableA fast bump allocation arena for Rust.
stacksafe-macro
1.0.3 StableProcedural macro implementation for the stacksafe crate.
pingora-error
0.9.0 GrowingError types and error handling APIs for Pingora.
error-forge
1.0.2 StablePragmatic 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.
iter-enum
1.3.0 Stable#[derive(Iterator, DoubleEndedIterator, ExactSizeIterator, Extend)] for enums.
la-arena
0.3.1 GrowingSimple index-based arena without deletion.
auto_enums_derive
0.7.12 GrowingAn internal crate to support auto_enums - do not use directly
rancor
0.1.3 GrowingScalable and efficient error handling without type composition
orx-fixed-vec
4.1.0 StableAn efficient fixed capacity vector with pinned element guarantees.
typewit
1.15.2 Growingtype-witness-based abstractions, mostly for emulating polymorphism in const fns
id-arena
2.3.0 GrowingA simple, id-based arena.