Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![allow(unused)]
- // In some_crate:
- fn main() {
- #[macro_export]
- macro_rules! get_tacos {
- ...
- }
- #[macro_export]
- macro_rules! get_pimientos {
- ...
- }
- // In your crate:
- #[macro_use(get_tacos, get_pimientos)] // It imports `get_tacos` and
- extern crate some_crate; // `get_pimientos` macros from some_crate
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement