proc-macro2

Test `extern crate proc_macro2 as proc_macro;`

APACHE-2.0 License

Downloads
444.4M
Stars
678
Committers
30
proc-macro2 -

Published by dtolnay about 5 years ago

  • Add impl From<TokenTree> for TokenStream to match libproc_macro
proc-macro2 -

Published by dtolnay about 5 years ago

  • Documentation improvements
  • Fail with a better error message when being built on a compiler that is too old
proc-macro2 -

Published by dtolnay about 5 years ago

  • Minimum supported rustc version is raised from 1.15 to 1.31
  • Deprecated TokenStream::empty constructor has been removed in favor of TokenStream::new
proc-macro2 -

Published by dtolnay over 5 years ago

  • Implement Clone for TokenStream's IntoIter (#177, thanks @ivanbakel)
proc-macro2 -

Published by dtolnay over 5 years ago

  • Support compiling with RUSTFLAGS='-Z allow-features=' on a nightly compiler (#176, thanks @Nemo157)
proc-macro2 -

Published by dtolnay over 5 years ago

  • Avoid needlessly escaping ' inside a string literal or " inside a character literal (#60)
  • Add impls of Copy, Clone, Debug, PartialEq, Eq for proc_macro2::LineColumn
proc-macro2 -

Published by dtolnay over 5 years ago

  • Add Cargo cfg "span-locations" to expose Span::start and Span::end accessors that give the line and column location of a Span (#166)

    Be aware that this involves storing more information than before inside of Spans which increases their size -- leading to possibly slower performance of any code involving proc-macro2 types (but only when the cfg is enabled).

proc-macro2 -

Published by dtolnay almost 6 years ago

  • Update documentation to 2018 edition
  • Rename span.unstable() method to span.unwrap(); this method is usable from a stable compiler but panics if called from outside of a procedural macro
proc-macro2 -

Published by dtolnay almost 6 years ago

  • Disable stable shim when building with procmacro2_semver_exempt on a nightly compiler (#158)
proc-macro2 -

Published by dtolnay almost 6 years ago

proc-macro2 -

Published by dtolnay almost 6 years ago

  • Work around compilation failures in docs.rs when proc-macro2 is used as a dependency (#147)
proc-macro2 -

Published by dtolnay almost 6 years ago

  • Attempt to work around documentation not appearing on docs.rs (#145)
proc-macro2 -

Published by dtolnay almost 6 years ago

  • Add support for constructing 128 bit Literal integers (#144)
proc-macro2 -

Published by dtolnay almost 6 years ago

  • Provide unstable Group::span_open and span_close accessors to mirror the API in nightly (#134)
proc-macro2 -

Published by dtolnay about 6 years ago

  • FromIterator<TokenStream> for TokenStream (#130)
proc-macro2 -

Published by dtolnay about 6 years ago

  • Enable libproc_macro rich API with real spans when building on 1.29.0+ (#128)
proc-macro2 -

Published by dtolnay about 6 years ago

  • Performance optimization of impl PartialEq for Ident (#125)
proc-macro2 -

Published by dtolnay about 6 years ago

  • Hide some distracting stderr output when checking nightly support (#123)
proc-macro2 -

Published by dtolnay about 6 years ago

  • Provide Span::unstable method whenever nightly feature is enabled (#121)
proc-macro2 -

Published by dtolnay about 6 years ago

  • Automatically utilize libproc_macro rich API when building on 1.30.0+ (#120)