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 upSpecify version of Rust required #1214
Comments
This comment has been minimized.
This comment has been minimized.
|
This specifically is a dupe of #837 and #1044 and is somewhat related to #967. In general I do not think that we have enough experience with a post-1.0 Rust compiler to render a verdict on whether a feature like this will be necessary right out of the gate. I suspect that what I might imagine the feature would look like today may be quite a different picture a year or so from now. I'm going to close this for now (as with the dupe issues) for the same reasons, those being that right now I do not believe we want to take action here and we always can do so after the fact :) |
alexcrichton
closed this
Jan 24, 2015
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton I think we might be able to get a half win. Is it valid syntax to add to one's [package]
rust = "1.0.0.alpha"If it isn't, then I think the best thing is to just allow that and either do nothing with it or include it in the That's the least amount of work and functionality that I can think of from Cargo, everything else belongs to a developer's version manager. |
This comment has been minimized.
This comment has been minimized.
|
Currently you can put any valid syntax in a manifest, but you'll get warnings about unused keys. The lockfile also contains a metadata section which is blindly preserved by Cargo to be forwards-compatible with a feature such as this. |
alexcrichton
referenced this issue
May 31, 2016
Closed
Proposal: Add a `minimal-rust-version` flag to crates manifest #2751
emk
referenced this issue
Sep 19, 2016
Closed
Specify desired Rust version using `Cargo.toml` `[metadata]` section with `rustup_channel`? #11
This comment has been minimized.
This comment has been minimized.
briansmith
commented
Apr 23, 2017
|
Here's an example demonstrating the need for this feature: briansmith/ring#521. When code fails to build, there are all kinds of possible reasons. If we know the code won't build with an older version of rustc, then having some way of informing the user of that can save both the user and the crate maintainer a lot of time. |
briansmith
referenced this issue
Apr 23, 2017
Closed
Build failing - `Elem` was already imported #521
This comment has been minimized.
This comment has been minimized.
sanmai-NL
commented
Apr 28, 2017
•
|
Being unable to specify the |
BenMorganIO commentedJan 24, 2015
Coming from a ruby background, inside of a
Gemfileyou would be able to specify a version of ruby that your project was using. This was quite helpful.Example:
Since Rust is constantly changing as it nears 1.0 and goes beyond, I'm wondering if Cargo is able to do this? This would be helpful in managing dependencies.
The issue of rust versioning for dependencies occurred when I tried to use start up the nickel demo application. It did not work on rust 1.0.0.alpha.
Cargo.tomlto specify your applications version of rust?Maybe: