8 stable releases
Uses old Rust 2015
1.0.7 | Jan 27, 2022 |
---|---|
1.0.6 | Jan 22, 2019 |
1.0.5 | Jun 8, 2018 |
1.0.2 | Apr 22, 2018 |
0.1.0 | Mar 30, 2018 |
#152 in #macros
465 downloads per month
7KB
reexport-proc-macro
Allows re-exporting a procedural macro while adding additional public items.
This is unnecessary in Rust edition 2018, as it's possible to use pub use
syntax for that purpose. However, this crate still exists for Rust versions
before 1.31.
Examples
This makes a crate export all serde derives.
#[macro_use]
extern crate reexport_proc_macro;
reexport_proc_macro!(serde_derive);
lib.rs
:
A crate providing a macro to re-export a procedural macro.
This allows for adding additional public items in addition to
re-exported derives. This is unnecessary in Rust edition 2018,
as it's possible to use pub use
syntax for that purpose.
However, this crate still exists for Rust versions before 1.31.