PackageTrack
Sign in Get early access

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
Release Pre-release

Releases

latest 13
  1. 0.10.0 21 May 2024
    Release notes

    chore: Release proc-macro-utils version 0.10.0

    Open source →
    Release notes

    Changed

    • next_expression() stops at => as well, matching macro_rule's expr
    Open source →
  2. 0.9.1 13 Mar 2024
    Release notes

    chore: Release proc-macro-utils version 0.9.1

    Open source →
    Release notes

    Added

    • span() to TokenParser.
    Open source →
  3. 0.9.0 13 Mar 2024
    Release notes

    chore: Release proc-macro-utils version 0.9.0

    Open source →
    Release notes

    Added

    • *_tt functions to TokenParser.
    • next_macro_rules_tt() to TokenParser.
    • TokenTreeLiteral with is_string() and string().

    Changed

    • Breaking Change Sealed extension traits.

    Fixed

    • assert_expansion! was failing on nightly.
    Open source →
  4. 0.8.0 14 May 2023
    Release notes

    chore: Release proc-macro-utils version 0.8.0

    Open source →
    Release notes

    Fixed

    • bumped smallvec version to 1.5 to avoid nightly feature compilation issues.
    Open source →
  5. 0.7.0 14 May 2023
    Release notes

    chore: Release proc-macro-utils version 0.7.0

    Open source →
    Release notes
    • Increased documentation and test coverage.

    Added

    • quote::ToTokens implementation for TokenParser (quote is a new default feature).
    • peek_{token} and peek_n_{token} to TokenParser.
    • alone to TokenTreePunct ensuring if a token is Punct its spacing is Alone
    • *_alone functions to TokenParser setting the last token to Alone if it is a punctuation.
    • next_n to TokenParser returning the next n tokens.
    • peek_range to TokenParser returning a range of tokens.
    • FromStr implementation for TokenParser based on TokenStream's.
    • assert_expansion! macro to unit test macro implementations.

    Changed

    • Breaking Change Added const generic buffer size to TokenParser.
    • Breaking Change Peeker::peek takes &[TokenTree] instead of TokenParser.
    • Breaking Change Peeker::LENGTH is function len now.
    • Breaking Change *_{delimiter} returns Group instead 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 $tt in macro_rules instead of requiring Spacing::Alone, returned spacing is set to Alone.
    • TokenParser peeking supports n greater than stack buffer, allowing spilling to heap.
    • Increased default TokenParser peek buffer to 6.
    • Marked parser functions as must_use.
    • next_expr and next_type set the last tokens spacing to Alone.

    Fixed

    • Allow assert_tokens in expression position e.g. unbraced match arm
    Open source →
  6. 0.6.0 29 Apr 2023
    Release notes

    chore: Release proc-macro-utils version 0.6.0

    Open source →
    Release notes
    • TokenParser::next_keyword(v)
    Open source →
  7. 0.5.2 06 Apr 2023
    Release notes

    chore: Release proc-macro-utils version 0.5.2

    Open source →
    Release notes

    Fixed

    • TokenParser::peek_n() always returned None
    • TokenParser::next_{token} did not work correctly because of peek_n
    Open source →
  8. 0.5.1 02 Mar 2023
    Release notes

    fix: did not consume token

    Open source →
    Release notes

    Fixed

    • TokenParser::next_string() did not consume token
    Open source →
  9. 0.5.0 01 Mar 2023
    Release notes

    Added

    • TokenParser for parsing simple rust structures
    • assert_tokens! macro
    • TokenTreeExt::into_<token>() functions
    • Delimited trait for accessing TokenTree::Group

    Changed

    • Breaking Change TokenTreeExt::<token>() now return references
    Open source →
  10. 0.4.0 12 Feb 2023
    Release notes

    split traits to improve documentation

    Open source →
  11. 0.3.0 12 Feb 2023

    Nothing published for this version

  12. 0.2.0 11 Feb 2023

    Nothing published for this version

  13. 0.1.0 10 Feb 2023

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive