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.

std_newA personal standard setup for new Rust projects60UnlicenseConfigurationDevelopment tools caseidaeConvenient converters between letter casings of Rust identifiers.60AGPL-3.0-onlyDevelopment toolsDevelopment tools::Procedural macro helpers financial-ops-macrosProcedural macros for `financial-ops`: recursive compile-time checked arithmetic.60MITFinanceRust patterns pm2Useful proc macros.60GPL-3.0-onlyRust patterns bsql-query-macrosProc-macro foundation for bsql's compile-checked query API. Reads the schema catalog generated at build time by bsql-build and…60MIT OR Apache-2.0Database interfacesRust patterns policy-coreCompile-time policy enforcement and taint tracking framework for Rust59MITAuthenticationDevelopment tools prepPrepare Rust projects for greatness59Apache-2.0 OR MITCommand line utilitiesConfiguration enum-path-deriveDerive macro for the enum-path crate58MITDevelopment tools::Procedural macro helpersRust patterns dataclassesA small, pragmatic procedural macro providing a Dataclass-like derive for Rust58MIT OR Apache-2.0Development toolsDevelopment tools::Procedural macro helpers bakbonBakBon is an infrastructure microkernel library in Rust that provides generic building blocks (Router, Registry, Balancer, Queue,…58MITNetwork programmingRust patterns flexFlexible borrowing and ownership for Rust58MITData structuresNo standard library derive-defsLibrary for generating derive preset macros from TOML configuration58MIT OR Apache-2.0Development tools::Build UtilsRust patterns lienScoped lending of borrowed references58CC0-1.0ConcurrencyMemory management faux-refineA crate that implements a pseudo-Refinement Type in Rust.58MITRust patterns thistrace-macrosProc-macros for the thistrace crate58MIT OR Apache-2.0Development tools::DebuggingRust patterns subjectExtention trait pattern helper.58MITNo standard libraryRust patterns pleme-providersMulti-provider integration library for Pleme platform - generic trait abstraction and registry58MITRust patterns fazuh-commonPersonal collection of common Rust code for my projects57MITDevelopment toolsRust patterns enum-tree-deriveDerive macros for the enum-tree crate57MITDevelopment tools::Procedural macro helpersRust patterns enum-group-macrosDefine grouped enums with ergonomic pattern matching57MITDevelopment tools::Procedural macro helpersRust patterns typed_use_casesFormalize use cases at the type level. Zero runtime overhead. Experimental proof-of-concept.57MITDevelopment toolsRust patterns axiomaCompile-time declarative macros for static JSON-to-Matrix topology projection.57MIT OR Apache-2.0AlgorithmsData structures type-libValidation and type constraint library. Declare domain types with invariants enforced at construction. Parse-dont-validate…57Apache-2.0 OR MITData structuresRust patterns stilltypesDomain-specific refined types for the Rust and Stillwater ecosystem56MITDevelopment toolsRust patterns trendsSimple trend detection for ordered values56MITAlgorithmsRust patterns event_hexA pragmatic Rust toolkit for Domain-Driven Design with first-class support for event sourcing and CQRS.55MIT OR Apache-2.0AsynchronousData structures fackDeclarative error handling library with no_std support and composable code generation55GPL-3.0Development tools::Procedural macro helpersNo standard library struct_error_macrosProcedural macros for struct_error: #[error], #[united_error], #[throws], match_error!55MIT OR Apache-2.0Development tools::Procedural macro helpersRust patterns predikitRefinement types: a value carried with a compile-time proof that it satisfies a predicate — parse, don't validate, as a type.…54MIT OR Apache-2.0Data structuresNo standard library arena-containerSimple weak-typed arena (freelist) container without guards.54MIT OR Apache-2.0No standard libraryRust patterns token-metadataData structures to associate arbitrary metadata with [`proc_macro2`] tokens.54MITDevelopment tools::Procedural macro helpersParsing tools hamonA zero-cost, type-level static decorator and pipeline builder.54MITData structuresDevelopment tools oql-macroProc-macro implementation for the `oql` crate; end users should depend on `oql` instead54MITDevelopment tools::Procedural macro helpersRust patterns slate-reactiveReactive primitives (signals, memos, effects) for the slate-framework UI framework54MIT OR Apache-2.0GUIRust patterns armillaryA host-neutral actor-kernel runtime: a !Send host-kernel boundary, a Send actor harness (thread-per-actor or pooled), generation…54MIT OR Apache-2.0ConcurrencyRust patterns poprako-orchestra-extraPractical extensions for the poprako-orchestra Rust ecosystem53MITAsynchronousRust patterns santh-errorActionable error primitives - stable error codes, fix hints, and built-in secret redaction53MIT OR Apache-2.0Development toolsRust patterns bevy_track_assetPropagate asset changes to dependent components and resources in Bevy.52MIT OR Apache-2.0Game developmentRust patterns minimerA simple error manager52MITRust patterns bumprefExplicit .bump() method for Arc and Rc that signals cheap refcount cloning52MITNo standard libraryRust patterns origin-langEvery value is origin, at a boundary, or contents. The compiler knows which.52MITNo standard libraryRust patterns pool-modGeneric object and connection pooling. Async-safe with min/max sizing, idle timeouts, max-lifetime enforcement,…52Apache-2.0 OR MITAsynchronousRust patterns dyn_shimGenerate dyn-compatible shim traits52MITRust patterns refiningRefinement types.52MITNo standard libraryNo standard library::No dynamic allocation alloc-onceAllocate several named, different-typed values in one bump allocation, bound as standalone &mut variables.51MIT OR Apache-2.0Memory managementRust patterns trait-morphA lightweight procedural macro to transform `async fn` in traits into `-> impl Future` with explicit bounds.51MIT OR Apache-2.0AsynchronousNo standard library causlane-contractsRegistry and compiled bundle contracts for causlane.51MIT OR Apache-2.0Development toolsRust patterns round_aboutRust fast debugging for Result types and easy conversions between Result and Option50MIT OR Apache-2.0Development tools::DebuggingRust patterns struct-mapperDerive macro to auto-generate From<Source> for Target by mapping struct fields — zero boilerplate struct conversion49MIT OR Apache-2.0Development tools::Procedural macro helpersRust patterns runi-coreRuni core library — foundation types plus a feature-gated bundle that re-exports runi-log and runi-cli48Apache-2.0Rust patterns application-toys-macrosProcedural macros for application-toys — makes async trait methods dyn-compatible via #[asynchronous]48non-standardAsynchronousDevelopment tools::Procedural macro helpers nx-errorA structured error-handling framework for WASI and Spin components with hierarchical reporting48MIT OR Apache-2.0Development toolsRust patterns fmodel-decider-rustPure, type-safe, event-driven decision engine with progressive type refinement for event-sourced and state-stored systems48Apache-2.0Data structuresRust patterns merge-structsMake your structs mergeable48MIT OR Apache-2.0Rust patterns MagicStateMachinesErgonomic typestate wrappers for compiler-enforced state machines with separable contracts47MIT OR Apache-2.0AsynchronousConcurrency taskflow-macrosProcedural macros for the taskflow DAG framework47MITRust patterns into-parts-deriveDerive macro for the IntoParts trait.47MITRust patterns reaktivA standalone, flexible fine-grained reactivity library46MIT OR Apache-2.0Data structuresRust patterns repr_castA procedural macro that enhances fieldless enums with proper conversions between enum variants and their integer representation…46MIT OR Apache-2.0No standard libraryRust patterns crumbs_macroAttribute macros for the crumbs error-context crate.46MITRust patterns tola-capsCapability system enabling type-level state tracking, trait detection, and stable specialization.46MITNo standard libraryRust patterns adapters-macrosProcedural macros for the adapters library — derive Schema, Serialize, Deserialize, Validate, and Adapter.46MITDevelopment toolsRust patterns implicitlyExtension traits for wrapping values into Option, Result, and Box using method syntax46MITRust patterns boundary-enforceBuild-time enforcement of the boundary discipline: a total tier partition, the strict boundary grammar, the interior inward rule,…46MIT OR Apache-2.0Development tools::Build UtilsRust patterns medoo_deriveProc-macros para medoo_rs: #[derive(FromRow)]46Apache-2.0Database interfacesRust patterns flense-deriveDerive macros for flense `Adapter`/`Field` implementations45MIT OR Apache-2.0Data structuresRust patterns affix-macroMacros for affixing tokens to groups of other tokens.45UnlicenseDevelopment toolsNo standard library monadic-traitsFunctor, Applicative and monad traits + nightly Try/? support44MITAlgorithmsRust patterns thanos-sort🗿 Perfectly balanced sorting - repeatedly snaps away half the elements until one survivor remains44MITAlgorithmsRust patterns auto_invalidateAutomatic cache invalidation on mutable access using a guard pattern43MIT OR Apache-2.0CachingRust patterns rust-i18n-deriveA Rust derive macro for internationalization (i18n) support.43MITNo standard libraryRust patterns fastcatFast string concatenation, with const-str support built in.43MIT OR Apache-2.0No standard libraryRust patterns ready-active-safeLifecycle engine for externally driven systems43Apache-2.0No standard libraryRust patterns slotpollerBounded, lock-free futures collection. Faster than FuturesUnordered and other crates.43Apache-2.0Rust patterns eventideA pragmatic Rust toolkit for Domain-Driven Design with event sourcing and CQRS. Umbrella crate re-exporting `eventide-domain`,…43MIT OR Apache-2.0AsynchronousData structures tiny-pubsubIn-process publish/subscribe message bus with hierarchical topics and deferred or synchronous delivery.43MITData structuresRust patterns pulsessA robust and flexible background job processing library for Rust.42MITAsynchronousConcurrency pilatus-axum-rtRuntime for the Pilatus Axum web integration42MPL-2.0AsynchronousRust patterns pilatus-emulation-cameraCamera emulation for the Pilatus framework42MPL-2.0AsynchronousRust patterns doxidizeFearlessly document function parameters with rustdoc42MITDevelopment toolsRust patterns errcodeA Rust library for simplified error handling.41MIT/Apache-2.0No standard libraryRust patterns ring-buffer-macroA procedural macro for creating ring buffer (circular buffer) data structures at compile time41MITData structuresDevelopment tools::Procedural macro helpers parametricA crate providing the trait and a derive macro to bridge complex, hierarchical data structures with optimization algorithms that…41MIT OR Apache-2.0MathematicsRust patterns quote-respannedChange the spans of tokens.41UnlicenseDevelopment toolsNo standard library fieldwork-borrowField-level borrow splitting for Rust41MITDevelopment toolsRust patterns staveA compile-time typestate validation macro for type-safe builders.41MITRust patterns zyn-extextensions for common syn types41MITDevelopment tools::Procedural macro helpersNo standard library actioLibrary for long‑running IO bound async tasks that optionally produce a feedback updates, support cancellation, and eventually…41MIT/Apache-2.0AsynchronousRust patterns ratio-internerRatio's value interner library.41MPL-2.0Data structuresRust patterns enumiDeclare an enum for a range of integers41Apache-2.0 OR MITRust patterns oneof_deriveProc macro implementation for the OneOf derive macro41MIT OR Apache-2.0Rust patterns enum-map-lite-deriveDerive macro for enum-map-lite's Enum trait.41MIT OR Apache-2.0Data structuresRust patterns immutability-helperimmutable nested-state updates via a command-spec DSL41MITData structuresRust patterns hetero-cartesianA procedural macro to flatten nested heterogeneous callback-based control flows into a clean cartesian product.40MITRust patterns pilatus-engineering-rtRuntime for Pilatus engineering utilities40MPL-2.0AsynchronousRust patterns tpuf_zerovec_0115Zero-copy vector backed by a byte array39Unicode-3.0CachingData structures deverrOpinionated error handling for developers39non-standardData structuresDevelopment tools error-engineA message catalog + presentation layer on top of thiserror and tracing for consistent error/warning/info rendering.39MIT OR Apache-2.0Development toolsRust patterns boundary-specA module boundary specified precisely enough that its validating tests — and the proof their interior is correct — derive…39MIT OR Apache-2.0Development tools::TestingRust patterns fyrnFyrn design system — core tokens, colour spaces, typography, spacing, and accessibility primitives. Renderer-agnostic foundation…39MIT OR Apache-2.0GUIRust patterns devirtTransparent devirtualization for Rust trait objects via vtable-pointer comparison39MIT OR Apache-2.0No standard libraryRust patterns fudesMy custom SDK designed for building powerful, async-safe applications with ease38MITDevelopment toolsRust patterns safe-rustA safety-oriented Rust crate that ensures your code is safe.38MIT OR Apache-2.0Development toolsRust patterns wrapscreate marker types that wrap other, inner, types - with trait impls matching PhantomData38MPL-2.0No standard library::No dynamic allocationRust patterns affine-catCategory theory native to Rust's affine, monoidal reality: lawful duplication, graded functors, box-free applicatives,…38MPL-2.0Data structuresNo standard library injectionA lightweight dependency injection container for Rust applications38MITDevelopment toolsRust patterns no-linkintentionally break any linking (linking stage)38BSD-2-Clause OR Apache-2.0 OR MITDevelopment toolsRust patterns throttle-debounceThrottle and debounce callbacks for high-frequency events like scroll, resize, and input38MITAsynchronousConcurrency pymetaPowerful Python-based metaprogramming for Rust38MIT OR Apache-2.0Development tools::Build UtilsDevelopment tools::Procedural macro helpers suunta-contractThe isolated core contract for Suunta: sans-I/O convergence planning.38MIT OR Apache-2.0Rust patterns custom-displayA trait for implementing custom formatting logic for types37MPL-2.0Development toolsRust patterns system-timerasync timers built on SystemTime37MIT OR Apache-2.0AsynchronousDate and time obligeBounded and fixed-length data structures and primitives37AGPL-3.0-or-laterData structuresRust patterns recallableTraits (`Recallable`, `Recall`, `TryRecall`) and macros for defining Memento pattern types and their state restoration behaviors.37MIT OR Apache-2.0Data structuresRust patterns lettre-catEmail sending built on comp-cat-rs: composable, resource-safe, lazy effects over lettre37MITEmailRust patterns wbspatialstatsUnified spatial statistics library: kriging, spatial autocorrelation, spatial regression, point process analysis37MIT OR Apache-2.0AlgorithmsRust patterns pg-query-mapperA high-performance zero-overhead procedural macro mapping tokio-postgres Rows using pre-computed column indices37MITDatabase interfacesDevelopment tools::Procedural macro helpers shaahid-contractThe isolated core contract for Shaahid: sans-I/O idempotency adjudication.37MIT OR Apache-2.0Rust patterns toobadA simple, intuitive error handling library36MIT OR Apache-2.0Rust patterns traced_macroProcedural macro support for traced_error36MIT OR Apache-2.0Development tools::DebuggingRust patterns traced_errorTyped errors with automatic trace frames and structured context for Rust error propagation36MIT OR Apache-2.0Development tools::DebuggingRust patterns sombrax-actors-macrosDerive macros (Accessor, Consumer, Producer, MultiConsumer) for the sombrax-actors framework.36MIT OR Apache-2.0AsynchronousConcurrency piying_actorsUtility actors for piying36MIT OR Apache-2.0AsynchronousConcurrency essmextremely simple state machine36MIT OR Apache-2.0Embedded developmentNo standard library harness-embedLocal embedding and vector search for the Harness SDK36MIT OR Apache-2.0Rust patterns addonA collection of brand-new data structures and types extending the Rust standard library.35MIT OR Apache-2.0Data structuresRust patterns komadori-rayonMulti-reduction library. Provides a composable, declarative way to reduce in parallel in rayon's style35MIT OR Apache-2.0AlgorithmsConcurrency hexkitLightweight boundary traits for hexagonal architecture in Rust35MITDevelopment toolsRust patterns rzlib-errorSerializable, location-tracing error types (ErrorInfo) with not-found-aware results and trace breadcrumbs.35MITRust patterns causlane-replayReplay verifier for causlane protocol traces.35MIT OR Apache-2.0Development toolsRust patterns alia-redlineCross the performance line. Won't compile. Compile-time performance guarantees for Rust.35Apache-2.0Development toolsRust patterns rust-errkitIdiomatic Rust error handling kit34MITRust patterns opaque-enum-macrosProc-macro implementation crate for opaque-enum34MIT OR Apache-2.0Development tools::Procedural macro helpersRust patterns erraZero-dependency, type-preserving error annotation for Result34MIT OR Apache-2.0Development tools::DebuggingNo standard library cmpordermacros for prioritized Ord/PartialOrd34MITRust patterns mango-query-rsA CouchDB Mango query builder, compiler for DynamoDB/PostgreSQL, and in-memory filter in Rust34Apache-2.0Database interfacesParser implementations finitomataFinite state machines with rich lifecycle callbacks, persistence, and supervision34MIT OR Apache-2.0AsynchronousConcurrency cisternA high-level, asynchronous storage abstraction layer built for AI-driven applications, LLM orchestrators, and local agents.34MITDevelopment toolsRust patterns trustgrant-errorError types for the TrustGrant delegation protocol34MIT OR Apache-2.0AuthenticationCryptography tokenless-coreShared core types for tokenless33Apache-2.0Development toolsRust patterns g-errStructured error type33MITData structuresRust patterns evidence-chainBuilder for explainable evidence chains — link observations to decisions with quantitative thresholds and pass/fail tracking33MITData structuresRust patterns trustgrant-domainCore domain types for the TrustGrant protocol (authority IDs, selector kinds, principal IDs, operation names)33MIT OR Apache-2.0AuthenticationCryptography enum-pathDerive FromStr and Display impls for enums that follow a hierarchical path-like serialization scheme32MITNo standard libraryParser implementations enum-treeDerives for hierarchical enums: const variant enumeration, From conversions, and ancestor wrapping32MITNo standard libraryRust patterns xiaoyong-channelsCollection of channel primitives for sync and async contexts (both Sync and !Sync)32MIT OR Apache-2.0AsynchronousData structures oneofEnum variant projection — access one variant at a time32MIT OR Apache-2.0No standard libraryRust patterns suuntaCurated entrypoint for Suunta: a thin, sans-I/O convergence-planning core you compose.32MIT OR Apache-2.0Rust patterns shaahidCurated entrypoint for Shaahid: a thin, sans-I/O idempotency-adjudication core you compose.32MIT OR Apache-2.0Rust patterns pipeline-toolkitA small toolkit for building linear, async processing pipelines out of independently testable steps that communicate through a…31MIT OR Apache-2.0AsynchronousRust patterns cutUtilities.31GPL-3.0-onlyNo standard libraryNo standard library::No dynamic allocation trustgrant-documentTrustGrant document parsing, validation, normalization, and JSON schema types31MIT OR Apache-2.0AuthenticationCryptography eulogyUserspace async drop for Rust30Apache-2.0AsynchronousRust patterns typeswitchA powerful, Go-inspired macro for clean and declarative runtime type switching on dyn Any trait objects.30MIT OR Apache-2.0Development tools::Procedural macro helpersRust patterns reify-reflectUnified reification and reflection ecosystem for Rust30MIT OR Apache-2.0Data structuresRust patterns deref-once-lockA std::sync::OnceLock wrapper that dereferences to its initialized value.30MIT OR Apache-2.0ConcurrencyRust patterns route67Typed, composable route definitions30MIT OR Apache-2.0Parser implementationsRust patterns brdd-rustBusiness Rule Driven Design (BRDD) core components for Rust.30MITDevelopment toolsRust patterns default_fieldPer-field default values for Rust structs — generate new() with defaults for selected fields30MIT OR Apache-2.0No standard libraryRust patterns harness-memoryThree-layer memory system for the Harness SDK30MIT OR Apache-2.0Rust patterns xopsymlA high-performance, structural pattern-matching DSL for YAML. Perform declarative diagnostics and surgical in-place updates with…29MIT OR Apache-2.0Data structuresEncoding assert-size-deriveCompile time type size assertion attribute macro29MITDevelopment toolsRust patterns prefix-stmtsMacro to prefix several statements with the given tokens.29UnlicenseDevelopment toolsNo standard library xiaoyong-notifyCollection of notification primitives for async contexts (both Sync and !Sync)29MIT OR Apache-2.0AsynchronousData structures pipx-macrosProcedural macros for reducing boilerplate when implementing pipelines with pipx.29MITAsynchronousData structures trustgrant-discoveryAuthority discovery document parsing and signer binding resolution29MIT OR Apache-2.0AuthenticationCryptography loso-injectA compile-time dependency injection framework for Rust with zero runtime overhead28MITDevelopment toolsRust patterns hgmReproduce the Haskell syntax sugar28MITDevelopment toolsRust patterns evidenceType-level tags for cryptographic primitives28MIT OR Apache-2.0CryptographyNo standard library cast-stdlibExperimental: A curated library of reusable architectural concepts expressed in cast vocabulary. Downstream projects pull this in…28MITDevelopment toolsRust patterns harness-healSelf-healing engine for the Harness SDK28MIT OR Apache-2.0Rust patterns trustgrant-revocationRevocation state management and proof verification for the TrustGrant protocol28MIT OR Apache-2.0AuthenticationCryptography effect-rsA high-performance, strictly-typed, functional effect system for Rust.27MITAsynchronousConcurrency config_tomlCreates a structure and instantiate it with values from a chosen toml file or chosen default values.27UnlicenseConfigurationFilesystem rakka-hostingBuilder API for wiring a rakka system together — config, DI, setup hooks.27Apache-2.0ConcurrencyRust patterns trustgrant-portsBackend-agnostic port traits for the TrustGrant protocol (storage, discovery, revocation sources)27MIT OR Apache-2.0AuthenticationCryptography issuesAn error reporting library for Rust26MITDevelopment toolsRust patterns causlane-codegenGenerated formal artifacts for causlane compiled bundles.26MIT OR Apache-2.0Development toolsRust patterns pipxComposable pipelines for Rust with synchronous and asynchronous execution, middleware-style processing, and predictable data flow.26MITAsynchronousData structures causlane-formalFormal-toolchain readiness checks (formal doctor) for causlane.26MIT OR Apache-2.0Development toolsRust patterns drop-handleA handle that will abort a Tokio task when dropped.25MIT OR Apache-2.0AsynchronousData structures ptraitA small crate providing traits for pointer-like types, such as references and smart pointers.25MITNo standard libraryNo standard library::No dynamic allocation dispatch-liteLightweight enum dispatch for trait objects — a minimal alternative to dynamic dispatch with zero-cost abstractions25MIT OR Apache-2.0Development tools::Procedural macro helpersRust patterns eepyAsynchronous sleeping (runtime-agnostic)25Apache-2.0 OR BSL-1.0 OR MITRust patterns multiple_choiceA Rust proc-macro library that verifies function results through multiple executions25MITDevelopment toolsRust patterns dumpitCustomizable `core::fmt::Debug` derive macro with field-level formatting options.25MIT OR Apache-2.0Development tools::DebuggingRust patterns causlane-runtimeRuntime composition shell and adapters for causlane.25MIT OR Apache-2.0Development toolsRust patterns prudent-macros-enforceprudent-rs internal. Don't use directly/on its own. Instead, see and use prudent.25BSD-2-Clause OR Apache-2.0 OR MITDevelopment toolsNo standard library prudent-macros-lintprudent-rs internal. Don't use directly/on its own. Instead, see and use prudent.25BSD-2-Clause OR Apache-2.0 OR MITDevelopment toolsRust patterns monarch_coreCore functionality for the Monarch library24MITRust patterns librankA Rust library for adding ranking information to an iterator.24MITAlgorithmsRust patterns store_by_enumType-safe data stores addressed and accessed using enums (in any order).24MIT OR Apache-2.0Data structuresRust patterns trackerrError tracker library with location capture and context24MITDevelopment toolsRust patterns trustgrant-ownershipOwnership authority transition verification for the TrustGrant protocol24MIT OR Apache-2.0AuthenticationCryptography default_newA DefaultNew derive to generate a Default impl that just calls Self::new().23MIT OR Apache-2.0Development toolsRust patterns make-send-syncUnsafely make any type Send and Sync23UnlicenseNo standard libraryRust patterns bastion-toolkit🏰 Bastion Security Toolkit - Industrial Grade Protection for Vibe Coders23MITDevelopment toolsRust patterns strjoinHigh-performance zero-allocation string join extension for Rust iterators / 针对 Rust 迭代器的高性能零临时分配字符串拼接扩展23MulanPSL-2.0AlgorithmsData structures i18n_extra-rizzen-yazstonThe `i18n_extra` crate of the Internationalisation project.22BSD-3-ClauseInternationalization (i18n)Localization (L10n) known-types-gravatarWell-known types for Gravatar APIs.22UnlicenseAPI bindingsConfiguration