Skip to content

Releases: sam0x17/macro_magic

v0.3.1

18 Apr 04:27
52d3c7b
Compare
Choose a tag to compare
  • add #[export_tokens_no_emit] variant and emit boolean option on export_tokens_internal in core, which allows you to decide whether you want the item #[export_tokens] is attached to to emit the tokens locally (the default/old behavior is that the tokens are always emitted). This is useful for scenarios where you want to define some code in one place but have it only compile in another place via macro_magic
  • updates all the sub-crates to have READMEs that will fix SEO issues with the main crate coming up after sub-crates in google and elsewhere

v0.3.0

13 Apr 04:48
591969a
Compare
Choose a tag to compare

Officially upgrades to version 2.x for syn and the latest 1.x for proc-macro2 and quote

v0.2.12

06 Apr 21:29
c2c5832
Compare
Choose a tag to compare

fixes broken cargo docs / docs.rs missing feature gated items

v0.2.11

05 Apr 13:48
3d24b42
Compare
Choose a tag to compare
  • feature gates potentially no_std breaking items depending on proc_macro2 that should only be used when compiling proc macros
  • proc macro crates that use import_tokens_attr and import_tokens_proc and related proc macro building functionality will need to enable the proc_support feature in order to function properly
  • everything else stays the same

v0.2.10

31 Mar 02:40
2b09e7f
Compare
Choose a tag to compare
  • remove convert_case crate and replace with a bespoke snake_case method
  • resolve some but not all no_std issues specific to substrate

v0.2.9

30 Mar 05:19
bb4d3b4
Compare
Choose a tag to compare
  • gate pretty_print function behind a pretty_print feature, disabled by default
  • update docs accordingly
  • update CI to run cargo test with all features enabled and as a separate job with no features enabled

v0.2.8

30 Mar 04:40
bc14185
Compare
Choose a tag to compare
  • make main crate and all sub-crates 100% no_std and update docs accordingly
  • rename re-export of core crate to mm_core (macro_magic::mm_core) to avoid conflicts with the built-in rust core crate when macro_magic is imported via use macro_magic::*

v0.2.7

30 Mar 04:29
87766b4
Compare
Choose a tag to compare
  • Fully fix distant re-export issues where macros created using macro_magic are re-exported and then re-exported again
  • new export_tokens macro layout that supports re-exported paths better and always works in expr position 🎉

v0.2.6

29 Mar 19:49
27411bf
Compare
Choose a tag to compare

Make __source_path available to macros created via #[import_tokens_attr]

v0.2.5

28 Mar 05:11
a301b0b
Compare
Choose a tag to compare

Allow applying attributes and doc comments to items with #[use_proc] or #[use_attr] attached