tag:github.com,2008:https://github.com/dtolnay/proc-macro-hack/releases Release notes from proc-macro-hack 2022-12-19T18:21:28Z tag:github.com,2008:Repository/77713689/0.5.20 2022-12-19T18:23:57Z 0.5.20 <ul> <li>Documentation improvements</li> </ul> dtolnay tag:github.com,2008:Repository/77713689/0.4.3 2021-03-19T03:30:50Z 0.4.3 <ul> <li>Fix compile error on nightlies beginning with 2021-03-19</li> </ul> dtolnay tag:github.com,2008:Repository/77713689/0.5.19 2020-10-28T00:03:11Z 0.5.19 <ul> <li>Add <code>#[proc_macro_hack(only_hack_old_rustc)]</code> attribute to switch to a native #[proc_macro] on sufficiently new compilers (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="730958031" data-permission-text="Title is private" data-url="https://github.com/dtolnay/proc-macro-hack/issues/66" data-hovercard-type="pull_request" data-hovercard-url="/dtolnay/proc-macro-hack/pull/66/hovercard" href="https://github.com/dtolnay/proc-macro-hack/pull/66">#66</a>)</li> </ul> dtolnay tag:github.com,2008:Repository/77713689/0.5.18 2020-07-26T06:40:59Z 0.5.18 <ul> <li>Update documentation: as of Rust 1.45 proc-macro-hack is superseded by native support for #[proc_macro] in expression position. Only continue using this crate if you care about supporting compilers between 1.31 and 1.45. <a href="https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html#stabilizing-function-like-procedural-macros-in-expressions-patterns-and-statements" rel="nofollow">https://blog.rust-lang.org/2020/07/16/Rust-1.45.0.html#stabilizing-function-like-procedural-macros-in-expressions-patterns-and-statements</a></li> </ul> dtolnay tag:github.com,2008:Repository/77713689/0.5.17 2020-07-26T06:39:32Z 0.5.17 <p><em>(yanked)</em></p> dtolnay tag:github.com,2008:Repository/77713689/0.5.16 2020-05-24T22:48:20Z 0.5.16 <ul> <li> <p>Handle macros whose definition contains interpolated macro_rules variables, such as:</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[proc_macro_hack] pub fn $name(input: TokenStream) -&gt; TokenStream {...}"><pre><span class="pl-c1">#<span class="pl-kos">[</span>proc_macro_hack<span class="pl-kos">]</span></span> <span class="pl-k">pub</span> <span class="pl-k">fn</span> $name<span class="pl-kos">(</span><span class="pl-s1">input</span><span class="pl-kos">:</span> <span class="pl-smi">TokenStream</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">TokenStream</span> <span class="pl-kos">{</span>..<span class="pl-kos">.</span><span class="pl-c1"></span><span class="pl-kos">}</span></pre></div> </li> </ul> dtolnay tag:github.com,2008:Repository/77713689/0.5.15 2020-03-31T15:26:50Z 0.5.15 <ul> <li>Eliminate some possible dead_code warnings in generated code</li> </ul> dtolnay tag:github.com,2008:Repository/77713689/0.5.14 2020-03-21T23:46:44Z 0.5.14 <ul> <li>Improve compile time by cutting out some dependencies</li> </ul> dtolnay tag:github.com,2008:Repository/77713689/0.5.13 2020-03-21T23:46:37Z 0.5.13 <p><em>yanked</em></p> dtolnay tag:github.com,2008:Repository/77713689/0.5.12 2020-03-17T18:58:21Z 0.5.12 <ul> <li>Better error message when exceeding the limit of nested macro invocations (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="578669554" data-permission-text="Title is private" data-url="https://github.com/rust-lang/futures-rs/issues/2097" data-hovercard-type="issue" data-hovercard-url="/rust-lang/futures-rs/issues/2097/hovercard" href="https://github.com/rust-lang/futures-rs/issues/2097">rust-lang/futures-rs#2097</a>)</li> </ul> dtolnay