NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io
crates.io, #685 most downloaded on crates.io
Procedural macros in expression position
Latest stable
0.5.20+deprecated
Last release 4 years ago
no release in 18 months
Ships unpredictably
gaps range from 1 weeks to 1.8 years
Some releases are documented
notes for 19 of 33 stable releases
2 versions withdrawn
withdrawn after publishing
10 years old
35 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Add #[proc_macro_hack(only_hack_old_rustc)] attribute to switch to a native #\[proc_macro\] on sufficiently new compilers
#[proc_macro_hack(only_hack_old_rustc)] attribute to switch to a native #[proc_macro] on sufficiently new compilers (#66)Update documentation: as of Rust 1.45 proc-macro-hack is superseded by native support for #\[proc_macro\] in expression position. Only continue using
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Handle macros whose definition contains interpolated macro_rules variables, such as:
Handle macros whose definition contains interpolated macro_rules variables, such as:
#[proc_macro_hack]
pub fn $name(input: TokenStream) -> TokenStream {...}
Eliminate some possible dead_code warnings in generated code
Improve compile time by cutting out some dependencies
Nothing published for this version
Better error message when exceeding the limit of nested macro invocations
Support macros named as raw identifier (#45, thanks @olegnn)
Support proc_macro_hack(support_nested) macros that expand to internal invocations of a different proc_macro_hack(support_nested) macro
proc_macro_hack(support_nested) macros that expand to internal invocations of a different proc_macro_hack(support_nested) macro (#41)Nothing published for this version
Support optional leading :: in re-exports
:: in re-exports (#36)Fix ability to build without features implied by dev-dependencies
Support referring to local variables outside of what is passed by name into the macro
Documentation improvements; clarify where documentation for your macro needs to go
Nothing published for this version
Support building with -Z minimal-versions
-Z minimal-versionsExperimental support for nested invocations: https://docs.rs/proc-macro-nested
Fill in some additional Cargo.toml metadata
Rewrite to support proc macros in expression position on Rust 1.30+
Fix compile error on nightlies beginning with 2021-03-19
Fix a compile error that manifests as:
= help: message: assertion failed: `(left == right)`
left: `Some("#[allow(unused,")`,
right: `Some("#[allow(unused")`
Nothing published for this version
Avoid dynamically linking with libstd in non-procmacro crates
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.