Skip to content

Commit

Permalink
Macro_export for derive_resource and impl_web_clean_top_level
Browse files Browse the repository at this point in the history
  • Loading branch information
elpiel committed May 8, 2019
1 parent efeecb6 commit 1c0715e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ pub use tower_web_macros::*;

proc_macro_item_decl! {
#[doc(hidden)]
#[macro_export(local_inner_macros)]
derive_resource! => derive_resource_impl
}

Expand Down Expand Up @@ -548,7 +549,7 @@ macro_rules! impl_web {
// Tt-muncher to invoke `impl_web_clean_nested!` on the content of every set of
// curly braces in the input.
#[doc(hidden)]
#[macro_export]
#[macro_export(local_inner_macros)]
macro_rules! impl_web_clean_top_level {
// Next token is a set of curly braces. Pass to `impl_web_clean_nested!`.
(($($done:tt)*) { $($nested:tt)* } $($rest:tt)*) => {
Expand Down

0 comments on commit 1c0715e

Please sign in to comment.