Skip to content

Use keyword crate to define crates: pub crate std; #12107

Closed
@liigo

Description

@liigo

After #12017 (extern crate x;) is landed, we may reuse the new keyword crate to define crates:

pub crate std;

We can always place docs and attributes on top of the crate's definition. As a result, the inner- (or outer- someone maybe calls it) docs and attributes, will forever gone.

src/libstd/lib.rs:

/// docs and attributes go here
#[crate_type = "rlib"]
pub crate std;

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