proc-macro2
Cargov1.0.106A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.
Overview
proc-macro2 is an Cargo package that a substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case. The latest version is 1.0.106.
Who should use it
Teams working in the Cargo ecosystem who need a substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case and value a focused solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your Cargo stack.
Pros
- Zero runtime dependencies — minimal footprint.
Cons
- No bundled TypeScript types (may require a separate @types package).
- No license detected — review usage terms before adopting.
Auto-generated from collected registry metadata. No external claims are inferred.
Alternatives to proc-macro2
Version history
| Version | Published | License |
|---|---|---|
| 1.0.106latest | 5 months ago | MIT OR Apache-2.0 |
| 1.0.105 | 6 months ago | MIT OR Apache-2.0 |
| 1.0.104 | 6 months ago | MIT OR Apache-2.0 |
| 1.0.103 | 8 months ago | MIT OR Apache-2.0 |
| 1.0.102 | 8 months ago | MIT OR Apache-2.0 |
| 1.0.101 | 11 months ago | MIT OR Apache-2.0 |
| 1.0.100 | 11 months ago | MIT OR Apache-2.0 |
| 1.0.99 | 11 months ago | MIT OR Apache-2.0 |
| 1.0.98 | 11 months ago | MIT OR Apache-2.0 |
| 1.0.97 | 11 months ago | MIT OR Apache-2.0 |
| 1.0.96 | 11 months ago | MIT OR Apache-2.0 |
| 1.0.95 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.94 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.93 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.92 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.91 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.90 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.89 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.88 | 1 year ago | MIT OR Apache-2.0 |
| 1.0.87 | 1 year ago | MIT OR Apache-2.0 |
Maintainers
Frequently asked questions
How do I install proc-macro2?
Run `cargo add proc-macro2` to add proc-macro2 to your Cargo project.
What license is proc-macro2 released under?
No license was detected in proc-macro2's metadata; review the repository before use.
How popular is proc-macro2?
proc-macro2 has approximately 0 downloads per week.