-
Notifications
You must be signed in to change notification settings - Fork 811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Require minimum rust version in Cargo.toml instead of rust-toolchain file #2891
Conversation
bd322a7
to
c1095bd
Compare
Having a `rust-toolchain` file forces rustup to download the defined toolchain version, effectively preventing developers from using the version they already have installed in case it doesn't match. Using the `rust-version` field in `Cargo.toml` is the proper way for declaring a minimum supported rust version in my opinion, and it works with rust toolchains not installed by rustup.
I'm not sure if we want this. We need to double check that people using wasmer (as a lib) will not be enforced to use a specific Rust version |
The question is, what is the reason for having a |
Basically, when people clone the project and contribute to it they must know what is the minimum version expected to work to compile Wasmer and run it's tests with. When people use the library, they should not enforced to use a specific version of Rust. |
As for the libraries that use It does not provide any value to |
You do want this.
Caveat here is that rust before 1.56 will ignore rust-version:
This could be fixed by also bumping the edition to 2021. Anyway: wasmer-vm depends on corosensei, which already sets
You're misinterpreting this. The rust-version isn't used as a constraint for dependency resolution. The |
Description
Review