Skip to content

Explicit standard library dependencies #5002

Open
@Ericson2314

Description

@Ericson2314

(Split from of rust-lang/rfcs#1133)

The first task is to agree on a syntax for explicit stdlib deps. That RFC proposed

[depedencies]
std = { version = "*", stdlib = true }

But, if we are confident we can reserve the name on crates.io of everything that's part of the standard library (or isn't part of the standard library but exists in the sysroot), we don't even need a new syntax!

[depedencies]
std = "*" # work's just fine!

The second task is to decide whether version bounds are permitted in full generality, or restricted. Plausible restrictions would be:

  • Exactly match the overall crate language version restrictions (however that pans out)
  • Must be unrestricted (*), with the intent that the language version restriction will effectively restrict it anyways.

CC @japaric @nrc

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-triageStatus: This issue is waiting on initial triage.Z-build-stdNightly: build-std

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions