GitHub topics: proc-macro
dtolnay/syn
Parser for Rust source code
Language: Rust - Size: 10.9 MB - Last synced at: about 1 hour ago - Pushed at: 8 days ago - Stars: 3,071 - Forks: 324

Szymon-Czuszek/SAS-Data-Science
Repository holding SAS code, starting from the very basics.
Language: SAS - Size: 2.51 MB - Last synced at: 2 days ago - Pushed at: 2 days ago - Stars: 0 - Forks: 0

blueglyph/trait_gen
Trait implementation generator macro
Language: Rust - Size: 219 KB - Last synced at: 2 days ago - Pushed at: 2 days ago - Stars: 28 - Forks: 2

dtolnay/quote
Rust quasi-quoting
Language: Rust - Size: 886 KB - Last synced at: 2 days ago - Pushed at: 2 months ago - Stars: 1,411 - Forks: 96

TedDriggs/darling
A Rust proc-macro attribute parser
Language: Rust - Size: 649 KB - Last synced at: 4 days ago - Pushed at: 21 days ago - Stars: 1,116 - Forks: 73

dekirisu/mevy
Magical Bevy Macros: Simplified bevy_ui & bevy_ecs Syntax!
Language: Rust - Size: 181 KB - Last synced at: 4 days ago - Pushed at: 17 days ago - Stars: 91 - Forks: 1

Jij-Inc/pyo3-stub-gen
Stub file (*.pyi) generator for PyO3
Language: Rust - Size: 415 KB - Last synced at: 5 days ago - Pushed at: 6 days ago - Stars: 99 - Forks: 25

gregorygaines/bitfields-rs
Rust macro for generating flexible bitfields, useful for low-level code (embedded or emulators).
Language: Rust - Size: 170 KB - Last synced at: about 17 hours ago - Pushed at: 6 days ago - Stars: 41 - Forks: 1

taiki-e/pin-project
A crate for safe and ergonomic pin-projection.
Language: Rust - Size: 2.44 MB - Last synced at: 6 days ago - Pushed at: about 2 months ago - Stars: 654 - Forks: 36

taiki-e/futures-async-stream
Async stream for Rust and the futures crate.
Language: Rust - Size: 746 KB - Last synced at: 7 days ago - Pushed at: 7 days ago - Stars: 183 - Forks: 8

durbanlegend/thag_rs
A versatile cross-platform script runner, REPL and more for Rust expressions, snippets, and programs. Now with support (and a starter kit) for proc macro development
Language: Rust - Size: 13.8 MB - Last synced at: 4 days ago - Pushed at: 4 days ago - Stars: 6 - Forks: 2

rs-tml/rstml Fork of stoically/syn-rsx
Rust+html (JSX-like) parser for TokenStreams aka rsx
Language: Rust - Size: 923 KB - Last synced at: 1 day ago - Pushed at: 3 months ago - Stars: 109 - Forks: 11

dima324sdf/Quotely
💬 A clean and modern extension that displays inspirational quotes in the side panel. Includes bookmarking, custom quotes, dark mode and more.
Language: JavaScript - Size: 145 KB - Last synced at: 11 days ago - Pushed at: 11 days ago - Stars: 0 - Forks: 0

AlephCubed/immediate_stats
Game stats that reset every frame, inspired by immediate mode rendering.
Language: Rust - Size: 146 KB - Last synced at: 11 days ago - Pushed at: 11 days ago - Stars: 0 - Forks: 0

0x61nas/todo2
todo2(a.k.a. todo or die) - A better todo! macro inspired from searls/todo_or_die
Language: Rust - Size: 227 KB - Last synced at: 12 days ago - Pushed at: 12 days ago - Stars: 11 - Forks: 3

parker-codes/todo_by
Compile-time lifetimes for comments.
Language: Rust - Size: 33.2 KB - Last synced at: 7 days ago - Pushed at: 12 months ago - Stars: 118 - Forks: 3

primait/veil
Rust derive macro for redacting sensitive data in std::fmt::Debug
Language: Rust - Size: 186 KB - Last synced at: 13 days ago - Pushed at: 13 days ago - Stars: 23 - Forks: 3

