Rust Macros

Open-source Rust projects categorized as Macros

Top 23 Rust Macro Projects

  • derive_more

    Some more derive(Trait) options

  • nutype

    Rust newtype with guarantees 🇺🇦 🦀

  • Project mention: Nutype 0.4.0 released | /r/rust | 2023-11-23
  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • rust-derive-builder

    derive builder implementation for rust structs

  • passerine

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

  • macrokata

    Learn Macros In Rust

  • bitflags

    A macro to generate structures which behave like bitflags

  • rustgym

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

  • SaaSHub

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

    SaaSHub logo
  • rust-cpp

    Embed C++ directly inside your rust code!

  • Project mention: Improving Interoperability Between Rust and C++ | news.ycombinator.com | 2024-02-05

    I am the current passive maintainer of the cpp crate: https://github.com/mystor/rust-cpp

  • rust-ctor

    Module initialization/global constructor functions for Rust

  • cynic

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

  • ormx

    bringing orm-like features to sqlx

  • syn-rsx

    syn-powered parser for JSX-like TokenStreams

  • rust-bitfield

    This crate provides macros to generate bitfield-like struct.

  • prae

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

  • unseemly

    Macros have types!

  • Project mention: Cognition: The Revolutionary Antisyntax Language Redefining Metaprogramming | news.ycombinator.com | 2024-05-01

    There’s another project that goes the other direction, but I don’t remember if it has balanced brace requirements https://github.com/paulstansifer/unseemly

  • lunchpad

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

  • kinded

    Generate Rust enum variants without associated data

  • Project mention: Welcome kinded crate | /r/rust | 2023-08-08
  • rust-claim

    Assertion macros toolkit for Rust

  • born

    Remove code duplication from Struct and Enum with functional macros.

  • deriving_via

    Flexible deriving macro for new-type pattern.

  • throttle_my_fn

    A Rust attribute macro to limit a function's number of runs over a specified period of time

  • r4d

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

  • dl_api

    The easiest, simplest and safest way to load dynamic (shared object) libraries from Rust!

  • 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 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 | 19 May 2024
    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,435
2 nutype 1,211
3 rust-derive-builder 1,173
4 passerine 1,029
5 macrokata 990
6 bitflags 853
7 rustgym 835
8 rust-cpp 776
9 rust-ctor 677
10 cynic 342
11 ormx 278
12 syn-rsx 177
13 rust-bitfield 139
14 prae 129
15 unseemly 128
16 lunchpad 125
17 kinded 86
18 rust-claim 68
19 born 46
20 deriving_via 32
21 throttle_my_fn 12
22 r4d 10
23 dl_api 8

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com