Skip to content

v0.2.4

Compare
Choose a tag to compare
@sam0x17 sam0x17 released this 28 Mar 01:46
· 120 commits to main since this release
a4edd54

Adds #[use_attr] and #[use_proc] attributes that allow easy importing and re-exporting of attributes and proc macros created by #[import_tokens_proc] and #[import_tokens_attr], since these both create hidden helper macros that need to be brought into scope.

Can be used by simply applying #[use_proc] or #[use_attr] to a simple use statement, such as:

#[use_proc]
pub use some_crate::my_proc_macro;

or:

#[use_attr]
use some_crate::my_attribute;

More complex paths are not allowed, and tree-mode paths are not supported (paths using curly braces to bring in multiple items).