You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you set rust-version = "1.77" in Cargo.toml and use the new cargo:: build script syntax, you will get this wonderful error:
error: the `cargo::` syntax for build script output instructions was added in Rust 1.77.0, but the minimum supported Rust version of `foo v0.1.0 (/tmp/foo)` is 1.77.
The workaround is to specify rust-version = "1.77.0", even though 1.77 and 1.77.0 mean exactly the same thing in semver.
Problem
If you set
rust-version = "1.77"
inCargo.toml
and use the newcargo::
build script syntax, you will get this wonderful error:The workaround is to specify
rust-version = "1.77.0"
, even though1.77
and1.77.0
mean exactly the same thing in semver.Steps
cargo new foo
Cargo.toml
:build.rs
and paste this:cargo check
Possible Solution(s)
Maybe replace
<
with!is_compatible_with
here:cargo/src/cargo/core/compiler/custom_build.rs
Line 730 in e91b58d
Notes
No response
Version
The text was updated successfully, but these errors were encountered: