</>PackageGraphPackageGraph

proc-macro2

Cargov1.0.107

A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.

Not recommended for new projects

No — proc-macro2 should not be adopted for new projects. No license declared — you have no explicit right to use this code.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 53 days ago. 21 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • FLicense: grade F, Failing.

    No license declared — you have no explicit right to use this code.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding proc-macro2 to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Rust edition
No constraint declared

proc-macro2 vs the alternatives

Packages solving a similar problem in the cargo ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
proc-macro2this page001 month ago
syn001 day ago
quote001 day ago

Release history

15 releases in the last two years, typically about 9 days apart.

Recent versions of proc-macro2
VersionPublishedSizeLicense
1.0.107latest1 month agoMIT OR Apache-2.0
1.0.1067 months agoMIT OR Apache-2.0
1.0.1058 months agoMIT OR Apache-2.0
1.0.1048 months agoMIT OR Apache-2.0
1.0.10310 months agoMIT OR Apache-2.0
1.0.10210 months agoMIT OR Apache-2.0
1.0.1011 year agoMIT OR Apache-2.0
1.0.1001 year agoMIT OR Apache-2.0
1.0.991 year agoMIT OR Apache-2.0
1.0.981 year agoMIT OR Apache-2.0
1.0.971 year agoMIT OR Apache-2.0
1.0.961 year agoMIT OR Apache-2.0
1.0.951 year agoMIT OR Apache-2.0
1.0.941 year agoMIT OR Apache-2.0
1.0.931 year agoMIT OR Apache-2.0

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.107.

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 or if a more actively-maintained option better fits your Cargo stack.

Pros

  • Zero runtime dependencies — minimal footprint.

Cons

  • No license detected — review usage terms before adopting.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use proc-macro2?

No — proc-macro2 should not be adopted for new projects. No license declared — you have no explicit right to use this code.

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.

Is proc-macro2 still maintained?

The most recent release of proc-macro2 (v1.0.107) was published 1 month ago.