sam0x17/macro_magic
A collection of Rust proc macros that allow the exporting and importing of TokenStream2s of items in foreign contexts and files
Language: Rust - Size: 353 KB - Last synced at: 2 days ago - Pushed at: 3 months ago - Stars: 50 - Forks: 4

fMeow/maybe-async-rs
A procedure macro to unify SYNC and ASYNC implementation for downstream application/crates
Language: Rust - Size: 127 KB - Last synced at: 14 days ago - Pushed at: about 1 year ago - Stars: 153 - Forks: 18

holmofy/reqwest-scraper
web scraping integration with reqwest
Language: Rust - Size: 139 KB - Last synced at: 22 days ago - Pushed at: 22 days ago - Stars: 4 - Forks: 3

dtolnay/proc-macro-hack 📦
Procedural macros in expression position
Language: Rust - Size: 340 KB - Last synced at: 9 days ago - Pushed at: over 2 years ago - Stars: 203 - Forks: 15

eugene-babichenko/rust-fsm
Finite state machine framework for Rust with readable specifications
Language: Rust - Size: 229 KB - Last synced at: 9 days ago - Pushed at: 11 months ago - Stars: 205 - Forks: 22

DvvCz/constime
Zig's comptime for Rust, with zero dependencies.
Language: Rust - Size: 14.6 KB - Last synced at: 20 days ago - Pushed at: 4 months ago - Stars: 17 - Forks: 0

acovaci/expand-array-rust-macro
Arrr! macro for easy fixed-size array creation from slices and strings. Fill gaps with any value or zero.
Language: Rust - Size: 43.9 KB - Last synced at: 19 days ago - Pushed at: 12 months ago - Stars: 2 - Forks: 0

taiki-e/derive_utils
A procedural macro helper for easily writing custom derives for enums.
Language: Rust - Size: 494 KB - Last synced at: 7 days ago - Pushed at: about 2 months ago - Stars: 32 - Forks: 3

sigp/superstruct
Rust library for versioned data types
Language: Rust - Size: 28.6 MB - Last synced at: 2 days ago - Pushed at: about 1 month ago - Stars: 67 - Forks: 5

taiki-e/easy-ext
A lightweight attribute macro for easily writing extension trait pattern.
Language: Rust - Size: 557 KB - Last synced at: 6 days ago - Pushed at: about 2 months ago - Stars: 63 - Forks: 2

4lDO2/real-async-trait-rs
A proc macro for real async traits, using nightly-only existential types and generic associated types to work around the need for type erasure
Language: Rust - Size: 64.5 KB - Last synced at: 2 days ago - Pushed at: almost 3 years ago - Stars: 45 - Forks: 3

taiki-e/auto_enums
A library for to allow multiple return types by automatically generated enum.
Language: Rust - Size: 1.16 MB - Last synced at: about 1 month ago - Pushed at: about 2 months ago - Stars: 364 - Forks: 14

udoprog/genco
A whitespace-aware quasiquoter for beautiful code generation.
Language: Rust - Size: 704 KB - Last synced at: 28 days ago - Pushed at: about 1 month ago - Stars: 190 - Forks: 13

TGRCdev/bevy-butler
Self-documenting systems and simpler plugins in Bevy
Language: Rust - Size: 320 KB - Last synced at: 12 days ago - Pushed at: 17 days ago - Stars: 30 - Forks: 2

flip-ui/flip-ui-rs
Rust integration for handling and compiling the UI built via the Website
Language: Rust - Size: 33.2 KB - Last synced at: 4 days ago - Pushed at: 10 months ago - Stars: 8 - Forks: 0

arcane-rs/synthez
Steroids for `syn`, `quote` and `proc-macro2` crates.
Language: Rust - Size: 194 KB - Last synced at: 7 days ago - Pushed at: about 1 month ago - Stars: 3 - Forks: 1

