Rust Macros

Open-source Rust projects categorized as Macros

Top 23 Rust Macro Projects

  1. derive_more

    Some more derive(Trait) options

    Project mention: # [derive(Clone)] Is Broken | news.ycombinator.com | 2025-07-08
  2. Stream

    Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.

    Stream logo
  3. bon

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

    Project mention: From Unit Tests to Whole Universe Tests (With Will Wilson of Antithesis) [video] | news.ycombinator.com | 2025-09-16
  4. nutype

    Rust newtype with guarantees 🇺🇦 🦀

    Project mention: Nutype (rust crate) 0.6.2 released | news.ycombinator.com | 2025-07-29
  5. rust-derive-builder

    derive builder implementation for rust structs

  6. macrokata

    Learn Macros In Rust

  7. bitflags

    A macro to generate structures which behave like bitflags

  8. passerine

    A small extensible programming language designed for concise expression with little code.

  9. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  10. rust-ctor

    Module initialization/global constructor functions for Rust

  11. rustgym

    Leetcode Solutions in Rust, Advent of Code Solutions in Rust and more

  12. spring-rs

    🍃spring-rs is a application framework written in rust inspired by java's spring-boot

  13. rust-cpp

    Embed C++ directly inside your rust code!

  14. cynic

    A bring your own types GraphQL client library for Rust (by obmarg)

  15. ormx

    bringing orm-like features to sqlx

  16. rust-bitfield

    This crate provides macros to generate bitfield-like struct.

  17. syn-rsx

    syn-powered parser for JSX-like TokenStreams

  18. lunchpad

    A macro application for Novation Launchpads - easy to use, feature rich

  19. prae

    prae is a crate that aims to provide a better way to define types that require validation.

  20. unseemly

    Macros have types!

  21. kinded

    Generate Rust enum variants without associated data

  22. rust-claim

    Assertion macros toolkit for Rust

  23. deriving_via

    Flexible deriving macro for new-type pattern.

  24. born

    Remove code duplication from Struct and Enum with functional macros.

  25. r4d

    A macro processor made with rust, which aims to be a modern alternative to m4 macro processor.

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Rust Macros discussion

Rust Macros related posts

  • Nutype (rust crate) 0.6.2 released

    1 project | news.ycombinator.com | 29 Jul 2025
  • Cognition: The Revolutionary Antisyntax Language Redefining Metaprogramming

    2 projects | news.ycombinator.com | 1 May 2024
  • 对 RTIC 框架的探索

    2 projects | dev.to | 12 Apr 2024
  • Nutype 0.4.0 released

    1 project | /r/rust | 23 Nov 2023
  • Nutype 0.3.0 released

    1 project | /r/rust | 25 Jun 2023
  • Nutype 0.2.0 is released.

    1 project | /r/rust | 13 Apr 2023
  • derive_more: can it be used to handle operator overloads for borrowed references?

    1 project | /r/rust | 11 Apr 2023
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 23 Dec 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

What are some of the best open-source Macro projects in Rust? This list will help you:

# Project Stars
1 derive_more 2,038
2 bon 1,871
3 nutype 1,625
4 rust-derive-builder 1,516
5 macrokata 1,179
6 bitflags 1,084
7 passerine 1,083
8 rust-ctor 939
9 rustgym 934
10 spring-rs 888
11 rust-cpp 839
12 cynic 445
13 ormx 300
14 rust-bitfield 199
15 syn-rsx 187
16 lunchpad 150
17 prae 135
18 unseemly 132
19 kinded 98
20 rust-claim 78
21 deriving_via 55
22 born 51
23 r4d 16

Sponsored
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video.
Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
getstream.io

Did you know that Rust is
the 5th most popular programming language
based on number of references?