Explicit standard library dependencies · Issue #5002 · rust-lang/cargo (original) (raw)

(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:

CC @japaric @nrc