kelpsyberry/proc-bitfield
A Rust crate to expressively declare bitfield-like structs
Language: Rust - Size: 182 KB - Last synced at: 13 days ago - Pushed at: 2 months ago - Stars: 48 - Forks: 3

andogq/assert_layout
Assert struct layouts, including field sizes and offsets.
Language: Rust - Size: 16.6 KB - Last synced at: about 1 month ago - Pushed at: about 1 month ago - Stars: 0 - Forks: 0

elichai/log-derive
A procedural macro for auto logging output of functions
Language: Rust - Size: 89.8 KB - Last synced at: 5 days ago - Pushed at: over 3 years ago - Stars: 192 - Forks: 12

bastion-rs/fort
Proc macro attributes for Bastion runtime.
Language: Rust - Size: 37.1 KB - Last synced at: 5 days ago - Pushed at: over 3 years ago - Stars: 49 - Forks: 4

tench-rt/tentacli
Tentacli is a headless (like a tentacle) multipurpose console client for World of Warcraft server.
Language: Rust - Size: 618 KB - Last synced at: about 1 month ago - Pushed at: about 2 months ago - Stars: 63 - Forks: 4

ct-austin/ifmt
Inline expression interpolation for Rust.
Language: Rust - Size: 33.2 KB - Last synced at: 10 days ago - Pushed at: over 1 year ago - Stars: 202 - Forks: 4

PRO-2684/macro_rules_attr
Use declarative macros as proc_macro attributes. (`#[apply]` your `macro_rules!`)
Language: Rust - Size: 2.93 KB - Last synced at: about 2 months ago - Pushed at: about 2 months ago - Stars: 0 - Forks: 0

ink-feather-org/cargo-manifest-proc-macros-rs
Find the syn::Path to your own crate from proc-macros reliably.
Language: Rust - Size: 181 KB - Last synced at: 11 days ago - Pushed at: about 2 months ago - Stars: 1 - Forks: 0

azriel91/proc_macro_roids
Traits and functions to make writing proc macros more ergonomic.
Language: Rust - Size: 142 KB - Last synced at: about 1 month ago - Pushed at: almost 2 years ago - Stars: 22 - Forks: 0

ohsayan/derived
Rust derive macros for automating the boring stuff.
Language: Rust - Size: 124 KB - Last synced at: 14 days ago - Pushed at: over 3 years ago - Stars: 10 - Forks: 0

hexedtech/jni-toolbox
easily write JNI extern functions with native Rust types
Language: Rust - Size: 98.6 KB - Last synced at: 29 days ago - Pushed at: 7 months ago - Stars: 3 - Forks: 0

taiki-e/syn-mid
Providing the features between "full" and "derive" of syn.
Language: Rust - Size: 383 KB - Last synced at: 3 days ago - Pushed at: about 2 months ago - Stars: 7 - Forks: 4

taiki-e/negative-impl
Negative trait implementations on stable Rust.
Language: Rust - Size: 236 KB - Last synced at: 12 days ago - Pushed at: about 2 months ago - Stars: 12 - Forks: 0

taiki-e/iter-enum
#[derive(Iterator, DoubleEndedIterator, ExactSizeIterator, FusedIterator, Extend)] for enums.
Language: Rust - Size: 360 KB - Last synced at: 14 days ago - Pushed at: about 2 months ago - Stars: 14 - Forks: 1

taiki-e/io-enum
#[derive(Read, Write, Seek, BufRead)] for enums.
Language: Rust - Size: 314 KB - Last synced at: 21 days ago - Pushed at: about 2 months ago - Stars: 8 - Forks: 0

taiki-e/futures-enum
#[derive(Future, Stream, Sink, AsyncRead, AsyncWrite, AsyncSeek, AsyncBufRead)] for enums.
Language: Rust - Size: 340 KB - Last synced at: about 1 month ago - Pushed at: about 2 months ago - Stars: 16 - Forks: 0

taiki-e/const_fn
A lightweight attribute for easy generation of const functions with conditional compilations.
Language: Rust - Size: 383 KB - Last synced at: 9 days ago - Pushed at: about 2 months ago - Stars: 27 - Forks: 2

