Kickstart a proc-macro project with a straight-forward template.
This crate will kickstart you with a workspace, with a proc-macro2
- and syn
-enabled crate that compiles straight away with a simple pass-through attribute macro.
cargo install cargo-proc-macro
To create a new proc-macro project, run cargo proc-macro new <path>
or cargo proc-macro init [path]
.
See --help
for other supported flags.
The cargo-proc-macro
crate is licensed under
- European Union Public License, version 1.2 or later, (LICENSE or https://joinup.ec.europa.eu/collection/eupl/eupl-text-11-12)
The EUPL is a copyleft, GPL-compatible license managed by the European Union, with legally-equal translated versions in all languages of the EU. See this introduction for information about the purpose, objectives and translations of the license. See also the license compatibility matrix.