#proc-macro

  1. syn

    Parser for Rust source code

    v2.0.106 53.1M #proc-macro #syntax-tree #syntax-tree-node #macro-input #macro-parser #parse-stream #token-parser #error-handling #source-file #macro-derive
  2. quote

    Quasi-quoting macro quote!(...)

    v1.0.40 36.4M #proc-macro #quasi-quoting #syn
  3. proc-macro-crate

    Replacement for crate (macro_rules keyword) in proc-macros

    v3.4.0 11.9M #proc-macro #macro-rules #crate
  4. strum

    macros for working with enums and strings

    v0.27.2 14.9M #enums-string #proc-macro #macro-string #string #enums #string-macro
  5. proc-macro2

    A substitute implementation of the compiler’s proc_macro API to decouple token-based libraries from the procedural macro use case

    v1.0.101 37.2M #proc-macro #syn #macro
  6. proc-macro-error2

    Almost drop-in replacement to panics in proc-macros

    v2.0.1 4.4M #proc-macro #error-macro #proc-macro-error
  7. litrs

    Parse and inspect Rust literals (i.e. tokens in the Rust programming language representing fixed values). Particularly useful for proc macros, but can also be used outside of a proc-macro context.

    v0.5.1 3.3M #proc-macro #parser #type #macro-literals
  8. macrotest

    Test harness for macro expansion

    v1.2.0 31K #macro-expansion #proc-macro #test-harness #testing-macro #declarative-macro #cargo-expand
  9. proc-macro2-diagnostics

    Diagnostics for proc-macro2

    v0.10.1 3.7M #proc-macro #nightly #diagnostics #macro2 #stable #emit
  10. const-str

    compile-time string operations

    v0.6.4 430K #compile-time-string #proc-macro #string #const
  11. serde_tokenstream

    A serde deserializer for proc_macro::TokenStreams

    v0.2.2 1.0M #proc-macro #proc-macro-token-stream #serde #token-stream
  12. derive-where

    Deriving with custom trait bounds

    v1.6.0 1.8M #macro-derive #traits #proc-macro #deriving #zeroize #debugging #partial-eq #discriminant
  13. expander

    Expands proc macro output to a file, to enable easier debugging

    v2.2.1 181K #proc-macro #debugging #output-file #generator #build #dry #macro-expansion #proc-macro-token-stream #proc-macro-attributes
  14. typify

    JSON schema to rust type code generator

    v0.4.3 927K #json-schema #proc-macro #api-bindings #schema-json #schema
  15. venial

    A very small syn

    v0.6.1 20K #proc-macro #syn #parser #proc-macro-parser #small
  16. auto_impl

    Automatically implement traits for common smart pointers and closures

    v1.3.0 1.8M #traits #closures #proc-macro #impl
  17. derive_utils

    A procedural macro helper for easily writing derive macros for enums

    v0.15.0 688K #proc-macro #macro-derive #enums
  18. virtue

    A sinless derive macro helper

    v0.0.18 1.4M #proc-macro #macro-derive #macro-helpers #derive-input #type-system #respect
  19. proc-macro-warning

    Emit warnings from inside proc macros

    v1.84.1 203K #proc-macro #warnings #emit #builder #formatting
  20. memoize

    Attribute macro for auto-memoizing functions with somewhat-simple signatures

    v0.5.1 34K #memoization #cache #proc-macro
  21. safe-quote

    Quasi-quoting macro quote!(...)

    v1.0.40 53K #proc-macro #syn #macro
  22. bitfield-struct

    Struct-like procedural macro for bitfields

    v0.11.0 391K #proc-macro #bit-field #bit
  23. hyperlight-component-util

    Shared implementation for the procedural macros that generate Hyperlight host and guest bindings from component types

    v0.9.0 2.6K #micro-vm #hyperlight #guest-host #host-guest #proc-macro #low-overhead #embedded-applications #untrusted #sandbox #guest-and-host
  24. rustc-literal-escaper

    code to unescape string literals

    v0.0.5 808K #string-literal #rustc-lexer #proc-macro #byte #literals
  25. macro_tools

    Tools for writing procedural macroses

    v0.68.0 2.0K #proc-macro #builder-pattern
  26. duplicate

    macros for duplication of code with variable substitution

    v2.0.0 601K #proc-macro #duplicates #substitution #syntax #variables-substitution #function-like
  27. unsynn

    (Proc-macro) parsing made easy

    v0.1.1 10K #proc-macro #proc-macro-parser #parser
  28. hard-xml

    Strong typed xml, based on xmlparser

    v1.41.0 105K #xml-parser #xml #proc-macro #derive
  29. manyhow

    proc macro error handling à la anyhow x proc-macro-error

    v0.11.4 240K #proc-macro #error-macro #error-handling
  30. macro_magic

    Allows the exporting and importing of the tokens of items across module, file, and crate boundaries

    v0.6.0 406K #proc-macro #magic-macro #magic
  31. cxx-gen

    C++ code generator for integrating cxx crate into higher level tools

    v0.7.184 16K #codegen #cpp #proc-macro #ffi
  32. enum-as-inner

    A proc-macro for deriving inner field accessor functions on enums

    v0.6.1 3.6M #proc-macro #inner #accessor #deriving #field-access #unnamed-fields #macro-for-deriving #named-fields
  33. derive-deftly

    An ergonomic way to write derive() macros

    v1.2.0 49K #macro-derive #documentation #replace #template-engine #proc-macro #data-structures #macro-system #macro-expansion #proc-macro-system #macro-rules
  34. safe-proc-macro2

    A substitute implementation of the compiler’s proc_macro API to decouple token-based libraries from the procedural macro use case

    v1.0.95 47K #proc-macro #macro-helpers #syn
  35. mem_dbg

    Traits and associated procedural macros to display recursively the layout and memory usage of a value

    v0.3.0 7.6K #memory-layout #proc-macro #allocation
  36. aquamarine

    A mermaid.js integration for rustdoc

    v0.6.0 457K #mermaid-diagram #documentation #proc-macro #diagram #mermaid #rustdoc
  37. genco

    A whitespace-aware quasiquoter for beautiful code generation

    v0.18.1 63K #codegen #proc-macro #template
  38. git-testament

    Record git working tree status when compiling your crate

    v0.2.6 10K #git-tree #git-commit #proc-macro #record #testament #git-status #dirty
  39. reflect

    The "but I thought Rust doesn't have reflection?" memorial brand new way of defining procedural macros

    v0.0.15 400 #proc-macro #compile-time-reflection #reflection-api #lifetime-bounds #compile-time-macro #thought #macro-derive #phantom #proof-of-concept #brand
  40. deluxe

    Procedural macro attribute parser

    v0.5.0 21K #proc-macro #macro-derive #macro-parser #parse-attributes #extract-attributes #macro-attributes
  41. fixed-map

    A fixed map where storage layout is calculated by a procedural macro

    v0.9.5 430 #proc-macro #hash-map #container
  42. maybe-async

    A procedure macro to unify SYNC and ASYNC implementation

    v0.2.10 1.7M #proc-macro #future #maybe
  43. macro-string

    Eager evaluation of macros like concat! and env!

    v0.1.4 489K #concat #env #serde-json #evaluation #string-macro #stringify #proc-macro #macro-input
  44. test-strategy

    Procedural macro to easily write higher-order strategies in proptest

    v0.4.3 114K #proc-macro #proptest #testing-macro
  45. dyn-clonable

    Attribute wrapper for dyn-clone

    v0.9.2 162K #dyn-clone #attributes #proc-macro #clonable #proc-macro-attributes
  46. tryexpand

    Test harness for macro expansion

    v0.12.0 #macro-expansion #test-macro #test-harness #proc-macro #declarative-macro #cargo-expand #cargo-run #run-tests #test-run #cargo-check
  47. sealed

    Macro for sealing traits and structures

    v0.6.0 1.8M #proc-macro #future-proofing
  48. ascent

    Logic programming in Rust

    v0.8.0 9.7K #logic-programming #datalog #proc-macro #program-analysis
  49. watt

    Runtime for executing Rust procedural macros compiled as WebAssembly

    v0.5.0 #proc-macro #wasm #wasm-engine
  50. strum_macros

    macros for working with enums and strings

    v0.27.2 14.6M #enums-string #proc-macro #string-macro #macro-string #string
  51. validated_struct

    Easily generate nested structures with getters and predicated setters

    v2.2.0 97K #proc-macro #structures
  52. impl-trait-for-tuples

    Attribute macro to implement a trait for tuples

    v0.2.3 1.0M #macro-traits #proc-macro #tuple #traits
  53. p9

    Server implementation of the 9p file system protocol

    v0.3.2 7.2K #filesystem #9p #wire-format #system #protocols #deserialize #proc-macro
  54. quote-use

    Support use in procmacros hygienically

    v0.8.4 752K #proc-macro #hygienically #macro
  55. awint_macro_internals

    Internal macro utilities for the awint system of crates

    v0.18.1 1.1K #macro-utilities #awint #proc-macro #macro-system #fixed-point #awi #debugging
  56. documented

    Derive and attribute macros for accessing your type's documentation at runtime

    v0.9.2 46K #macro-derive #documentation #proc-macro #reflection
  57. template-quote

    A new-fasioned quote! macro implementation with pretty template-engine like syntax

    v0.4.2 650 #proc-macro #quote #syn
  58. devise

    devising derives and other procedural macros

    v0.4.2 1.4M #proc-macro #macro-derive #devising #and #procedural
  59. ambassador

    Trait implementation delegation via procedural macros

    v0.4.2 231K #delegation #traits #macro-traits #delegate #proc-macro
  60. function_name

    macro that expands to the name of the annotated function

    v0.3.0 430K #proc-macro-attributes #proc-macro #name
  61. gc-arena

    safe, incrementally garbage collected arenas

    v0.5.3 1.2K #garbage-collection #arena-allocator #root #incremental #proc-macro #memory-management #branded
  62. allocative

    Inspect rust object tree and output it as flamegraph

    v0.3.4 111K #flame-graph #object #memory-profiler #tree #proc-macro #memory-size
  63. ar_row

    Row-oriented access to Arrow arrays

    v1.2.0 350 #apache-arrow #row-oriented #proc-macro
  64. impl-tools

    Helper macros: autoimpl

    v0.11.2 17K #proc-macro #macro-derive #traits #macro-traits
  65. include_proc_macro

    A convenient macro for working with multiple procedural macros in one crate, and to import them from any arbitrary paths. Reduces boilerplate and repetition, and improves readability.

    v2.0.6 800 #proc-macro #proc-macro-derive #macro-helpers #attribute-macro
  66. derive_setters

    Rust macro to automatically generates setter methods for a struct's fields

    v0.1.8 136K #setter-methods #struct-fields #proc-macro #automatic #generator #builder-pattern
  67. ruast

    A printable & modifiable Rust AST

    v0.0.20 #ast #proc-macro #printable #codegen #modifiable #pretty-print #macro2
  68. syn-mid

    Providing the features between "full" and "derive" of syn

    v0.6.0 185K #syn #proc-macro #macro
  69. proc_macro_roids

    Traits and functions to make writing proc macros more ergonomic

    v0.8.0 11K #proc-macro #proc-macro-token-stream #derive-input
  70. runtime-macros

    Simulate expansion of procedural macros at run time

    v1.1.1 2.9K #proc-macro #testing #code-coverage
  71. clap_derive

    Parse command line argument by defining a struct, derive crate

    v4.5.45 15.3M #proc-macro #macro-derive #derive #cli-clap
  72. maybe-async-cfg

    A procedure macro to unify sync and async implementations depending on the features of your crate

    v0.2.5 33K #maybe-async #proc-macro #future #maybe
  73. cxxbridge-flags

    Compiler configuration of the cxx crate (implementation detail)

    v1.0.184 1.8M #cpp #cpp-bridge #config #cpp-bindings #cpp-interop #build-dependencies #single-source #proc-macro #function-signatures
  74. enum-assoc

    Procedural macro to associate constants with enum variants

    v1.2.4 63K #proc-macro #enum-variants #constant #enums
  75. verus_syn

    Parser for Rust source code

    v0.0.0-2025-08-12-1837 #proc-macro #syntax-tree #syntax-tree-node #syn
  76. int-enum

    A derive macro for conversion between integer and enum types

    v1.2.0 38K #proc-macro #macro-derive #convert #integer-and-enum #repr #ascii #try-from #partial-eq
  77. lexgen

    A fully-featured lexer generator implemented as a proc macro

    v0.16.0 7.1K #lexer #lexer-generator #proc-macro #regex #semantic-action #regex-lexer #loc #dfa
  78. dylo-cli

    Generate dyn-compatible traits with proc macros

    v4.7.0 1.1K #codegen #proc-macro #dynamic #ffi
  79. makepad-micro-proc-macro

    Makepad micro proc macro util lib

    v1.0.0 420 #proc-macro #makepad #ui #utilities #lib #wasm #macro-utilities #makepad-studio #web-ui
  80. neli-proc-macros

    Procedural macros for neli

    v0.2.1 1.3M #proc-macro #neli #netlink #header #documentation
  81. cubecl-reduce

    CubeCL Reduce Algorithms

    v0.6.0 37K #cubecl #algorithm #reduce #multi-platform #web-gpu #language-extension #three #intermediate-representation #proc-macro #autotune
  82. syn_util

    helper APIs for procedural macros

    v0.5.0 17K #proc-macro #syn
  83. loess

    Small proc macro grammar- and parser-generator providing great UX

    v0.2.5 #parser-generator #grammar #proc-macro #parser-dsl #dsl #macro-parser #grammar-parser
  84. clientix

    building HTTP clients and requests declaratively with procedural macros - no need to write complex imperative or functional logic

    v0.1.10 1.6K #http-client #proc-macro #declarative #api #web-programming
  85. futures-macro

    The futures-rs procedural macro implementations

    v0.3.31 13.5M #proc-macro #control-flow #stream #join #zero-cost
  86. proc-macro-utils

    low-level utilities on proc-macro and proc-macro2 types

    v0.10.0 835K #proc-macro #macro-utilities #macro
  87. binfarce

    Extremely minimal parser for ELF, Mach-O, PE and ar

    v0.2.1 196K #elf-parser #pe #ar #pe-parser #mach-o #elf-mach-o #proc-macro
  88. derive-adhoc

    An ergonomic way to write derive() macros

    v0.8.4 2.9K #proc-macro #macro-derive #ad-hoc #documentation #data-structures #data-driven #template-engine
  89. ferment

    Traits for FFI conversions and some helper methods

    v0.2.14 230 #syntax-tree #convert #traits #methods #opaque #morphing #proc-macro #macro-export #opaque-pointers
  90. napi-derive-backend-ohos

    Codegen backend for napi-harmony procedural macro

    v1.1.0 11K #napi #proc-macro #codegen #ast #back-end #harmony-os #macro-codegen
  91. typesafe_builder

    A procedural macro to generate type-safe builder patterns for Rust structs

    v1.6.0 500 #builder-pattern #type-system #type-safe #proc-macro #powered #necessity
  92. fv-template

    Field-value based string templating

    v0.5.1 3.3K #field-value #proc-macro #templating #string
  93. instant-xml

    A more rigorous way to map XML to Rust types

    v0.5.2 230 #xml #data-model #xml-namespaces #proc-macro #map #rigorous #xml-data #quick-xml
  94. napi-derive-backend

    Codegen backend for napi procedural macro

    v2.2.0 751K #napi #proc-macro #nodejs #codegen #ast #javascript #macro-codegen
  95. telety

    Access type information across crates and modules in your proc macros

    v0.3.0 #proc-macro #compile-time-reflection #generator
  96. ra_ap_proc_macro_srv

    Proc-macro server for rust-analyzer

    v0.0.301 2.4K #rust-analyzer #proc-macro #language-server #compiler #github
  97. codama-nodes

    Node specifications and helpers for the Codama standard

    v0.5.1 1.4K #codama #helper #standard #node #idl #root-node #proc-macro
  98. dtrace-parser

    Parse DTrace provider definitions into Rust

    v0.3.0 12K #dtrace-probe #define #provider #convert #arguments #fire #serialization #dust #proc-macro
  99. from

    A procedural macro that generates custom parsing and validation code

    v0.1.4 140 #validation #proc-macro #parser
  100. rewriter

    rewriting files

    v0.2.1 8.4K #rewriting #line-column #content #spans #region #file-content #proc-macro
  101. bevy_auto_plugin

    Procedural attribute macros for Bevy apps that reduce boilerplate by automatically registering components, resources, events, states, and systems in your plugin's build function

    v0.5.0 120 #bevy-plugin #proc-macro #system-resources #macro-attributes #automatic #modes #flat-file #registering #bevy-macro
  102. blanket

    macro to derive blanket implementations for your traits

    v0.4.0 36K #proc-macro-attributes #traits #proc-macro
  103. comlexr

    Dynamically build Command objects with conditional expressions

    v1.4.2 2.5K #build #expression #conditional #dynamically #object #pattern-matching #proc-macro #cmd
  104. cynic-codegen

    Procedural macro code generation for cynic - a code first GraphQL client for Rust

    v3.12.0 84K #graphql-client #proc-macro #graphql-schema #cynic #struct #procedural-generation #macro-generation
  105. safe_math

    Safe arithmetic using a procedural macro. Write normal math expressions with automatic overflow checks. No panics, no boilerplate.

    v2.0.0-beta 700 #math-operations #proc-macro #math-expression #overflow #check #basic-arithmetic-operations
  106. swc_typescript

    Proc macro for performance trace of swc

    v20.0.0 20K #swc #typescript-compiler #babel #swc-compiler #node #proc-macro #javascript
  107. cargo-manifest-proc-macros

    Find the syn::Path to your own crate from proc-macros reliably

    v0.4.3 100 #proc-macro #cargo-manifest #proc-macro-parser
  108. gratte

    macros for working with enums and strings; forked from strum

    v1.2.0 550 #proc-macro #enums-string #string #enums #string-macro
  109. num-derive

    Numeric syntax extensions

    v0.4.2 5.2M #numeric-traits #proc-macro #math
  110. async-recursion

    Recursion for async functions

    v1.1.1 3.6M #proc-macro #async #recursion #require
  111. moku

    creating hierarchical state machines (HSM)

    v0.3.0 110 #state-machine #hierarchical #hsm #proc-macro #active #superstate #substates #logging
  112. pmutil

    Utils for proc-macro

    v0.6.1 45K #proc-macro #quote #stable #implementors
  113. teleparse

    v0.1.2 #grammar-parser #ll-parser #proc-macro #lexer #syntax-tree #syntax-tree-parser #tp #macro-attributes #split
  114. frunk_proc_macro_helpers

    Common internal functions for frunk's proc macros

    v0.1.4 188K #proc-macro #frunk #internal
  115. proc-easy

    Macros to make writing proc-macro crates easy

    v0.4.0 2.3K #macro-derive #proc-macro #arguments
  116. tokio-macros

    Tokio's proc macros

    v2.5.0 18.3M #proc-macro #tokio-runtime #async-runtime #networking
  117. salsa-macro-rules

    Declarative macros for the salsa crate

    v0.23.0 75K #macro-rules #salsa #query #computation #system #proc-macro #re-exports #adapton #glimmer #plumbing
  118. test_each_file

    Generates a test for each file in a specified directory

    v0.3.5 8.1K #testing #proc-macro #test
  119. seedframe

    A clean, macro driven Rust library for building LLM apps

    v0.1.2 130 #artificial-intelligence #vector-store #llm #extractor #macro-driven #structured-output #proc-macro #text-embedding #llm-client #function-calling
  120. lockjaw

    Compile time dependency injection framework inspired by dagger

    v0.3.3 650 #dependency-injection #compile-time #framework #dagger #bindings #dependency-graph #cl #proc-macro #user-guide #plugin-system
  121. matched_enums

    A macro that provides the option to bin enum attribute to match-statements. This makes it easier to convert values into enums.

    v1.3.0 120 #proc-macro #match #enums
  122. structstruck

    Nested struct and enum definitions

    v0.5.1 3.8K #nested-struct #proc-macro #struct
  123. proc-macro-tool

    Some common simple tool for proc-macro impl

    v0.8.39 #proc-macro #impl #macro
  124. salsa-macros

    Procedural macros for the salsa crate

    v0.23.0 104K #salsa #proc-macro #query #computation #macro-attributes #adapton #glimmer
  125. enpow

    Generating methods for user defined enums as known from Option<T> or Result<T, E>

    v2.0.3 410 #proc-macro #generator #utility
  126. proc-macro-rules

    Emulate macro-rules pattern matching in procedural macros

    v0.4.0 115K #proc-macro #macro-rules #pattern-matching #emulation #syntax
  127. pistonite-cu

    Battery-included common utils to speed up development of rust tools

    v0.5.2 650 #cu #toml #cargo-toml #up #documentation #proc-macro #self-hosted
  128. double-trait

    A procedural macro to derive a mirror of a trait designed to make it easier to implement test doubles

    v0.2.6 1.4K #double #proc-macro #testing
  129. ansic

    does ansi parsing in a dynamic DSL and at compile time for efficient and zero cost ansi styling

    v0.1.7 900 #proc-macro #ansi
  130. synthez

    Steroids for syn, quote and proc-macro2 crates

    v0.3.1 815K #proc-macro #codegen #macro-derive #syn
  131. rust_writer

    useful for editing a Rust file from Rust code

    v1.0.4 190 #ast #implementors #mutator #editing #proc-macro #meta-programming #visit-mut #test-builder #impl-block #parse-quote
  132. async-generic

    Write code that can be both async and synchronous without duplicating it

    v1.1.2 624K #proc-macro #future #generic
  133. napi_sym

    proc macro for writing N-API symbols

    v0.145.0 3.9K #napi #proc-macro #symbols #deno #sym
  134. penum

    Make enum conform to a given pattern

    v0.1.30 1.6K #proc-macro #shape #enums
  135. typed_grid

    Macro generator for typed grid navigation

    v0.1.12 450 #grid-navigation #finite-state-machine #generator #proc-macro #embedded #enforce
  136. cast_checks

    A procedural macro to check for invalid casts

    v0.1.6 410 #proc-macro #check-for-invalid #cast #expression #debugging
  137. include_tt

    Macros for ultra-flexible injection of compiler trees, literals, or binary data into Rust syntax trees from external sources

    v1.1.0 350 #proc-macro #clucompany #syntax-injection #tt-injection #macro
  138. proc-quote

    A procedural macro implementation of quote!

    v0.4.0 11K #proc-macro #quote #syn
  139. better_comprehension

    collection and iterator comprehensions for Rust

    v3.0.3 #comprehension #proc-macro #list-comprehension
  140. i18n-format

    macro to allow formatting with gettext while keeping xgettext to work

    v0.3.0 4.2K #internationalization #proc-macro #gettext
  141. positional

    author/parse positional files

    v0.4.4 500 #parser #proc-macro #row #serialization #author #type-system
  142. flexml

    Quickly and easily define namespaced XML serialization

    v0.5.3 950 #namespaces #serialization #xml #xml-writer #xml-serialization #xml-node #quick-xml #proc-macro
  143. derive-sql

    Structure the interaction with SQL databases - currently SQLite and MySQL via trait and a procedural macro

    v0.13.0 #sql #database #proc-macro #sqlite #sql-database-interaction #mysql #derive-sqlite
  144. test-each

    Generate tests at compile-time based on file resources

    v0.3.1 2.2K #testing #codegen #proc-macro
  145. bignumbe-rs

    Large, medium-precision numbers

    v0.1.10 #bignum #math-operations #floating-point #binary #proc-macro #low-memory-footprint #improve-performance #bases #64-bit #benchmark
  146. scarb-proc-macro-server-types

    Types for interacting with an RPC server set up by the scarb proc-macro-server command

    v0.3.0 600 #proc-macro #setup #scarb #rpc-server #command #server-command
  147. codama-syn-helpers

    Extension of syn for Codama

    v0.5.2 1.2K #codama #syn #helper #idl #struct #proc-macro
  148. dylo

    Generate dyn-compatible traits with procedural macros

    v1.0.3 390 #codegen #proc-macro #dynamic-library #ffi
  149. doc_for

    📖 Get the documentation comment for structs, enums and unions, in a zero-cost fashion

    v0.1.4 #documentation #proc-macro #doc-comment #zero-cost
  150. mpst-seq

    DEPRECIATED: A library with macro for mpstthree

    v0.1.18 700 #deprecated #proc-macro #mpstthree #github #multi-party
  151. postcompile

    Helper crate for post-compiling Rust code

    v0.3.3 160 #proc-macro #testing #snapshot
  152. cubecl-random

    CubeCL Random Number Generation

    v0.6.0 7.3K #random #cubecl #multi-platform #web-gpu #language-extension #intermediate-representation #proc-macro #scientific-computing #lazy-evaluation #gpgpu
  153. place_macro

    Macros you wish you had while you were writing your non-proc macro

    v1.1.0 150 #macro-expansion #non-proc #place #reverse-order #proc-macro
  154. derive_fuzztest

    proc-macro to enable using the same implementation for fuzz tests and property tests

    v0.1.4 1.4K #property-testing #fuzzing #testing-fuzzing #testing-macro #proc-macro #quickcheck #proptest #fuzztest
  155. deno-bindgen2-cli

    A CLI tool for parsing rust source code and generating a close TypeScript equivalent. works with the deno_bindgen2 crate

    v1.0.2 140 #deno #bindings-generator #proc-macro #source #deno-bindgen #cli-parser #typescript-bindings
  156. mcp-spec

    Core types for Model Context Protocol

    v0.1.0 5.8K #model-context-protocol #information #async-runtime #tokio #proc-macro
  157. sylvia-runtime-macros

    Simulate expansion of procedural macros at run time

    v0.7.0 #proc-macro #code-coverage #testing
  158. ferment-sys

    Syntax tree morphing of FFI-compatible stuff

    v0.2.14 420 #syntax-tree #proc-macro #macro-export #opaque-pointers #morphing #ffi-compatible #macro-traits #cbindgen #btree-map
  159. trait_mux

    Proc macro library for generating enums that can multiplex different trait objects

    v0.3.2 #proc-macro #traits #multiplex
  160. recuerdame

    Pre-calculate functions at compile-time rather than run-time

    v0.4.0 #lookup-tables #compile-time #memoization #assert-eq #points #dsp #const-fn #proc-macro
  161. storeit_core

    Core traits, errors, and abstractions for the storeit repository framework

    v0.1.0 #repository #proc-macro #postgresql #mysql #traits #sql-builder #testing-container #workspace-members #libsql #database-agnostic
  162. strong-xml

    Strong typed xml, based on xmlparser

    v0.6.3 1.7K #xml-parser #xml #proc-macro #derive
  163. python-mod

    A macro library for including a Python module in Rust. At this point, very imcomplete.

    v1.0.0 110 #python #macro #proc-macro #python-ast #points #single-file #seamless-integration #py #python-integration
  164. bevy_derive

    derive implementations for Bevy Engine

    v0.17.0-rc.1 224K #bevy-engine #derive #bevy-macro #macro-derive #proc-macro #game-engine
  165. int-to-c-enum

    TryFromInt - A convenient derive macro for converting an integer to an enum

    v0.1.0 210 #macro-derive #enums #integer #convert #macro-for-converting #proc-macro
  166. format-bytes

    A macro to format bytestrings

    v0.3.0 12K #byte-string #proc-macro #format-byte #format-macro #read
  167. macron

    Comprehensive Rust macros toolkit for everyday development tasks. Includes convenient string formatting (str!), regex pattern matching (re!), streamlined collection creation, and custom derive macros for Display…

    v0.1.9 #proc-macro #declarative-macro #macro-derive
  168. command-rpc

    cli crate and api for replacing rpc

    v0.1.12 550 #clap #command-line-rpc #subcommand #module #comments #rpc-api #proc-macro #rust-cli #going
  169. syn-helpers

    Framework for building derive macros

    v0.5.0 550 #proc-macro #syn #proc-macro-derive
  170. syn-test-suite

    Test suite of the syn crate

    v0.0.0+test 2.9K #proc-macro #syn #parser #source #syntax-tree #macro-derive #syntax-tree-node #source-file #error-handling #user-defined
  171. enum-bitset

    Generate efficient bitsets out of your enum types

    v0.1.2 #bit-set #proc-macro #bitset
  172. functor_derive

    A derive macro to derive a functor for a type

    v0.4.3 1.5K #proc-macro #macro-derive
  173. enum_discriminant

    Procedural macro to add functions on enum types to get discrimnant value from variant or create unit variant from discriminant value

    v1.0.1 #proc-macro #discriminant #ordinal #enums-discriminant #enums
  174. command_attr

    Procedural macros for command creation for the Serenity library

    v0.5.3 120K #proc-macro #command #creation #serenity
  175. surqx

    Query macro for SurrealDB

    v0.1.1 #proc-macro #query #surrealdb
  176. raw_struct

    procedural macro for easily declaring C-style structs that reference local or external memory, based on your memory implementation. It generates appropiate getter methods for easy access.

    v0.2.1 230 #getter #proc-macro #c-style #reference #macro-for-declaring #memory-access #appropiate
  177. efx

    Rust XML templating engine for building egui UIs with procedural macros

    v0.5.0 500 #eframe #proc-macro #egui #templating
  178. rustic-jsonrpc

    JSON-RPC 2.0 server library written in Rust

    v0.1.6 360 #json-rpc-server #proc-macro #methods #service #2-0
  179. enum_ext

    procedural macro that enhances enums with additional methods and conversions

    v0.4.1 #proc-macro #enum-variant #enums-discriminant #discriminant
  180. iderive

    Drop-in replacement for derive that doesn't directly depend on generic bounds

    v1.2.4 500 #proc-macro #derive
  181. derive-finite-automaton

    Procedural macro for generating finite automaton

    v0.3.0 #finite-automata #proc-macro #tokenization
  182. codama-errors

    Errors and result types for Codama

    v0.5.1 1.7K #codama #idl #node #define #error #proc-macro #korok #root-node #tree-structure #overview
  183. proc-utils

    A series of traits, macros, functions, and utilities that make writing and debugging proc macros easier

    v0.1.1 #proc-macro #debugging #syn
  184. reflected

    Something like reflection

    v0.25.0 390 #reflection #proc-macro #experiment #documentation #testing
  185. newer-type

    Support defining newtype wrapper with inheriting trait implementations

    v0.2.0 #newtype #proc-macro #traits #attribute-macro
  186. clasma

    A procedural macro for partial borrowing

    v1.0.2 850 #proc-macro #partial-borrow #reference #view-types
  187. jni-toolbox

    tools to make writing JNI native functions less tiresome

    v0.2.2 #jni #java #extern #proc-macro #exception
  188. orcxx

    Rust bindings for the official C++ library for Apache ORC

    v0.5.0 #orc #apache-orc #proc-macro
  189. enum_companion

    A procedural macro for generating companion enums for structs

    v0.1.2 #proc-macro #reflection #macro
  190. swc_trace_macro

    Proc macro for performance trace of swc

    v2.0.2 42K #swc #proc-macro #swc-compiler #babel #typescript-compiler #javascript #trace-macro #swc-macros #parser-compiler
  191. derive-ctor

    Adds #[derive(ctor)] which allows for the auto-generation of struct, enum, and union constructors

    v1.0.6 #proc-macro #macro-derive #traits #no-std
  192. heterob

    conversion between bytes/bits and heterogeneous lists (tuples)

    v0.4.0 650 #endian #convert-bytes #list #bit #byte-conversion #compile-time #data-structures #proc-macro #data-conversion
  193. runtime-macros-derive

    Simulate expansion of procedural macros at run time

    v0.8.0 #proc-macro #testing #code-coverage
  194. clone_dyn

    Derive to clone dyn structures

    v0.45.0 1.5K #dyn-clone #proc-macro #general-purpose
  195. wgcore

    abstractions for composable WGSL shaders

    v0.2.2 #wgsl-shader #composable #abstraction-for-composable #gpu #devices #proc-macro #shader-compiler #game-engine
  196. syn-impersonated

    Parser for Rust source code

    v0.1.18 #proc-macro #syntax-tree #syn #syntax-tree-node #macro-input #macro-parser #macro-derive #parse-stream #error-handling #source-file
  197. path_scan

    A lightweight Rust procedural macro for parsing path patterns (URLs, routes) with variable capturing, static binding, and compile-time checks

    v0.0.4 140 #proc-macro #parse-url #pattern #url-pattern #static #macro-for-parsing #macro-parser #pattern-matching
  198. funlog

    A procedural macro for tracing Rust function calls

    v0.2.1 230 #proc-macro #logging-tracing #debugging #tracing-macro #instrumentation #logging-macro
  199. hooq

    macro that inserts a method before ?. (? 前にメソッドを挿入するシンプルなマクロ)

    v0.1.0 #anyhow #eyre #proc-macro #error
  200. opendp_tooling

    Tooling for proc-macros and code generation

    v0.14.1-nightly.20250915.1 1.1K #open-dp #differential-privacy #proc-macro #documentation #python-bindings #data-analysis #statistics #privacy-preserving
  201. cffi

    Safe* C FFI interface generation

    v0.1.7 330 #proc-macro #spell-check #foreign-interface #marshal #marshalling #package-management
  202. json_proc

    proc macro for parsing JSON-like syntax

    v0.5.1 1.6K #proc-macro #json-like #json-parser #syntax #json-macro #macro-for-parsing #macro-parser #serde-json
  203. call2-for-syn

    Apply parser functions to proc-macro2 token streams

    v3.0.4 #proc-macro #syn
  204. cfg_block

    allow using #[cfg(...)] and other macros on blocks

    v0.2.0 51K #proc-macro #cfg #block #const
  205. serde-ordered

    A procedural macro for deserializing ordered arrays into keyed structs using Serde

    v0.3.0 160 #deserialize #proc-macro #serde
  206. struct_iterable

    providing a proc macro to make a struct iterable

    v0.1.1 23K #proc-macro #iterable #struct
  207. pattern-wishcast

    Pattern types emulation for conditional variants using conditional never types

    v0.0.1-pre.3 #pattern #conditional #emulation #enums #unstable #proc-macro #subtyping #expression-evaluator #upcasting
  208. nodyn

    Easy polymorphism with enums

    v0.2.1 130 #delegation #polymorphism #traits #enums #proc-macro
  209. pistonite-pm

    Procedural Macro Common Utils

    v0.1.2 210 #proc-macro #utilities #cu #re-exports #quote #batteries-included #pm
  210. lachs

    automatically creating a lexer based on a given enum

    v0.1.4 380 #lexer #enums #lexer-generator #automatic #regex #proc-macro #string-literal
  211. unwrapped

    The unwrapped crate

    v0.1.1 #github #testing #ab #proc-macro #field #forms #gpui #struct-name
  212. simpl_cache

    caching tools

    v2.4.1-beta 350 #cache #proc-macro #caching
  213. noir_macros_core

    Essential proc-macros and utilities for no_std Rust development

    v1.1.1 #proc-macro #noir #embedded
  214. match-template

    procedural macro that generates repeated match arms by pattern

    v1.0.0 3.9K #template-generator #proc-macro #pattern-match
  215. proc-macro2-fallback

    Only the non-libproc_macro-based codepath of the proc-macro2 crate

    v1.0.66 #proc-macro #compiler #quote #api #syn #unit-testing
  216. yart

    wrapper crate re-exporting the rig_tool macro and shared utilities for rig::tool::Tool

    v0.1.1 #utilities #proc-macro #rig #rig-tool #macro-utilities #json-schema
  217. df-derive

    Procedural derive macro for efficiently converting Rust structs into Polars DataFrames

    v0.1.0 #dataframe #polars-dataframe #polars #proc-macro #finance
  218. easy_proc

    Helper macros for making proc macros

    v0.4.0 2.3K #proc-macro #helper #arguments
  219. kind-openai-schema

    OpenAI schema generation macro public library

    v0.3.3 #openai #schema-generation #json-schema #chat-completion #proc-macro #open-ai-schema #deserialize #repr #macro-generation #serde
  220. otel-instrument

    Instrument macro for opentelemetry

    v0.1.7 750 #open-telemetry #instrument #field #proc-macro #custom-attributes #ret
  221. turul-mcp-derive

    Procedural macros for the MCP framework

    v0.1.1 #json-schema #proc-macro #macro-derive #session-context #mcp-tool #schema-generation #notifications #zero-configuration #schema-validation #framework-integration
  222. elif-macros

    Procedural macros for elif.rs framework

    v0.2.4 290 #framework #web #macro #proc-macro
  223. unit-enum

    A procedural macro for deriving ordinal methods in unit-like enums for Rust

    v1.4.3 #proc-macro #derive #enums
  224. name-index

    accessing struct fields by name at runtime

    v0.2.1 250 #struct-fields #proc-macro
  225. syllogism

    allow for some specialization using stable Rust

    v0.1.3 #specialization #proc-macro #traits
  226. snake_to_camel

    that generates camelCase fields structs from struct with snake_case fields

    v0.1.1 #snake-case #proc-macro #camel
  227. Try searching with DuckDuckGo.

  228. snowfinch

    proc-macro wrapper around tailwindcss

    v0.1.1 #tailwind #tailwind-css #proc-macro
  229. log_args

    procedural macro to log function arguments using the tracing crate

    v0.1.6 450 #logging-tracing #arguments #proc-macro #tracing-macro #logging
  230. rustmax

    A collection of useful crates

    v0.0.4 #proc-macro #serde-json #collection #documentation
  231. sqlx-template

    Template query library for Rust SQLx

    v0.2.1 290 #sqlx #table-name #proc-macro #sqlite #database #query-parameters #builder-pattern #debug-log #database-query #debugging
  232. cio

    two powerful procedural macros (println! and input!) that enhance console I/O operations in Rust, bringing Python-like convenience to Rust’s type-safe environment

    v0.5.1 #proc-macro #ansi-colors #console-input #println #operation #enhance #python-like #input-macro #specifier #matrix-operations
  233. c0nst

    proc-macro for sharing code between const and non-const traits

    v0.2.1 260 #traits #nightly #compatibility #proc-macro #const
  234. immediate_stats

    Game stats that reset every frame, inspired by immediate mode rendering

    v0.1.2 #gamedev #bevy #proc-macro
  235. macro_rules_attr

    Use declarative macros as proc_macro attributes. (#[apply] your macro_rules!)

    v0.1.3 500 #macro-rules #proc-macro-attributes #proc-macro #decorator
  236. deki_proc

    Some proc macro helpers!

    v0.1.4 #proc-macro #rename #functions-and-renames #macro-helpers #helper #course #anywhere #myself #tend
  237. autotrait

    Reduces boilerplate by auto-generating trait definitions from impl blocks for dynamic dispatch

    v0.2.1 210 #dynamic-dispatch #proc-macro #traits #derive
  238. rasset

    Rust Asset Management Library

    v1.0.0 #assets #system #deserialize #serialization #build #proc-macro #sprite
  239. find-crate

    Find the crate name from the current Cargo.toml

    v0.6.3 86K #proc-macro #cargo-toml #macro
  240. script-macro

    Write proc-macros inline with other source code

    v0.1.2 110 #proc-macro #inline #inline-with-source #scripting-language #glob #json-parser #parse-yaml #run-script #end-up #rhai
  241. build-time

    proc-macros to generate build timestamp string literals

    v0.1.3 70K #build-tool #build-timestamp #proc-macro #timestamp
  242. beerec-variants

    Procedural derive macro to generate boilerplate on unit variants enum types

    v0.3.0 140 #proc-macro #macro-derive #boilerplate #rust #enums
  243. fut-ret

    parse the return type generated by async_trait in procedural macro

    v0.3.0 #proc-macro #async-trait #future
  244. howlast

    A procedural macro to easily misure computation times

    v0.1.2 #proc-macro #rust #struct #macro #code-generation
  245. quote_into

    Easily & efficiently generate code by quoting it in a macro

    v0.2.0 4.9K #proc-macro #quote #performance #syn
  246. phyto-fsm

    procedural macro for generating type-safe state machines from PlantUML diagrams

    v0.1.0 110 #state-machine #codegen #plant-uml #proc-macro #fsm
  247. hey_chat_gpt

    A proc-macro to delegate implementation to the ChatGPT API. ChatGPT APIに実装を代行してもらうマクロです。

    v1.2.1 220 #openai #llm #proc-macro #gpt
  248. wrap-match

    A procedural macro to wrap a function in match statement to make error logging super easy

    v1.0.7 #error-logging #proc-macro #error-macro #match-statement #logging-macro