fuzzypixelz/absolut
Autogenerated Bytewise SIMD-Optimized Look-Up Tables
Language: Rust - Size: 71.3 KB - Last synced at: 30 days ago - Pushed at: about 1 year ago - Stars: 34 - Forks: 1

vi/syn-file-expand
Rust library to scan files and expand (make modules inline) multi-file crates source code as a single tree.
Language: Rust - Size: 104 KB - Last synced at: 27 days ago - Pushed at: over 1 year ago - Stars: 17 - Forks: 2

TedDriggs/field_names
proc-macro for accessing struct field names at runtime
Language: Rust - Size: 11.7 KB - Last synced at: 4 days ago - Pushed at: over 3 years ago - Stars: 38 - Forks: 3

Chara-X/rest
Generate openapi client and docs from proc-macro
Language: Rust - Size: 24.4 KB - Last synced at: about 2 months ago - Pushed at: about 2 months ago - Stars: 0 - Forks: 0

dekirisu/buns
Create simple code templates - basically macro_rules lite
Language: Rust - Size: 12.7 KB - Last synced at: 29 days ago - Pushed at: 4 months ago - Stars: 6 - Forks: 0

LukasKalbertodt/litrs
Parsing and inspecting Rust literals (particularly useful for proc macros)
Language: Rust - Size: 187 KB - Last synced at: about 11 hours ago - Pushed at: over 1 year ago - Stars: 43 - Forks: 5

jeremydavis519/runtime-macros
Simulate expansion of procedural macros at run time
Language: Rust - Size: 89.8 KB - Last synced at: 24 days ago - Pushed at: 2 months ago - Stars: 6 - Forks: 3

azriel91/enum_variant_type
Proc macro derive to generate structs from enum variants.
Language: Rust - Size: 45.9 KB - Last synced at: 24 days ago - Pushed at: almost 2 years ago - Stars: 28 - Forks: 1

AlphaModder/include-lua
include-lua is a crate that allows the embedding of a lua source tree into a Rust application binary.
Language: Rust - Size: 12.7 KB - Last synced at: 27 days ago - Pushed at: almost 6 years ago - Stars: 6 - Forks: 2

cpg314/skip-if
Rust attribute macro to skip running a function that produces files
Language: Rust - Size: 13.7 KB - Last synced at: 22 days ago - Pushed at: 3 months ago - Stars: 0 - Forks: 1

sam0x17/docify
Allows for dynamic compile-time embedding of existing tests and examples in your Rust doc comments and markdown files
Language: Rust - Size: 270 KB - Last synced at: 5 days ago - Pushed at: 3 months ago - Stars: 26 - Forks: 3

anotherhollow1125/dncl_trans
DNCL (大学入試センター言語, Daigaku Nyushi Center Language) をRustにトランスパイルするマクロ
Language: Rust - Size: 59.6 KB - Last synced at: 21 days ago - Pushed at: 3 months ago - Stars: 8 - Forks: 0

1Git2Clone/proc-macro-example
A short getting started on derive macros guide in Rust.
Language: Rust - Size: 532 KB - Last synced at: 2 months ago - Pushed at: 3 months ago - Stars: 0 - Forks: 0

SOF3/portrait
Trait-agnostic derive macros
Language: Rust - Size: 88.9 KB - Last synced at: about 1 month ago - Pushed at: 3 months ago - Stars: 27 - Forks: 1

WilliamVenner/inline-rust
A cursed macro that compiles and executes Rust and spits the output directly into your Rust code
Language: Rust - Size: 8.79 KB - Last synced at: 5 days ago - Pushed at: over 2 years ago - Stars: 30 - Forks: 0

sokomishalov/lombok-rs
Lombok port for Rust
Language: Rust - Size: 50.8 KB - Last synced at: 28 days ago - Pushed at: over 1 year ago - Stars: 46 - Forks: 2

Systemcluster/staticfilemap
Procedural macro to embed files during compilation with optional compression
Language: Rust - Size: 39.1 KB - Last synced at: 7 days ago - Pushed at: 7 months ago - Stars: 11 - Forks: 1

