Skip to content

Don't require extern crate #57288

Open
Open
@mark-i-m

Description

@mark-i-m

Breaking out from #53128

Currently, extern crate is still required for sysroot crates, like test, proc_macro, core or std. One needs to extern crate them for use in no_std crates unless they are implicitly imported (like std is without #![no_std], or core with it).

  • proc_macro today is automatically imported by Cargo for proc-macro declared crates
  • alloc and std need extern for no_std (or std crates)
  • core is automatically extern'd in for all crates

This is the tracking issue for making them not require extern crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions