Skip to content

Explain why macros cannot be imported from the same crate #115

Open
@johnthagen

Description

@johnthagen

I was reading the Macro Changes page:

Note that you'll still need #[macro_use] to use macros you've defined in your own crate; this feature only works for importing macros from external crates.

A couple questions that immediately came to mind:

  • Why? Could a link be added for people to read more about this?
  • Is it planned that in the future you can import macros from your own crate?

I think it would be helpful to add a little background about this, as I'm sure others will have similar questions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions