Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upCargo versioning #2182
Conversation
joshtriplett
added
the
T-cargo
label
Oct 19, 2017
This was referenced Oct 19, 2017
This comment has been minimized.
This comment has been minimized.
|
To summarize the RFC as I understand it: the idea is that cargo can figure out your minimum version requirements based on what features of cargo are necessary to compile it, and that it will then record it in the index entry for your crate. This will then influence error messages and version resolution. The user interface doesn't need to change to support this (that is, you don't specify a minimum version in your Cargo.toml). Is that right? |
This comment has been minimized.
This comment has been minimized.
bryteise
commented
Oct 19, 2017
|
Would it be possible to allow an optional cargo version number if crate authors want to be able to enforce they will be using other newer features of cargo but currently do not? |
This comment has been minimized.
This comment has been minimized.
|
@withoutboats Correct. This is best-effort, and if the schemas turn out to be incorrect we can fix bugs in them. @bryteise Perhaps, though the default |
joshtriplett
changed the title
Add Cargo versioning RFC
Cargo versioning
Oct 20, 2017
joshtriplett
referenced this pull request
Nov 7, 2017
Open
Add guidance about bumping the minimum required `rustc` version #123
matklad
referenced this pull request
Nov 27, 2017
Closed
How to get a version of `rustc` which is used by `cargo`? #2833
This comment has been minimized.
This comment has been minimized.
|
Sorry to take so long to get to this. This is generally quite good, but I am also a bit wary of no manual recourse in
seem sub-par. crates.io access for non-crates.io deps seems likely to cause confusion, non-determinism, and annoyance when there is no internet access. An optional schema version in |
This comment has been minimized.
This comment has been minimized.
|
N.B. haskell/cabal#4899 is the plan for schema versions for Cabal. Their situation is more awkward because Cabal files are a non-standard syntax, in addition to schema within that syntax, but I'd thought i'd still link for reference. |
joshtriplett commentedOct 19, 2017
•
edited
Rendered
RFC co-authored by myself and @wycats, and pre-reviewed by @alexcrichton.