proc-macro-utils
low-level utilities on proc-macro and proc-macro2 types
0.10.0
32M downloads/mo
#1619 most downloaded on crates.io
ModProg/proc-macro-utils
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 2 weeks to 10 months
Most releases are documented
notes for 10 of 13 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
13 releases · first in 2023
0 releases in the last 12 months
see the full history below
Release timeline
13 releases · Feb 2023 to May 2024
2024
2025
2026
Releases
latest 13-
0.10.021 May 2024Release notes
Open source →Changed
next_expression()stops at=>as well, matchingmacro_rule'sexpr
-
0.9.113 Mar 2024 -
0.9.013 Mar 2024Release notes
Open source →Added
*_ttfunctions toTokenParser.next_macro_rules_tt()toTokenParser.TokenTreeLiteralwithis_string()andstring().
Changed
- Breaking Change Sealed extension traits.
Fixed
assert_expansion!was failing on nightly.
-
0.8.014 May 2023Release notes
Open source →Fixed
- bumped
smallvecversion to1.5to avoid nightly feature compilation issues.
- bumped
-
0.7.014 May 2023Release notes
Open source →- Increased documentation and test coverage.
Added
quote::ToTokensimplementation forTokenParser(quoteis a new default feature).peek_{token}andpeek_n_{token}toTokenParser.alonetoTokenTreePunctensuring if a token isPunctitsspacingisAlone*_alonefunctions toTokenParsersetting the last token toAloneif it is a punctuation.next_ntoTokenParserreturning the nextntokens.peek_rangetoTokenParserreturning a range of tokens.FromStrimplementation forTokenParserbased onTokenStream's.assert_expansion!macro to unit test macro implementations.
Changed
- Breaking Change Added const generic buffer size to
TokenParser. - Breaking Change
Peeker::peektakes&[TokenTree]instead ofTokenParser. - Breaking Change
Peeker::LENGTHis functionlennow. - Breaking Change
*_{delimiter}returnsGroupinstead of the contained stream. To get to the stream call.stream() - Breaking Change
TokenParser::*_{punctuation}got renamed to*_tt_{punctuation}and their behaviour was changed to match that of$ttin macro_rules instead of requiringSpacing::Alone, returnedspacingis set toAlone. TokenParserpeeking supportsngreater than stack buffer, allowing spilling to heap.- Increased default
TokenParserpeek buffer to6. - Marked parser functions as must_use.
next_exprandnext_typeset the last tokensspacingtoAlone.
Fixed
- Allow
assert_tokensin expression position e.g. unbracedmatcharm
-
0.6.029 Apr 2023 -
0.5.206 Apr 2023Release notes
Open source →Fixed
TokenParser::peek_n()always returnedNoneTokenParser::next_{token}did not work correctly because ofpeek_n
-
0.5.102 Mar 2023 -
0.5.001 Mar 2023Release notes
Open source →Added
TokenParserfor parsing simple rust structuresassert_tokens!macroTokenTreeExt::into_<token>()functionsDelimitedtrait for accessingTokenTree::Group
Changed
- Breaking Change
TokenTreeExt::<token>()now return references
-
0.4.012 Feb 2023 -
0.3.012 Feb 2023Nothing published for this version
-
0.2.011 Feb 2023Nothing published for this version
-
0.1.010 Feb 2023Nothing published for this version