nwrenger/gluer
A wrapper for Rust frameworks that eliminates redundant type and function definitions between the frontend and backend
Language: Rust - Size: 178 KB - Last synced at: 4 days ago - Pushed at: 3 months ago - Stars: 3 - Forks: 0

anotherhollow1125/hey_chat_gpt
take_care_of_the_rest / あとは任せた proc-macro of Rust
Language: Rust - Size: 97.7 KB - Last synced at: 29 days ago - Pushed at: 4 months ago - Stars: 24 - Forks: 0

SeedyROM/enum-display
Macro for implementing std::fmt::Display on enum variants. Over 500K crates.io downloads!
Language: Rust - Size: 25.4 KB - Last synced at: 1 day ago - Pushed at: over 1 year ago - Stars: 8 - Forks: 1

outfoxxed/dyntable
Idiomatic and FFI Safe dyn traits in Rust
Language: Rust - Size: 312 KB - Last synced at: about 1 month ago - Pushed at: almost 2 years ago - Stars: 18 - Forks: 0

abdullah-albanna/schema2struct
Convert a JSON schema into Rust structs for efficient and type-safe data management.
Language: Rust - Size: 41 KB - Last synced at: 13 days ago - Pushed at: 4 months ago - Stars: 0 - Forks: 0

duskmoon314/utility-rs
Try impl TypeScript's utility types in rust via proc_macro
Language: Rust - Size: 32.2 KB - Last synced at: 15 days ago - Pushed at: 10 months ago - Stars: 25 - Forks: 1

eigenein/kv-derive
Derive struct conversions from and to key-value vectors
Language: Rust - Size: 89.8 KB - Last synced at: 12 days ago - Pushed at: over 2 years ago - Stars: 4 - Forks: 1

mrshiposha/fortuples
Procedural macros to generalize inherent and trait implementations over tuples
Language: Rust - Size: 112 KB - Last synced at: 14 days ago - Pushed at: over 1 year ago - Stars: 4 - Forks: 1

wcampbell0x2a/bintex
Create bytefield latex digrams with the use of rust proc-macros and deku
Language: Rust - Size: 89.8 KB - Last synced at: 19 days ago - Pushed at: 4 months ago - Stars: 5 - Forks: 1

eupn/rust-procmacro-quickstart-template
A `cargo generate` template for quick-starting a procedural macro crate
Language: Rust - Size: 13.7 KB - Last synced at: 6 days ago - Pushed at: over 5 years ago - Stars: 15 - Forks: 3

Archisman-Mridha/crust-of-rust
Walking through the Crust of Rust Youtube playlist by Jon Gjengset to level up my Rust skills.
Language: Rust - Size: 68.4 KB - Last synced at: about 2 months ago - Pushed at: 4 months ago - Stars: 1 - Forks: 0

ink-feather-org/tracing-proc-macros-ink-rs
Provides a working tracing integration for logging from within procedural macros.
Language: Rust - Size: 56.6 KB - Last synced at: 11 days ago - Pushed at: 5 months ago - Stars: 0 - Forks: 0

lu-zero/simd_helpers
helper proc macros to reduce the boilerplate need to write simd code in rust
Language: Rust - Size: 1.95 KB - Last synced at: 10 days ago - Pushed at: over 5 years ago - Stars: 0 - Forks: 1

Goncalerta/proc-quote
A procedural macro implementation of `quote!`.
Language: Rust - Size: 78.1 KB - Last synced at: about 16 hours ago - Pushed at: about 2 years ago - Stars: 24 - Forks: 2

DOCtorActoAntohich/type-name
Extract type names as strings. Automagically.
Language: Rust - Size: 3.91 KB - Last synced at: about 1 month ago - Pushed at: 5 months ago - Stars: 0 - Forks: 0

Inky-developer/regex-parse
A simple macro to parse input with a regular expression
Language: Rust - Size: 28.3 KB - Last synced at: 5 months ago - Pushed at: 5 months ago - Stars: 0 - Forks: 0

