#macro-rules

  1. proc-macro-crate

    Replacement for crate (macro_rules keyword) in proc-macros

    v3.5.0 23.8M #proc-macro #macro-rules #crate
  2. macro_rules_attribute

    Use declarative macros in attribute or derive position

    v0.2.2 3.2M #macro-derive #macro-rules #decorator
  3. cpubits

    Compile-time detection heuristics for the optimal word size to use for the target CPU, which in some cases may differ from its address size a.k.a. target_pointer_width. Implemented as macro_rules!

    v0.1.1 773K #detect-target #macro-rules #size #compile-time #heuristics #cryptography
  4. derive-deftly

    An easy way to write derive() macros

    v1.11.1 131K #macro-derive #documentation #proc-macro #template-engine #macro-rules #compile-error
  5. ra_ap_mbe

    Handling of macro_rules macros for rust-analyzer

    v0.0.332 78K #rust-analyzer #language-server #macro-rules #language-server-protocol
  6. salsa-macro-rules

    Declarative macros for the salsa crate

    v0.26.2 218K #macro-rules #salsa #query #computation #system #proc-macro #adapton #glimmer #plumbing #emit
  7. macro_railroad

    generate syntax diagrams for Rust macros

    v0.1.8 800 #diagram #macro-rules #generate #plugin #svg #live-demo #scalable-vector-graphics
  8. proc-macro-rules

    Emulate macro-rules pattern matching in procedural macros

    v0.4.0 336K #macro-rules #proc-macro #emulation #syntax #token
  9. crabtime

    A powerful yet easy-to-use Rust macro that generates code by evaluating inline Rust logic at compile time

    v1.1.4 11K #macro-rules #inline #eval
  10. derive-adhoc

    An ergonomic way to write derive() macros

    v0.8.4 3.9K #macro-derive #ad-hoc #documentation #proc-macro #template-engine #macro-rules
  11. static-dispatch

    Implement a trait for an enum, where all variants implement the trait

    v0.3.0 #enums #enum-variants #traits #static #dispatch #macro-rules
  12. kimberlite-properties

    Antithesis-style ALWAYS/SOMETIMES/NEVER property annotations for DST

    v0.8.0 100 #properties #violation #antithesis-style #annotations #reached #temporal #dst #macro-rules #hold-time #assertions
  13. macro-data

    Utitlies to transfer data between procedural macros

    v0.1.1 #proc-macro #data-transfer #save-data #token #done #macro-rules #macro-derive
  14. defile

    Proc-macro helper to ungroup macro metavariables

    v0.2.1 6.3K #proc-macro-helper #macro-helpers #ungroup #metavariables #metavariable #macro-rules
  15. xccute

    type safe declarative builders for shell commands in rust

    v0.1.1 #shell #builder-for-shell #declarative #signal #pid #macro-rules
  16. utf16_lit

    macro_rules to make utf-16 literals

    v2.0.2 134K #macro-rules #utf-16 #literals
  17. id_effect_macro

    Declarative macros for the effect crate (ctx!, pipe!, …). Procedural effect! is in id_effect_proc_macro — Rust cannot mix both in one proc-macro crate.

    v0.2.0 #id-effect #async-executor #declarative-macro #pipe #proc-macro #mdbook #macro-rules
  18. generics

    macros for parsing generics (with optional where clause) in macro_rules!

    v0.5.3 330 #macro-rules #parser #macro-parser #where
  19. kvstruct

    a macro that generates auto json serialization for any struct instance with field name as key

    v1.0.1 #struct #generator #json #json-like #struct-definition #macro-rules
  20. keetanetwork-utils

    functions and build tools for Keetanetwork

    v0.1.0 #node #pattern #keetanetwork #testing #build-tool #macro-rules #workspace-members #testing-macro
  21. minibox-macros

    Procedural macros for the minibox container runtime

    v0.24.0 #proc-macro #container-runtime #minibox #test-run #run-time #macro-rules #filesystem-path
  22. rules_derive

    fast derive macros using macro_rules

    v0.2.0 100 #macro-derive #macro-rules #proc-macro #syntax #define
  23. generate_test_macro

    A proc macro for writing test suites as methods on a struct, generating a macro_rules! macro to instantiate each test individually

    v0.1.2 #test-macro #generator #macro-rules #testing #proc-macro #test-suite #impl-block #quickcheck
  24. gensym

    Creates unique identifiers for macros using procedural macros

    v0.1.1 53K #unique-identifier #proc-macro #create #macro-rules #uuid
  25. table-macro

    A macro to create a table macro

    v0.1.0 #row #macro-rules #create-table #table-name #input #macro-attributes #macro-input #for-each
  26. procedural-masquerade

    macro_rules for making proc_macro_derive pretending to be proc_macro

    v0.1.7 6.6K #proc-macro #css-parser #macro-rules #level #input #character-encoding #macro-derive
  27. rustifact

    A seamless bridge between a build script and the main crate

    v0.10.1 #build-script #compile-time-data #bridge #proc-macro #generator #binary-artifact #macro-rules
  28. macro_rules_attr

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

    v0.1.3 1.8K #macro-rules #proc-macro-attributes #decorator #proc-macro
  29. monochange_linting

    Authoring helpers and macros for monochange lint suites

    v0.5.1 140 #macro-rules #lint #monochange #helper #authoring
  30. tt-call

    Token tree calling convention

    v1.0.9 328K #token-tree #calling-convention #conventions #replace #predicate #macro-rules #proc-macro #building-block #recursive-descent #grammar
  31. syn-lite

    limited but lite syntax parsing with only macro_rules

    v0.3.0 280 #macro-rules #syn #syntax #limit #parser #syntax-parser
  32. type-flow-macros

    Macros to make pipelines that encode the order of operation execution in the type signature of the pipeline and allow for functions that mutate that order

    v0.2.0 410 #macro-rules #meta-programming #type-system #codegen
  33. Try searching with DuckDuckGo.

  34. rustrails-macros

    Declarative macros for RustRails DSL

    v0.1.2 #dsl #rust-rails #macro #macro-dsl #macro-rules #scaffolds
  35. macros_rule

    Change the verbiage of macro_rules! to macros_rule!

    v0.1.0 #macro-rules #change #macro
  36. commandspec

    Rust macro to build std::process::Command objects with shell syntax. Uses macro_rules! and works on stable.

    v0.12.2 130 #macro-rules #object #build #shell #syntax #invocation
  37. fields-glob

    Derived glob macro with the same name as the structure

    v0.1.3 170 #macro-derive #glob #macro-rules #proc-macro
  38. rukt

    dialect for token-based compile-time scripting

    v0.2.4 220 #token-based #dialect #scripting #macro #compile-time #declarative-macro #macro-rules #token-tree
  39. idioma

    Print Rust'y error messages

    v1.1.0 #error-message #print #stdout #style #exit-error #rust-y #copy-paste #macro-rules #handy #shouldn-t
  40. permafrost

    Write. Macros. Everywhere.

    v0.1.1 #proc-macro #macro-expansion #greet #macro-rules #embedding #concatenation
  41. mosaic-derive

    proc-macro for the mosaic crate

    v1.0.2 #proc-macro #concatenation #transformation #embed #block #macro-rules #greet
  42. ext_format

    A small, yet powerful, Rust crate for string interpolation

    v0.1.1 #string-interpolation #multi-line #macro #white-space #leading #macro-rules
  43. tokio-bin-process

    run your application under a separate process with tokio tracing assertions when integration testing

    v0.7.0 1.0K #integration-tests #tokio-tracing #logging #assertions #events #tokio-test #tokio-integration #bin-path #json-output #macro-rules
  44. typed_builder_rules

    Opinionated and very limited macro_rules reimplementation of the typed_builder macro

    v0.1.0 #macro-rules #typed-builder #builder
  45. generics2

    macros for parsing generics (with optional where clause) in macro_rules! - enhanced fork of generics

    v0.3.3 #macro-rules #generics #parser #macro-parser #where
  46. forint

    A proc macro for invoking macros for each integer type

    v0.1.0 #proc-macro #flags #integer #invocation #u128 #input-macro #i128 #separator #negate #macro-rules
  47. ident-mash

    Mash idents together inside macro_rules!

    v0.1.0 13K #macro-rules #ident #hash #concat
  48. macro-rules-rt

    Transforms text or TokenStream using Rust's macro_rules syntax

    v0.1.1 #macro-rules #token-stream #syntax
  49. thiserror_lite

    Almost drop-in replacement for thiserror, implemented using 100% declarative macros

    v0.1.0 #error-handling #macro-rules #replace #drop-in #compile-times #proc-macro
  50. macaroni

    The missing macro std library for Rust

    v0.1.0 #macro-rules #std #proc-macro #rust
  51. makero

    A macro_rules! macro to aid in the creation of complex macro_rules! macros

    v0.1.2 #macro-rules #macro
  52. macro_rules_attribute-proc_macro

    Use declarative macros as proc_macro attributes or derives

    v0.2.2 1.1M #macro-rules #proc-macro-attributes #macro-derive #macro-rules-attribute
  53. cps

    Assists in the creation of readable and maintainable macro_rules! macros

    v0.3.1 3.8K #macro-rules #utility #macro-utility
  54. latte

    Macro crate that expands Mocha syntax to standard Rust syntax

    v0.1.2 #macro-rules #testing #mocha
  55. brainiac_22ccb748d608358e

    brainfuck esoteric computer language

    v0.1.0 #brainfuck #brainiac #computer #language #macro-rules
  56. hopper-macros

    Declarative macros for Hopper zero-copy state framework. Account groups, instruction descriptors, capability tags, layout metadata. All macro_rules!, no proc macros required.

    v0.2.0 #solana #macro-rules #hopper-native
  57. berusty

    Me practicing Rust

    v0.1.1 #practicing #bindings #flow-control #macro-rules #expression #scoping #variables-bindings #rustaceans
  58. match_type

    Match on the type of an expression at compile time

    v0.1.5 #compile-time #expression #macro-rules #expression-at-compile-time #string-format #as-string #arms #debugging #opposite
  59. saturating_add_assign

    Convenience macro for AddAssign with saturating arithmetic

    v1.0.0 #add-assign #macro #math #agave #macro-rules #rip #heavy
  60. externcfn

    macro_rules for define correct extern 'C' functions with an normal syntax

    v1.0.2 #define #syntax #macro-rules #correct #extern #abi #c-compatible
  61. optfield-lite

    A macro to generate a new struct with fields wrapped in Option

    v0.1.0 #proc-macro-attributes #macro-rules #decorator #proc-macro
  62. const_json

    way to embed and access const JSON in Rust code

    v0.1.0 #json #embed #access #const #macro-rules #declaration
  63. eager2

    Proc-macros for eager macro expansion

    v1.1.4 440 #eager-macro #macro-rules #macro-expansion #proc-macro #lazy-evaluation #module-path #non-empty #unstringify #ccase
  64. expandable-impl

    What if we could check declarative macros before using them?

    v0.1.1 #macro-rules #macro-expansion #check #context #matcher
  65. option_macro

    a convenience macro

    v0.1.0 #macro-rules #options #helper
  66. autoload

    macro,single scan load ioc aop

    v0.1.0 #aop #ioc #bean #macro-rules #scan #autocall #autowired #实现 #singlemap #box-dyn
  67. itermacros

    Some useful macros related to iterators

    v0.1.0 #macro-rules #iterator #unpack
  68. stateful_macro_rules

    Generate macro_rules macros that have states

    v0.2.0 #macro-rules #stateful
  69. comptime-if

    Compile-time if procedural macro for Rust

    v0.1.1 460 #proc-macro #comptime #conditional #macro-rules #boolean #test-module
  70. const-concat

    Heinous hackery to concatenate constants

    v0.1.0 #concatenation #constant #path #transmute #string-concatenation #compile-time #magic-macro #macro-rules
  71. console-log-rs

    replaces console.log in a rust module with println!

    v0.2.0 #logging #replace #println #test-module #macro-rules
  72. diesel-autoincrement-new-struct

    Generate NewStructs for all your tables with autoincrementing IDs

    v0.1.1 #orm #diesel #macro-rules #database
  73. typestates

    macro_rules! to build typestates

    v0.1.2-MOVED #type-state #macro-rules #typestate
  74. identity-macro

    Remove metavariable fragment to make it reusable for macro_rules

    v0.1.0 #macro-rules #fragment #proc-macro #no-alloc
  75. macro-vis

    Attribute for defining macro_rules! macros with proper visibility and scoping

    v0.1.1 140 #macro-rules #decl-macro #well-scoped
  76. docgen

    made for dynamically documenting Rust items created by a macro

    v0.1.2 #item #created #dynamically #macro #documenting #macro-rules
  77. defile-proc_macros

    See https://docs.rs/defile

    v0.2.1 6.2K #proc-macro #defile #helper #captured #metavariable #ungroup #macro-rules #parentheses #pat #invisible
  78. wrapped_enum

    Useful macro to wrap existing types in an enum (common use for quick error handling)

    v0.1.3 #enums #enum-variant #eve #document #wrap #alice #macro-rules #debugging #test-error #dead-code