Skip to content

Releases: dtolnay/proc-macro2

1.0.5

04 Oct 20:18
1.0.5
a4e9050
Compare
Choose a tag to compare
  • Improve performance of impl Extend<TokenTree> for TokenStream (#198)

1.0.4

21 Sep 08:01
1.0.4
bdac373
Compare
Choose a tag to compare
  • Add Literal::subspan method to match libproc_macro (#195)

1.0.3

21 Sep 08:00
1.0.3
Compare
Choose a tag to compare
  • Treat dev builds of rustc the same as a nightly, with unstable features available

1.0.2

21 Sep 07:58
1.0.2
f75cb32
Compare
Choose a tag to compare
  • Add impl From<TokenTree> for TokenStream to match libproc_macro

1.0.1

16 Aug 16:11
1.0.1
5956a96
Compare
Choose a tag to compare
  • Documentation improvements
  • Fail with a better error message when being built on a compiler that is too old

1.0.0

13 Aug 17:45
1.0.0
eecff60
Compare
Choose a tag to compare
  • Minimum supported rustc version is raised from 1.15 to 1.31
  • Deprecated TokenStream::empty constructor has been removed in favor of TokenStream::new

0.4.30

08 May 20:41
0.4.30
f514921
Compare
Choose a tag to compare
  • Implement Clone for TokenStream's IntoIter (#177, thanks @ivanbakel)

0.4.29

28 Apr 21:23
0.4.29
79c8ed7
Compare
Choose a tag to compare
  • Support compiling with RUSTFLAGS='-Z allow-features=' on a nightly compiler (#176, thanks @Nemo157)

0.4.28

23 Apr 02:17
0.4.28
16c2b45
Compare
Choose a tag to compare
  • 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

0.4.27

31 Jan 23:37
0.4.27
7b9bd94
Compare
Choose a tag to compare
  • 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).