Crate

proc-macro2

Stable TokenStream for use outside proc-macro context.

What it is

proc-macro2 provides a usable-outside-proc-macros version of Rust's proc_macro::TokenStream. It allows proc-macro helper libraries like syn and quote to be compiled, tested, and used in regular code rather than only inside procedural macros.

Why it is commonly used

An implementation detail of the syn/quote proc-macro ecosystem. Application code rarely depends on it directly — its high repo count comes from crates that ship proc-macros.

399
Repositories
3.2M
Total stars
567
Active
533
Owners
Browse 642 repositories using proc-macro2 in Repos →
Often used with
Used by these organizations
50 of 642 repositories · ranked by stars
bun93kactive

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one

⑂ 4.7k7.0k
zed85kactive

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

union74kactive

The trust-minimized, zero-knowledge bridging protocol, designed for censorship resistance, extremely high security, and usage in decentralized finance.

typst54kactive

A markup-based typesetting system that is powerful and easy to learn.

⑂ 1.6k1.2k
hyperswitch43kactive

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

firecracker35kactive

Secure and fast microVMs for serverless computing.

⑂ 2.4k89
tokio32kactive

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

⑂ 3.1k433
qdrant32kactive

Qdrant - High-performance, massive-scale Vector Database and Vector Search Engine for the next generation of AI. Also available in the cloud https://cloud.qdrant.io/

zeroclaw32kactive

Fast, small, and fully autonomous AI personal assistant infrastructure, any OS, any platform — deploy anywhere, swap anything 🦀

jj30kactive

A Git-compatible VCS that is both simple and powerful

⑂ 1.1k1.1k
wezterm27kactive

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust

⑂ 1.5k1.7k
Graphite26kactive

Community-built comprehensive 2D content creation appplication for graphic design, digital art, and interactive real-time motion graphics powered by a node-based procedural graphics engine

⑂ 1.2k531
biome25kactive

A toolchain for web projects, aimed to provide functionalities to maintain them. Biome offers formatter and linter, usable via CLI and LSP.

nautilus_trader23kactive

Production-grade Rust-native trading engine with deterministic event-driven architecture

slint23kactive

Slint is an open-source declarative GUI toolkit to build native user interfaces for Rust, C++, JavaScript, or Python apps.

⑂ 899830
oxc22kactive

⚓ A collection of high-performance JavaScript tools.

⑂ 1.1k570
Ciphey21kactive

⚡ Automatically decrypt encryptions without knowing the key or cipher, decode encodings, and crack hashes ⚡

gitbutler21kactive

The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte

⑂ 951663
turso19kactive

Turso is an in-process SQL database, compatible with SQLite.

⑂ 1.0k695
← Browse all repos