CATEGORY
Rust patterns 3,906 crates
Data as of 2026-07-25 (crates.io database dump, timestamp 2026-07-25T02:00:36Z). Source: crates.io · db-dump.tar.gz · methodology & corrections.
known-types-lumaWell-known types for Luma APIs.22Unlicense
iter_cartesianA Cartesian product iterator with double-ended iteration and O(1) length queries.22MIT OR Apache-2.0
crumbsAttach a trail of context messages to errors via attribute macros.22MIT
cadaA monadic Chest<T> container and universal for-comprehension macro for Rust22Apache-2.0 OR MIT
yangplaceholder22MIT
typed-errorA typed, transport-aware error system for Rust services with structured metadata, retry hints, and HTTP/gRPC mapping.22Apache-2.0
easy_derefDerive macros for the `Deref` and `DerefMut` traits22MIT OR Apache-2.0
unwrap-safeSafe unwrap replacements that log instead of panic — drop-in macros for Option and Result22MIT
async-boundsAttribute to declare bounds on the Future returned by an async fn22Apache-2.0 OR MIT
ecore-macroProcedural macros for ecore: bitfield structs/enums, enum maps, and ranged integers21MIT
pointdexterunifies *const/*mut pointers using the trait system21MIT
tripfuseA one-time use container for sensitive values21MIT OR Apache-2.0
known-types-githubWell-known types for GitHub APIs.21Unlicense
known-types-instagramWell-known types for Instagram APIs.21Unlicense
known-types-linkedinWell-known types for LinkedIn APIs.21Unlicense
opaque-enumAttribute macro for hiding enum variants behind an opaque struct wrapper21MIT OR Apache-2.0
newtype-ids-uriUriIdentifier trait and derive macro21MIT
log-if-errDrop-in replacements for silent error drops — log at warn/error/debug instead of silently discarding21MIT
static-conduitA type-safe, zero-cost recursive pipeline engine for data transformation.21MIT OR Apache-2.0
rust_flatbuffer_macrosMacros for simplifying the building of flatbuffer messages21MIT
trustgrant-verifyCold-path verification pipeline for the TrustGrant protocol21MIT OR Apache-2.0
bijectiveCompile-time enforcement of surjective, injective, and bijective properties on enum-to-enum match expressions20MIT
biasedrcAn implementation of biased-reference counting20MIT OR Apache-2.0
grass_chewerA generalized COW (copy-on-write) type20MIT OR Apache-2.0
glossa-langA small DSL-like macro for string-based function calls and inline printing20MIT
writeonlyContravariant pointers to write only memory20MIT
thistraceCallsite provenance (file/line/col) for thiserror #[from] conversions via #[track_caller]20MIT OR Apache-2.0
devnagariCode in Devanagari (Hindi/Sanskrit) — type aliases, macros, and keyword translation for Rust20MIT
int-castConvenient casts between primitive integers.20MIT OR Apache-2.0
causlane-cliDeveloper/operator CLI for causlane.20MIT OR Apache-2.0
ordofp_coreOrdoFP core provides developers with HList, Disiunctio, NominataUniversalis, Universalis, and functional type classes20Apache-2.0
harness-reflectPost-run reflection and learning engine for the Harness SDK20MIT OR Apache-2.0
scoped-async-macroA macro for ergonomic scoped async tasks with borrowed data19non-standard
identifiers-deriveDerive macros for the identifiers crate19MIT
rue-macrosProcedural macros for Rue — a Vue 3-like reactive UI framework in Rust/WASM19MIT
BitmaskWindowA zero-overhead, data-oriented bitmask generator that isolates arbitrary data windows using compile-time bitwise AND masks.19MIT OR Apache-2.0
llm-cost-capPre-flight USD cost gate for LLM calls. Estimate input plus output cost from token counts and reject calls that would exceed a…19MIT
qubit-fsPluggable filesystem abstraction for Rust19Apache-2.0
oqlReadable, declarative query syntax for Rust iterators19MIT
duat-txt-macroA macro to create a Text struct from duat19AGPL-3.0-or-later
qubit-text-ioText-oriented I/O traits and adapters for Rust19Apache-2.0
devirt-macrosProc-macro attribute for devirt19MIT OR Apache-2.0
abpl-macrosProcedural macro support crate for abpl's #[derive(Error)] error type generator.19AGPL-3.0-or-later
objsLightweight macros for creating typed, or untyped, named, or anonymous objects in Rust.19MIT OR Apache-2.0
x-pipe-rsComposable recommendation/feed pipeline framework built on comp-cat-rs18MIT OR Apache-2.0
litter-doxConvenient literate programming for Rust programmers.18MIT OR Apache-2.0
struct_errorModern, flat, zero-cost error flow based on pure struct errors.18MIT OR Apache-2.0
shaperRust Project and Code generation18MIT
gloc-testTesting utilities for GLoC reactors — captures state sequences and provides fluent assertions18MIT
muiA simple drop guard for MaybeUninit18Apache-2.0
odin-unionDependency-free shorthand for Rust enums whose variants wrap same-named types18GPL-3.0-or-later
ambisync_macrosProc-macro implementation for the ambisync crate18MIT OR Apache-2.0
redbear-tui-themeDefault TUI skin palette for Red Bear OS — single source of truth for the Red Bear brand colours used by every TUI application18MIT
application-toysLightweight application primitives for async Rust — typed event bus, async trait support, and more to come18non-standard
tool-call-budgetsPer-tool call count caps for AI agents. Stops runaway tool loops before they hit the invoice.18MIT
ordofpOrdoFP: Functional programming in Rust with HList, Disiunctio, GAT traits, Optics, and Monad Transformers18Apache-2.0
harness-runtimeTokio execution engine for the Harness SDK18MIT OR Apache-2.0
access_pathType-safe field paths for Rust structs — get, get_mut, and set17MIT OR Apache-2.0
hylic-pipelineTypestate pipelines and sugar traits over hylic lifts.17MIT
llm-stop-conditionsComposable stop conditions for LLM agent loops: max iters, USD, tokens, seconds, no-progress, custom.17MIT
gloc-dioxusDioxus adapter for GLoC reactors — context hooks for reactive state management17MIT
llm-fallback-chainMulti-provider failover for LLM calls. Try provider A, fall back to B then C on failure.17MIT
inline_enum_handlerMatch enum variants to #[handler] functions without boilerplate17MIT OR Apache-2.0
boxpinA tiny extension trait that exposes Box::pin as a .pinned() suffix.17MIT OR Apache-2.0
causlaneTyped, auditable, replayable, consequence-aware action dispatch.17MIT OR Apache-2.0
felumentsA convenience macro for Rust builders17CC0-1.0
erris-metaVersion-stable shared trait for erris, enabling cross-version metadata access between different erris builds in the same binary.…17MIT OR Apache-2.0
safyControlled/scoped invocation of unsafe functions in Rust17BSD-2-Clause OR Apache-2.0 OR MIT
secret-fmtA zero-dependency wrapper to prevent accidental logging of sensitive data (PII, secrets)17MIT OR Apache-2.0
async_iterAsync iterator16Apache-2.0 OR BSL-1.0 OR MIT
geezgeez — Global Error Embedding Zero-cost. Declarative error enums, thiserror-like attrs, zero deps16MIT OR Apache-2.0
agent-decision-logWHY-layer decision log for AI agents: record options considered, the option chosen, the rationale, and the outcome, then persist…16MIT
ambisyncWrite sync/async-generic Rust16MIT OR Apache-2.0
agent-deadlineCooperative per-task deadline primitive for AI agent workflows.16MIT
into-partsA trait for decomposing a type into its constituent parts.16MIT
ref-viewDerive zero-copy reference views for structs and enums16Apache-2.0
trustgrant-issueDraft and signable TrustGrant document construction16MIT OR Apache-2.0
trustgrant-evaluateHot-path evaluation engine for TrustGrant grants16MIT OR Apache-2.0
miette-diagnostic-chainDisplay miette diagnostics with their full cause chain via Display16MIT OR Apache-2.0
authentication-serviceAuthentication service.15MIT OR Apache-2.0 OR BSD-3-Clause OR GPL-2.0-only OR GPL-3.0-only
scoped-valueAn extension trait for scoping thread locals to a future15MIT
lending_iterLending iterator15Apache-2.0 OR BSL-1.0 OR MIT
arbitrary-typeturn an arbitrary compile-time byte sequence into a distinct, zero-sized type, identified by its const SHA-256 digest.15Apache-2.0 OR MPL-2.0
karpal-toposTopos-theoretic constructions: small categories, presheaves, sieves, the subobject classifier, Grothendieck topologies, and…15Apache-2.0
rsignalsOne-shot multi-signaler / multi-waiter fail-safe broadcast event for thread and task coordination (MPMC, sync + async, zero deps,…15Apache-2.0
fluencyA fluent, typestate builder derive — terminate with .build() or .await.15MIT OR Apache-2.0
errisErrors, explained.15MIT OR Apache-2.0
verit-deriveThe #[derive(Verit)] procedural macro for Exavian Veritate. Enable via `verit`'s `derive` feature.15Apache-2.0
error-path-macrosAttribute macros for automatically attaching error paths to Result-returning Rust functions and impl blocks.15MIT OR Apache-2.0
pilatus-emulation-camera-rtRuntime for Pilatus camera emulation14MPL-2.0
identifiers-uuidUuidIdentifier trait and derive macro14MIT
identifiers-uriUriIdentifier trait and derive macro14MIT
pyruts面向 Rust 工程实践的 proc_macro 工具集: Builder derive, c_wrap! FFI 包装, ensure!/bail!/throw! 错误宏, dict!/btree_dict! 容器字面量14MIT OR Apache-2.0
multi-errorsA way to handle multiple errors from the same function14MIT
validatable_deriveDerive macro for the validatable crate14MIT OR Apache-2.0
implerMacros to generate an enum that implements a user-specified trait and wraps values of other types that implement the same trait,…13BSD-2-Clause OR Apache-2.0 OR MIT
error-pathAttach stable, structured error paths to Result-based Rust errors with lightweight adapters.13MIT OR Apache-2.0
trustgrantFacade crate re-exporting all TrustGrant protocol types for convenience13MIT OR Apache-2.0
localHelp you make Rust code safer. Macros to provide locally scoped safe alternatives to unsafe references or values.12BSD-2-Clause OR Apache-2.0 OR MIT
privateHelp you make Rust code more accident-proof. Macros to enable other crates to export macros (either declarative/by example/using…12BSD-2-Clause OR Apache-2.0 OR MIT
rustandA lightweight, Zustand-inspired state management library for Rust.12MIT
restrictedPrevent consumers of your Rust macros from accidents. Enable crates to export private-like types, traits and functions that are…12BSD-2-Clause OR Apache-2.0 OR MIT
quick_retrya lightweight, zero-dependenc retry library for Rust operations.12MIT
repr_fitsCompile-time bit-width checks for enum discriminants.11MIT
diapauseCoroutines/generators for stable Rust via code transformation — no async, no Pin, no allocation, no unsafe code7MIT
enum-infoA crate to generate enum impls which can list basic info about an enum.0non-standard