Releases: sam0x17/macro_magic
Releases · sam0x17/macro_magic
v0.3.1
- 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
Officially upgrades to version 2.x for syn and the latest 1.x for proc-macro2 and quote
v0.2.12
fixes broken cargo docs / docs.rs missing feature gated items
v0.2.11
- 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
- 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
- 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
- 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
- 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
Make __source_path
available to macros created via #[import_tokens_attr]
v0.2.5
Allow applying attributes and doc comments to items with #[use_proc]
or #[use_attr]
attached