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 wheneverproc-macro2
is added without
somewhere in the dependency tree.default-features = false - 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.