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.22UnlicenseAPI bindingsConfiguration iter_cartesianA Cartesian product iterator with double-ended iteration and O(1) length queries.22MIT OR Apache-2.0AlgorithmsRust patterns crumbsAttach a trail of context messages to errors via attribute macros.22MITRust patterns cadaA monadic Chest<T> container and universal for-comprehension macro for Rust22Apache-2.0 OR MITData structuresRust patterns yangplaceholder22MITDevelopment tools::Procedural macro helpersNo standard library typed-errorA typed, transport-aware error system for Rust services with structured metadata, retry hints, and HTTP/gRPC mapping.22Apache-2.0Development toolsRust patterns easy_derefDerive macros for the `Deref` and `DerefMut` traits22MIT OR Apache-2.0Development toolsNo standard library unwrap-safeSafe unwrap replacements that log instead of panic — drop-in macros for Option and Result22MITDevelopment tools::DebuggingRust patterns async-boundsAttribute to declare bounds on the Future returned by an async fn22Apache-2.0 OR MITAsynchronousNo standard library ecore-macroProcedural macros for ecore: bitfield structs/enums, enum maps, and ranged integers21MITEmbedded developmentNo standard library pointdexterunifies *const/*mut pointers using the trait system21MITMemory managementNo standard library tripfuseA one-time use container for sensitive values21MIT OR Apache-2.0AuthenticationCryptography known-types-githubWell-known types for GitHub APIs.21UnlicenseAPI bindingsConfiguration known-types-instagramWell-known types for Instagram APIs.21UnlicenseAPI bindingsConfiguration known-types-linkedinWell-known types for LinkedIn APIs.21UnlicenseAPI bindingsConfiguration opaque-enumAttribute macro for hiding enum variants behind an opaque struct wrapper21MIT OR Apache-2.0Development tools::Procedural macro helpersRust patterns newtype-ids-uriUriIdentifier trait and derive macro21MITRust patterns log-if-errDrop-in replacements for silent error drops — log at warn/error/debug instead of silently discarding21MITDevelopment tools::DebuggingRust patterns static-conduitA type-safe, zero-cost recursive pipeline engine for data transformation.21MIT OR Apache-2.0Data structuresRust patterns rust_flatbuffer_macrosMacros for simplifying the building of flatbuffer messages21MITEncodingNo standard library trustgrant-verifyCold-path verification pipeline for the TrustGrant protocol21MIT OR Apache-2.0AuthenticationCryptography bijectiveCompile-time enforcement of surjective, injective, and bijective properties on enum-to-enum match expressions20MITDevelopment toolsRust patterns biasedrcAn implementation of biased-reference counting20MIT OR Apache-2.0ConcurrencyMemory management grass_chewerA generalized COW (copy-on-write) type20MIT OR Apache-2.0Data structuresMemory management glossa-langA small DSL-like macro for string-based function calls and inline printing20MITDevelopment toolsRust patterns writeonlyContravariant pointers to write only memory20MITNo standard libraryRust patterns thistraceCallsite provenance (file/line/col) for thiserror #[from] conversions via #[track_caller]20MIT OR Apache-2.0Development tools::DebuggingRust patterns devnagariCode in Devanagari (Hindi/Sanskrit) — type aliases, macros, and keyword translation for Rust20MITNo standard libraryRust patterns int-castConvenient casts between primitive integers.20MIT OR Apache-2.0AlgorithmsMathematics causlane-cliDeveloper/operator CLI for causlane.20MIT OR Apache-2.0Development toolsRust patterns ordofp_coreOrdoFP core provides developers with HList, Disiunctio, NominataUniversalis, Universalis, and functional type classes20Apache-2.0Data structuresRust patterns harness-reflectPost-run reflection and learning engine for the Harness SDK20MIT OR Apache-2.0Rust patterns scoped-async-macroA macro for ergonomic scoped async tasks with borrowed data19non-standardAsynchronousRust patterns identifiers-deriveDerive macros for the identifiers crate19MITRust patterns rue-macrosProcedural macros for Rue — a Vue 3-like reactive UI framework in Rust/WASM19MITGUIRust patterns BitmaskWindowA zero-overhead, data-oriented bitmask generator that isolates arbitrary data windows using compile-time bitwise AND masks.19MIT OR Apache-2.0Embedded developmentHardware support 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…19MITAPI bindingsRust patterns qubit-fsPluggable filesystem abstraction for Rust19Apache-2.0FilesystemRust patterns oqlReadable, declarative query syntax for Rust iterators19MITRust patterns duat-txt-macroA macro to create a Text struct from duat19AGPL-3.0-or-laterRust patternsValue formatting qubit-text-ioText-oriented I/O traits and adapters for Rust19Apache-2.0EncodingRust patterns devirt-macrosProc-macro attribute for devirt19MIT OR Apache-2.0No standard libraryRust patterns abpl-macrosProcedural macro support crate for abpl's #[derive(Error)] error type generator.19AGPL-3.0-or-laterDevelopment tools::Procedural macro helpersRust patterns objsLightweight macros for creating typed, or untyped, named, or anonymous objects in Rust.19MIT OR Apache-2.0Development toolsRust patterns x-pipe-rsComposable recommendation/feed pipeline framework built on comp-cat-rs18MIT OR Apache-2.0AlgorithmsRust patterns litter-doxConvenient literate programming for Rust programmers.18MIT OR Apache-2.0Development toolsRust patterns struct_errorModern, flat, zero-cost error flow based on pure struct errors.18MIT OR Apache-2.0No standard libraryRust patterns shaperRust Project and Code generation18MITRust patterns gloc-testTesting utilities for GLoC reactors — captures state sequences and provides fluent assertions18MITDevelopment tools::TestingRust patterns muiA simple drop guard for MaybeUninit18Apache-2.0Memory managementNo standard library::No dynamic allocation odin-unionDependency-free shorthand for Rust enums whose variants wrap same-named types18GPL-3.0-or-laterRust patterns ambisync_macrosProc-macro implementation for the ambisync crate18MIT OR Apache-2.0AsynchronousRust patterns redbear-tui-themeDefault TUI skin palette for Red Bear OS — single source of truth for the Red Bear brand colours used by every TUI application18MITConfigurationNo standard library application-toysLightweight application primitives for async Rust — typed event bus, async trait support, and more to come18non-standardAsynchronousConcurrency tool-call-budgetsPer-tool call count caps for AI agents. Stops runaway tool loops before they hit the invoice.18MITAsynchronousRust patterns ordofpOrdoFP: Functional programming in Rust with HList, Disiunctio, GAT traits, Optics, and Monad Transformers18Apache-2.0Data structuresRust patterns harness-runtimeTokio execution engine for the Harness SDK18MIT OR Apache-2.0Rust patterns access_pathType-safe field paths for Rust structs — get, get_mut, and set17MIT OR Apache-2.0No standard libraryRust patterns hylic-pipelineTypestate pipelines and sugar traits over hylic lifts.17MITAlgorithmsData structures llm-stop-conditionsComposable stop conditions for LLM agent loops: max iters, USD, tokens, seconds, no-progress, custom.17MITAsynchronousRust patterns gloc-dioxusDioxus adapter for GLoC reactors — context hooks for reactive state management17MITGUIRust patterns llm-fallback-chainMulti-provider failover for LLM calls. Try provider A, fall back to B then C on failure.17MITAsynchronousRust patterns inline_enum_handlerMatch enum variants to #[handler] functions without boilerplate17MIT OR Apache-2.0No standard libraryRust patterns boxpinA tiny extension trait that exposes Box::pin as a .pinned() suffix.17MIT OR Apache-2.0AsynchronousRust patterns causlaneTyped, auditable, replayable, consequence-aware action dispatch.17MIT OR Apache-2.0Development toolsRust patterns felumentsA convenience macro for Rust builders17CC0-1.0Rust patterns erris-metaVersion-stable shared trait for erris, enabling cross-version metadata access between different erris builds in the same binary.…17MIT OR Apache-2.0Development tools::DebuggingRust patterns safyControlled/scoped invocation of unsafe functions in Rust17BSD-2-Clause OR Apache-2.0 OR MITDevelopment toolsNo standard library secret-fmtA zero-dependency wrapper to prevent accidental logging of sensitive data (PII, secrets)17MIT OR Apache-2.0Development tools::DebuggingNo standard library async_iterAsync iterator16Apache-2.0 OR BSL-1.0 OR MITAsynchronousNo standard library geezgeez — Global Error Embedding Zero-cost. Declarative error enums, thiserror-like attrs, zero deps16MIT OR Apache-2.0Development toolsRust patterns agent-decision-logWHY-layer decision log for AI agents: record options considered, the option chosen, the rationale, and the outcome, then persist…16MITDevelopment tools::DebuggingRust patterns ambisyncWrite sync/async-generic Rust16MIT OR Apache-2.0AsynchronousRust patterns agent-deadlineCooperative per-task deadline primitive for AI agent workflows.16MITAsynchronousRust patterns into-partsA trait for decomposing a type into its constituent parts.16MITRust patterns ref-viewDerive zero-copy reference views for structs and enums16Apache-2.0Development tools::Procedural macro helpersRust patterns trustgrant-issueDraft and signable TrustGrant document construction16MIT OR Apache-2.0AuthenticationCryptography trustgrant-evaluateHot-path evaluation engine for TrustGrant grants16MIT OR Apache-2.0AuthenticationCryptography miette-diagnostic-chainDisplay miette diagnostics with their full cause chain via Display16MIT OR Apache-2.0Development toolsRust patterns authentication-serviceAuthentication service.15MIT OR Apache-2.0 OR BSD-3-Clause OR GPL-2.0-only OR GPL-3.0-onlyDevelopment toolsRust patterns scoped-valueAn extension trait for scoping thread locals to a future15MITAsynchronousConcurrency lending_iterLending iterator15Apache-2.0 OR BSL-1.0 OR MITNo standard libraryRust patterns 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.0Data structuresNo standard library karpal-toposTopos-theoretic constructions: small categories, presheaves, sieves, the subobject classifier, Grothendieck topologies, and…15Apache-2.0No standard libraryRust patterns rsignalsOne-shot multi-signaler / multi-waiter fail-safe broadcast event for thread and task coordination (MPMC, sync + async, zero deps,…15Apache-2.0AsynchronousConcurrency fluencyA fluent, typestate builder derive — terminate with .build() or .await.15MIT OR Apache-2.0AsynchronousRust patterns errisErrors, explained.15MIT OR Apache-2.0Development tools::DebuggingRust patterns verit-deriveThe #[derive(Verit)] procedural macro for Exavian Veritate. Enable via `verit`'s `derive` feature.15Apache-2.0EncodingRust patterns error-path-macrosAttribute macros for automatically attaching error paths to Result-returning Rust functions and impl blocks.15MIT OR Apache-2.0Development tools::DebuggingRust patterns pilatus-emulation-camera-rtRuntime for Pilatus camera emulation14MPL-2.0AsynchronousRust patterns identifiers-uuidUuidIdentifier trait and derive macro14MITRust patterns identifiers-uriUriIdentifier trait and derive macro14MITRust patterns pyruts面向 Rust 工程实践的 proc_macro 工具集: Builder derive, c_wrap! FFI 包装, ensure!/bail!/throw! 错误宏, dict!/btree_dict! 容器字面量14MIT OR Apache-2.0API bindingsDevelopment tools::Procedural macro helpers multi-errorsA way to handle multiple errors from the same function14MITRust patterns validatable_deriveDerive macro for the validatable crate14MIT OR Apache-2.0Development tools::Procedural macro helpersRust patterns 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 MITNo standard libraryNo standard library::No dynamic allocation error-pathAttach stable, structured error paths to Result-based Rust errors with lightweight adapters.13MIT OR Apache-2.0Development tools::DebuggingRust patterns trustgrantFacade crate re-exporting all TrustGrant protocol types for convenience13MIT OR Apache-2.0AuthenticationCryptography 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 MITDevelopment toolsNo standard library 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 MITDevelopment toolsNo standard library rustandA lightweight, Zustand-inspired state management library for Rust.12MITConcurrencyGUI 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 MITDevelopment toolsNo standard library quick_retrya lightweight, zero-dependenc retry library for Rust operations.12MITDevelopment toolsRust patterns repr_fitsCompile-time bit-width checks for enum discriminants.11MITDevelopment tools::Procedural macro helpersRust patterns diapauseCoroutines/generators for stable Rust via code transformation — no async, no Pin, no allocation, no unsafe code7MITNo standard libraryNo standard library::No dynamic allocation enum-infoA crate to generate enum impls which can list basic info about an enum.0non-standardRust patterns