Cargo Features

[dependencies]
proc-macro2 = { version = "1.0.92", default-features = false, features = ["proc-macro", "span-locations", "nightly"] }
default = proc-macro

The proc-macro feature is set by default whenever proc-macro2 is added without default-features = false somewhere in the dependency tree.

proc-macro default
span-locations

Expose methods Span::start and Span::end which give the line/column location of a token.

nightly

This feature no longer means anything.