Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #![allow(unused)]
  2. // In some_crate:
  3. fn main() {
  4. #[macro_export]
  5. macro_rules! get_tacos {
  6. ...
  7. }
  8.  
  9. #[macro_export]
  10. macro_rules! get_pimientos {
  11. ...
  12. }
  13.  
  14. // In your crate:
  15. #[macro_use(get_tacos, get_pimientos)] // It imports `get_tacos` and
  16. extern crate some_crate; // `get_pimientos` macros from some_crate
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement