You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The *`macro_export`[attribute][attributes]* marks a macro to be publicly exported from the crate, and makes it available in the root of the crate for path-based resolution.
376
376
377
-
378
-
r[macro.decl.scope.path.export]
379
-
Macros labeled with `#[macro_export]` are always `pub` and can be referred to by other crates, either by path or by `#[macro_use]` as described above.
380
377
> [!EXAMPLE]
381
378
> ```rust
382
379
> self::m!();
@@ -410,6 +407,53 @@ Only the first instance of `macro_export` on a macro is honored. Subsequent `mac
0 commit comments