Skip to content

Releases: dtolnay/proc-macro2

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).

0.4.26

20 Jan 04:56
0.4.26
c34356a
Compare
Choose a tag to compare
  • 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

0.4.25

16 Jan 20:31
0.4.25
dd1af43
Compare
Choose a tag to compare
  • Disable stable shim when building with procmacro2_semver_exempt on a nightly compiler (#158)

0.4.24

16 Nov 12:02
0.4.24
f6674da
Compare
Choose a tag to compare
  • Remove semver exempt type proc_macro2::FileName in favor of PathBuf (rust-lang/rust@e5e29d1)
  • Remove Send and Sync impls of semver exempt type SourceFile (#141)
  • Support building semver exempt APIs on stable channel (#152)

0.4.23

16 Nov 11:59
0.4.23
102ee29
Compare
Choose a tag to compare
  • Work around compilation failures in docs.rs when proc-macro2 is used as a dependency (#147)

0.4.22

16 Nov 11:58
0.4.22
553aaa9
Compare
Choose a tag to compare
  • Attempt to work around documentation not appearing on docs.rs (#145)

0.4.21

08 Nov 17:19
0.4.21
3f8382d
Compare
Choose a tag to compare
  • Add support for constructing 128 bit Literal integers (#144)