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