Python
Java
JavaScript
Android
Golang
C/C++
Swift
PHP
Node.js
Ruby
.NET
More
React
Linux
Rust
Vue.js
Flutter
Command-line
Network programming
Database
Applications
IDEs
More...
Home
/
Rust
/
Procedural macros
Procedural macros
Crates to help you write procedural macros in Rust.
Search
Most popular
Newest releases
Most popular
Procedural macros
2.5k
syn-next - Parser for Rust source code
Parser for Rust source code Syn is a parsing library for parsing a stream of Rust tokens into a syntax tree of Rust source code. Currently this librar
Procedural macros
1.3k
macro derive_more - Adds #[derive(x)] macros for more traits
derive_more Rust has lots of builtin traits that are implemented for its basic types, such as Add, Not, From or Display. However, when wrapping these
Procedural macros
1.1k
quote-next - Quasi-quoting macro quote!(…)
Rust Quasi-Quoting This crate provides the quote! macro for turning Rust syntax tree data structures into tokens of source code. Procedural macros in
Procedural macros
307
macro getset - Getset, we’re ready to go! A procedural macro for generating the most basic...
getset Getset, we're ready to go! A procedural macro for generating the most basic getters and setters on fields. Getters are generated as fn field(&s
Procedural macros
218
mdo - Monadic do notation for rust using macro and duck typing
Rust mdo Presentation Rust mdo is a monadic do notation using macros and duck typing. It provides a syntax extension providing something that looks li
Procedural macros
202
macro proc-macro-hack - Procedural macros in expression position
Procedural macros in expression position As of Rust 1.30, the language supports user-defined function-like procedural macros. However these can only b
Procedural macros
139
procspawn - thread::spawn just with processes
procspawn This crate provides the ability to spawn processes with a function similar to thread::spawn. Unlike thread::spawn data cannot be passed by t
Procedural macros
130
reflect - The “but I thought Rust doesn’t have reflection?” memorial brand new way of defi...
I thought Rust doesn't have reflection...? This crate explores what it could look like to tackle the 80% use case of custom derive macros through a pr
Procedural macros
107
absolution - ‘Freedom from syn’. A lightweight Rust lexer designed for use in bang-style p...
absolution "Freedom from syn" This crate provides an introspectible token tree representation for writing Rust proc macros. It's still somewhat unstab
Procedural macros
97
A procedural, node-based modelling tool, made in rust 🦀
Blackjack Your Rusty 🦀 procedural 3d modeler Blackjack is a procedural modelling application, following the steps of great tools like Houdini or Blen
Procedural macros
65
Datalog compiler in Rust as a procedural macro
Crepe Crepe is a library that allows you to write declarative logic programs in Rust, with a Datalog-like syntax. It provides a procedural macro tha
Procedural macros
62
macro derive-ocaml - Custom derive and procedural macros for easy FFI with ocaml on top of...
derive-ocaml - Custom derive and procedural macros for easier ocaml <-> rust FFI WARNING this crate is very experimental derive-ocaml is based on top
Procedural macros
27
Procedural macro span debugger/visualizer
spanr A tool for procedural macro authors to be able to interactively view and debug the Spans on generated code. Screenshot Example usage #[proc_macr
Procedural macros
26
Rust crate that provides a convenient macro to quickly plot variables.
Debug Plotter This crate provides a convenient macro to quickly plot variables. Example In this example, we quickly want to plot the variables a, b, a
Procedural macros
22
proc-quote - A procedural macro implementation of quote!
Rust Quasiquoter This crate implements the quote! macro as a procedural macro, instead of the original quote! macro, implemented with macro_rules!. Th
Procedural macros
21
proc_macro_roids - Traits and functions to make writing proc macros more ergonomic
Proc Macro Roids Traits and functions to make writing proc macros more ergonomic. proc_macro_roids = "0.7.0" Makes writing procedural macros much easi
Procedural macros
17
A procedural macro for configuring constant values across crates
toml-cfg Rough ideas: Crates can declare variables that can be overridden Anything const, e.g. usize, strings, etc. (Only) The "root crate" can overri
Procedural macros
16
A macro which defines a handful main for the Advent of Code
Advent of Code helper This crate provides a macro to generate a handful main for your advent of code participation. The intention is to provide someth
Procedural macros
16
aidanhs-tmp-parse-generics-shim - A stable shim for the proposed RFC #1583; provides macro...
parse-generics This repository contains several pieces related to the proposed RFC #1583: parse-generics-poc - a proof-of-concept implementation of th
Procedural macros
15
A tiny crate mimicking Elixir's pipe operator for Rust without macros.
Pipette A small crate for using pipes in Rust. use pipette::{Pipeline, pipe}; let input = 1; let output = pipe(( input |a| a * 2, |a| a
Procedural macros
12
macros for querying and extracting value from structured data by JavaScript-like syntax
valq valq provides a macro for querying and extracting value from structured data in very concise manner, like the JavaScript syntax. Look & Feel: u
Procedural macros
12
zoet - Adds #[zoet] macro to reduce boilerplate when implementing common traits
Adds #[zoet] macro to reduce boilerplate when implementing common traits. If you are sick of writing impl Deref for Bar etc. and it didn't compile bec
Procedural macros
10
Rust macro that uses GPT3 codex to generate code at compiletime
gpt3_macro Rust macro that uses GPT3 codex to generate code at compiletime. Just describe what you want the function to do and (optionally) define a f
Procedural macros
9
Quickly prototype Rust procedural macros using JavaScript or TypeScript!
js-macros Quickly prototype Rust procedural macros using JavaScript or TypeScript! Have you ever thought "this would be a great use case for a procedu
Procedural macros
9
inner macro for Rust
inner - The inner! macro descends into an enum variant. It’s more flexible than try!() and unwrap(), and it works with your enum, too!
Procedural macros
6
This crates provides a procedural macro to let enums not only get its variants' ordinal bu...
macro enum-ordinalize - This crates provides a procedural macro to let enums not only get its variants’ ordinal but also be constructed from an ordinal
Procedural macros
4
A stupid macro that compiles and executes Rust and spits the output directly into your Rus...
inline-rust This is a stupid macro inspired by inline-python that compiles and executes Rust and spits the output directly into your Rust code. There
Categories
Rust
3378
Encoding JSON
43
Applications
36
Asynchronous
112
Audio and Music
58
Authentication
31
Automotive
12
Build system
43
Caching
32
Cargo plugins
46
Command-line
418
Compression
22
Computation
18
Concurrency
70
Configuration
28
Cryptocurrencies
96
Cryptography
130
Data processing
14
Data structures
182
Data visualization
16
Database
74
Database interfaces
35
Date and time
17
Debugging
55
Deployment
69
Development tools
27
Distributed systems
14
Email
20
Embedded
4
Embedded development
90
Emulators
29
Encoding Binary
4
Encoding Multimedia
3
Encoding XML
10
Encoding YAML
8
Filesystem
91
Foreign Function Interface
101
Game development
106
Games
62
Genetic algorithms
12
Geospatial
3
Graphics
71
GUI
167
HTTP Client
52
IDEs
32
Image processing
101
Industrial automation
3
Logging
11
Machine learning
68
macOS APIs
10
Math
46
Memory management
40
Miscellaneous
162
Mobile
4
Network programming
133
No standard library
34
Observability
2
Operating systems
21
Parsing
75
Platform specific
12
Procedural macros
40
Productivity
2
Profiling
28
Resources
13
Science
44
Scripting
17
Security tools
57
Simulation
1
Static Site Generators
20
System tools
54
Template engine
65
Testing
83
Text editors
40
Text processing
69
Text search
21
Unix APIs
33
Utilities
439
Value formatting
9
Video
27
Virtualization
34
Web programming
82
Web Servers
83
WebAssembly
21
WebSocket
17
Windows APIs
18
Most popular
More
01
syn-next - Parser for Rust source code
02
macro derive_more - Adds #[derive(x)] macros for more traits
03
quote-next - Quasi-quoting macro quote!(…)
04
macro getset - Getset, we’re ready to go! A procedural macro for generating the most basic...
05
mdo - Monadic do notation for rust using macro and duck typing
06
macro proc-macro-hack - Procedural macros in expression position
07
procspawn - thread::spawn just with processes
08
reflect - The “but I thought Rust doesn’t have reflection?” memorial brand new way of defi...
09
absolution - ‘Freedom from syn’. A lightweight Rust lexer designed for use in bang-style p...
10
A procedural, node-based modelling tool, made in rust 🦀