Rust Macros

Open-source Rust projects categorized as Macros

Top 23 Rust Macro Projects

  1. derive_more

    Some more derive(Trait) options

  2. 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
  3. bon

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

    Project mention: Pulumi WASM/Rust devlog #1 | dev.to | 2024-12-28

    I've migrated all the structs to bon so now they look like this

  4. nutype

    Rust newtype with guarantees 🇺🇦 🦀

  5. rust-derive-builder

    derive builder implementation for rust structs

  6. macrokata

    Learn Macros In Rust

  7. passerine

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

  8. bitflags

    A macro to generate structures which behave like bitflags

  9. SaaSHub

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

    SaaSHub logo
  10. rustgym

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

  11. rust-ctor

    Module initialization/global constructor functions for Rust

  12. rust-cpp

    Embed C++ directly inside your rust code!

  13. spring-rs

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

    Project mention: Rust needs a web framework for lazy developers | news.ycombinator.com | 2024-10-06

    in case someone really need it like in the article https://github.com/spring-rs/spring-rs

  14. cynic

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

  15. ormx

    bringing orm-like features to sqlx

  16. syn-rsx

    syn-powered parser for JSX-like TokenStreams

  17. rust-bitfield

    This crate provides macros to generate bitfield-like struct.

  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. born

    Remove code duplication from Struct and Enum with functional macros.

  24. deriving_via

    Flexible deriving macro for new-type pattern.

  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

Log in or Post with

Rust Macros related posts

  • 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
  • Rust for Web Development | An Honest Evaluation

    6 projects | /r/rust | 27 Feb 2023
  • A note from our sponsor - SaaSHub
    www.saashub.com | 12 May 2025
    SaaSHub helps you find the best software and product alternatives 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 1,906
2 bon 1,580
3 nutype 1,548
4 rust-derive-builder 1,437
5 macrokata 1,144
6 passerine 1,066
7 bitflags 1,010
8 rustgym 922
9 rust-ctor 854
10 rust-cpp 823
11 spring-rs 671
12 cynic 416
13 ormx 296
14 syn-rsx 186
15 rust-bitfield 177
16 lunchpad 139
17 prae 131
18 unseemly 129
19 kinded 93
20 rust-claim 77
21 born 49
22 deriving_via 41
23 r4d 16

Sponsored
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.
www.influxdata.com

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