Rust Macro

Open-source Rust projects categorized as Macro

Top 23 Rust Macro Projects

  • maud

    :pencil: Compile-time HTML templates for Rust

  • Project mention: Templ: A language for writing HTML user interfaces in Go | news.ycombinator.com | 2023-12-10

    I would like to mention maud in this context:

    https://github.com/lambda-fairy/maud

    It is refreshingly different from other Rust templating libraries. It uses a proc-macro that compiles your HTML into Rust code. I also happen to use it in conjunction with HTMX and it works very well for me (at least in small projects).

  • 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
  • cute

    Macro for Python-esque comprehensions in Rust

  • multiversion

    Easy function multiversioning for Rust

  • llrl

    An experimental Lisp-like programming language

  • Project mention: LLRL – Lisp in Rust | news.ycombinator.com | 2023-06-25
  • typestate-rs

    Proc-macro typestate DSL for Rust

  • lunchpad

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

  • SaaSHub

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

    SaaSHub logo
  • default-args.rs

    zero runtime cost default arguments in rust

  • fncmd

    Command line interface as a function.

  • buildstructor

    Derive a builder for your constructors in Rust

  • regexm

    A Rust macro for writing regex pattern matching.

  • hado-rs

  • fncli

    An attribute macro to simplify writing simple command line applications.

  • dyntable

    Idiomatic and FFI Safe dyn traits in Rust

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

  • negate

    Attribute macro that generates negated versions of`is_something` functions

  • custom-format

    Custom formatting for Rust.

  • Constime

    Zig's comptime for Rust. Mostly something to play around with until more stuff is `const` fn.

  • enum-code

    derive(Code) simplifies error handling by providing an easy-to-use enumeration of error codes

  • Project mention: Just open source a process macro「enum-code」for mapping enum values to error codes in Rust. | /r/rust | 2023-06-14

    You can find the code on Github: https://github.com/Kunduin/enum-code and crates.io: https://crates.io/crates/enum-code.

  • struct-patch

    A lib help you patch Rust instance, and easy to partial update configures.

  • dbg_hex

    display dbg result in hexadecimal {:#x?} format

  • expand

    Rust library that introduces a macro to expand byte string and string literals

  • 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 Macro related posts

  • 对 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
  • Taming stateful computations in Rust with typestates (Journal of Computer Languages, 2022)

    1 project | /r/rust | 19 Apr 2023
  • Nutype 0.2.0 is released.

    1 project | /r/rust | 13 Apr 2023
  • fncli: An attribute macro to simplify writing simple command line applications.

    2 projects | /r/rust | 28 Nov 2022
  • Is there a crate to search and replace a string but with dynamic input?

    1 project | /r/rust | 18 Nov 2022
  • A note from our sponsor - SaaSHub
    www.saashub.com | 24 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 maud 1,947
2 nutype 1,211
3 cute 333
4 multiversion 185
5 llrl 150
6 typestate-rs 131
7 lunchpad 125
8 default-args.rs 83
9 fncmd 73
10 buildstructor 58
11 regexm 46
12 hado-rs 44
13 fncli 33
14 dyntable 16
15 throttle_my_fn 12
16 r4d 10
17 negate 9
18 custom-format 9
19 Constime 7
20 enum-code 6
21 struct-patch 6
22 dbg_hex 2
23 expand 1

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