Categories / Libraries

Macro

Repos

53

Stars

11,639

Last 30 days

+0

cute

mattgathu

Macro for Python-esque comprehensions in Rust

Created Jul 2017

Total346
30 days +0
elastio

Next-gen compile-time-checked builder generator, named function's arguments, and more!

Created Jun 2024

asynchronous builder builder-pattern builders constructor
Total2,147
30 days +0
StardustDL

Language Integrated Query in Rust.

Created Feb 2019

rust linq linq-methods iterator iterator-functions
Total142
30 days +0

More

dtolnay

Indented document literals for Rust

Created Mar 2016

rust plugin
Total794
30 days +0
nrc

derive simple constructor functions for Rust structs

Created Oct 2016

Total575
30 days +0
snowfoxsh

Nestify offers a macro to simplify and beautify nested struct definitions in Rust, enabling cleaner, more readable code structures with less verbosity. It's especially valuable for handling API responses

Created Sep 2023

Total348
30 days +0
tailhook

A rust-macro which makes errors easy to write

Created Sep 2015

rust macro error reporting conversion
Total340
30 days +0
hobofan

Delegation of trait implementations via procedural macros

Created Nov 2019

Total290
30 days +0
ozgunozerk

Macros for implementing Type-State-Pattern on your structs and methods

Created Sep 2024

Total271
30 days +0
nvzqz

A Rust macro to determine if a type implements a logical trait expression

Created Dec 2019

Total267
30 days +0
ct-austin

Inline expression interpolation for Rust.

Created Apr 2019

rust rust-crate proc-macro sugar macro
Total200
30 days +0
dtolnay

Macro to repeat sequentially indexed copies of a fragment of code

Created Aug 2018

Total168
30 days +0
lambda-fairy

Macro for writing nested `if let` expressions

Created Dec 2016

rust macro
Total167
30 days +0
magiclen

This crate offers procedural macros designed to facilitate the swift implementation of Rust's built-in traits.

Created Jul 2019

rust
Total166
30 days +0
paholg

A Rust macro to make enums with a subset of values of the parent

Created Feb 2023

Total140
30 days +0
greyblake

Generate Rust enum variants without associated data

Created Aug 2023

enum macros rust rustlang trait
Total125
30 days +0
chris-morgan

MOPA: My Own Personal Any. A macro to implement all the `Any` methods on your own trait.

Created Jan 2015

rust
Total118
30 days +0
bluejekyll

Macros for deriving as functions to access Enums as their inner components

Created Dec 2018

Total107
30 days +0
ModProg

Attribute proc-macro to simplify deriving standard and other traits with custom generic type bounds.

Created Oct 2021

rust macros derive
Total98
30 days +0
AS1100K

Macros for all your token pasting needs. Successor of paste

Created Jan 2025

development-tools no-std paste rust
Total96
30 days +0
droundy

Two macros for taking array references in rust.

Created Aug 2015

Total91
30 days +0
buttercrab

zero runtime cost default arguments in rust

Created Aug 2021

rust rust-lang macro rust-macro default-arguments
Total89
30 days +0
taiki-e

A lightweight attribute macro for easily writing extension trait pattern.

Created Feb 2019

rust proc-macro no-std
Total88
30 days +0
parasyte

Obsessively tiny error derive macro

Created Apr 2023

Total86
30 days +0
tkaitchuck

Macro to generate random constants in Rust https://xkcd.com/221/

Created Mar 2019

rust constants macro
Total82
30 days +0
GrayJack

Syntatic sugar Rust macros

Created Jun 2019

rust-lang rust rust-crate macros
Total79
30 days +0
est31

Postfix macros on stable Rust, today.

Created Oct 2020

Total76
30 days +0
biblius

Procedural macros for data validation/modification

Created Nov 2022

rust validation
Total74
30 days +0
kas-gui

Helper macros: autoimpl, impl_scope

Created Mar 2022

Total69
30 days +0
andersk

Macro to generate num::FromPrimitive instances for enum that works in Rust 1.0

Created Apr 2015

Total67
30 days +0
rzvxa

☀️|>⛅|>☔

Created Jun 2024

macros pipe pipeline rust rust-macro
Total66
30 days +0
jmg-duarte

Macro for sealing traits and structures

Created Dec 2020

rust-patterns rust future-proofing
Total63
30 days +0
zeonzip

Ansic is a modern, efficient and compile time ansi macro and utilities.

Created Jun 2025

Total57
30 days +0
Houtamelo

Procedural macros to facilitate enum usage, such as when delegating implementations and/or generating variant types.

Created Apr 2025

Total57
30 days +0
loliGothicK

Flexible deriving macro for new-type pattern.

Created Mar 2023

deriving macros rust rust-crate
Total55
30 days +0
steadylearner

Remove code duplication from Struct and Enum with functional macros.

Created May 2020

macros reuse-fields rust
Total52
30 days +0
primait

Rust derive macro for redacting sensitive data in std::fmt::Debug

Created Aug 2022

data-mask data-masking data-redaction pii privacy
Total51
30 days +0
m-ou-se

Rust macro to specialize on the type of an expression.

Created Jan 2020

Total50
30 days +0
krdln

Alternative syntax for printing macros in Rust

Created Nov 2016

Total50
30 days +0
dtolnay

Macros for all your token pasting needs

Created Nov 2018 Archived

pound-pound
Total1,089
30 days +0
rust-lang

A if/elif-like macro for Rust #[cfg] statements

Created Jul 2015 Archived

Total647
30 days +0
jpernst

Rust macro to generate self-referential structs

Created Nov 2016 Archived

Total213
30 days +0
dtolnay

Procedural macros in expression position

Created Dec 2016 Archived

proc-macro hack rust
Total205
30 days +0
aacebo

A procedural macro development framework designed to simplify and add structure to rust macro development

Created Mar 2026 Archived

Total198
30 days +0
rustype

Proc-macro typestate DSL for Rust

Created Nov 2020 Archived

typestate macro dsl state-machine rust
Total154
30 days +0
dtolnay

Concatenate identifiers in a macro invocation

Created Apr 2018 Archived

Total96
30 days +0