Skip to content

Don't require extern crate #57288

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions