#proc-macro #macro #no-std

deprecated no-std reexport-proc-macro

Re-export a procedural macro

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

Download history 187/week @ 2024-07-21 187/week @ 2024-07-28 143/week @ 2024-08-04 203/week @ 2024-08-11 119/week @ 2024-08-18 173/week @ 2024-08-25 205/week @ 2024-09-01 145/week @ 2024-09-08 120/week @ 2024-09-15 198/week @ 2024-09-22 198/week @ 2024-09-29 51/week @ 2024-10-06 137/week @ 2024-10-13 94/week @ 2024-10-20 119/week @ 2024-10-27 109/week @ 2024-11-03

465 downloads per month

MIT/Apache

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.

No runtime deps