Skip to content
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

Fix the build on Rust 1.73.0 and nearby versions #586

Merged
merged 1 commit into from
Jun 22, 2024
Merged

Conversation

asomers
Copy link
Owner

@asomers asomers commented Jun 22, 2024

Rust 1.71 and earlier ignored build script outputs like "cargo::name=value". Rust nightly from around 5-May-2024 complains about unexpected_cfgs , and the suggested solution is to add a "cargo::name=value" output to the build script. But intermediate Rust versions including 1.73.0 treat that syntax as an error. Happily, all tested Rust versions accept and understand "cargo:name=value" (note the single colon).

This fixes a regression introduced by #574 and not yet released.

Rust 1.71 and earlier ignored build script outputs like
"cargo::name=value".  Rust nightly from around 5-May-2024 complains
about unexpected_cfgs , and the suggested solution is to add a
"cargo::name=value" output to the build script.  But intermediate Rust
versions including 1.73.0 treat that syntax as an error.  Happily, all
tested Rust versions accept and understand "cargo:name=value" (note the
single colon).

This fixes a regression introduced by #574 and not yet released.
@asomers asomers merged commit dc4a28f into master Jun 22, 2024
2 of 3 checks passed
@asomers asomers deleted the cargo_name_value branch June 22, 2024 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant