Crate

syn

Parser for Rust syntax — the foundation of proc-macro crates.

What it is

syn parses Rust source code from a proc_macro::TokenStream into a typed abstract syntax tree. It represents every Rust syntactic construct — structs, enums, expressions, types, attributes — and is the foundation for all custom derive and attribute macros.

Why it is commonly used

Not a direct application dependency. syn is used to build proc-macro crates like serde_derive, thiserror, and clap's derive support. Its high repo count reflects how many crates ship their own proc-macros.

1.0k
Repositories
89%
Actively maintained
931
Updated ≤ 30 days
3.8M
Total stars
877
Owners

Counted from the Cargo.toml manifests of the 1.0k indexed repositories that declare syn as a dependency — not download counts. Dependency data last verified 2026-08-13.

Browse 1049 repositories using syn in Repos →
Often used with

Crates that show up unusually often in syn projects. The most distinctive pairings rank first — crates these projects use far more than the average indexed Rust project does, not just crates that are popular everywhere. Each percentage is the share of syn projects that also use it.

Used by these organizations
50 of 1.0k repositories · ranked by stars · 931 pushed in the last 30 days
bun95kactive

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

⑂ 5.0k8.0k
union74kactive

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

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

servo38kactive

Servo aims to empower developers with a lightweight, high-performance alternative for embedding web technologies in applications.

⑂ 3.7k3.1k
qdrant34kactive

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/

tokio33kactive

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

⑂ 3.2k417
Graphite27kactive

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

← Browse all repos