proc-macro2
v1.0.106 StableA substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.
Quick Verdict
- โActively maintained (updated 65d ago)
- โStable API (1.x for 8+ years)
- โMassive adoption (109.8K crates depend on it)
- โPermissive license (MIT OR Apache-2.0)
Security
Deep Insights
67.1M downloads in the last 30 days (2.2M/day), up 15% from the previous period.
109.8K crates depend on proc-macro2 โ it's part of the Rust ecosystem's core infrastructure. Removing it from your dependency tree would be extremely difficult.
The primary maintainer publishes 231 crates. This suggests deep Rust expertise and long-term commitment to the ecosystem.
The API has been stable (1.x) for over 8 years with 162 releases. This level of maturity means you can depend on it without worrying about breaking changes.
Notable dependents include syn, quote, thiserror-impl, serde_derive, log. When high-quality crates choose proc-macro2, it's a strong quality signal.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata
Download Trend
Top Dependents
Most downloaded crates that depend on proc-macro2
Version Adoption
Release Timeline
Feature Flags
default =["proc-macro"]