Davoodeh/thread
Clojure's Thread Macros in Rust
Language: Rust - Size: 7.81 KB - Last synced at: about 2 months ago - Pushed at: 5 months ago - Stars: 0 - Forks: 0

ardaku/traitful
A collection of helper attribute macros for trait patterns
Language: Rust - Size: 61.5 KB - Last synced at: 19 days ago - Pushed at: 5 months ago - Stars: 1 - Forks: 0

WilliamVenner/null_fn
✨ A proc attribute macro that allows for creating null function pointers in statics
Language: Rust - Size: 4.88 KB - Last synced at: 5 days ago - Pushed at: over 3 years ago - Stars: 2 - Forks: 0

cdown/filestruct
Derive macro to read from a directory into a Rust struct.
Language: Rust - Size: 35.2 KB - Last synced at: 9 days ago - Pushed at: 6 months ago - Stars: 2 - Forks: 1

Jedsek/curried
currying function to be used in normal && generic && map case, with procedural macro
Language: Rust - Size: 9.77 KB - Last synced at: about 1 month ago - Pushed at: about 1 year ago - Stars: 3 - Forks: 0

nyarthan/dedent
A Rust procedural macro for stripping whitespace from multi-line string literals while preserving relative indentation.
Language: Rust - Size: 10.7 KB - Last synced at: 12 days ago - Pushed at: 6 months ago - Stars: 0 - Forks: 0

viktorlott/penum
penum is a procedural macro that is used to make an enum follow a given pattern, which can include generics and trait bounds.
Language: Rust - Size: 963 KB - Last synced at: 13 days ago - Pushed at: 6 months ago - Stars: 5 - Forks: 0

ratnaraj7/origami-engine
A templating engine for Rust focused on modularity using reusable components.
Language: Rust - Size: 221 KB - Last synced at: 9 days ago - Pushed at: 7 months ago - Stars: 1 - Forks: 0

taiki-e/syn-serde
Library to serialize and deserialize Syn syntax trees.
Language: Rust - Size: 4.83 MB - Last synced at: 7 months ago - Pushed at: 7 months ago - Stars: 24 - Forks: 4

ianbrault/case_iterable
Rust procedural macro to iterate over enum variants, ala Swift's CaseIterable
Language: Rust - Size: 22.5 KB - Last synced at: about 1 month ago - Pushed at: 7 months ago - Stars: 0 - Forks: 0

Antikyth/cfg_attrs
An alternative to `#[cfg_attr(...)]` that is easier to use with doc comments.
Language: Rust - Size: 30.3 KB - Last synced at: 8 days ago - Pushed at: over 1 year ago - Stars: 2 - Forks: 0

lukaslueg/restruct 📦
Simple parsers for binary data in Rust
Language: Rust - Size: 53.7 KB - Last synced at: 9 days ago - Pushed at: about 3 years ago - Stars: 12 - Forks: 1

andrewsonin/gset
Getters and Setters for Rust.
Language: Rust - Size: 25.4 KB - Last synced at: 11 days ago - Pushed at: 10 months ago - Stars: 5 - Forks: 1

jonas089/raptor-abi
Proc-macro Compiler for Contracts
Language: Rust - Size: 184 MB - Last synced at: about 1 month ago - Pushed at: over 1 year ago - Stars: 1 - Forks: 0

termoshtt/einsum-derive
Proc-macro based einsum implementation for rust-ndarray
Language: Rust - Size: 176 KB - Last synced at: 18 days ago - Pushed at: about 1 year ago - Stars: 32 - Forks: 1

Sovereign-Labs/trybuild
https://github.com/dtolnay/trybuild but with better test concurrency
Language: Rust - Size: 1.7 MB - Last synced at: 9 months ago - Pushed at: 9 months ago - Stars: 0 - Forks: 0

orangutanrider/waymark_relations
ECS abstractions based around the concept of a "Waymark" W.I.P.
Language: Rust - Size: 146 KB - Last synced at: about 1 month ago - Pushed at: 9 months ago - Stars: 3 - Forks: 0
