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 cargo 1.55+ build #87

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Fix cargo 1.55+ build #87

merged 1 commit into from
Nov 29, 2021

Conversation

Tirka
Copy link
Contributor

@Tirka Tirka commented Nov 28, 2021

Environment variable RUSTFLAGS is not available within build.rs script since 1.55 version of cargo.

Currently, I'm not sure if this is a bug and waiting for clarification.
Tracking issue: rust-lang/cargo#10111.

This Pull Request fixes the problem by using the newly introduced environment variable CARGO_ENCODED_RUSTFLAGS which wraps RUSTFLAGS while keeping backward compatibility.

@darrenldl
Copy link
Contributor

Thanks!

@darrenldl darrenldl merged commit 6778d1b into rust-rse:master Nov 29, 2021
@Tirka
Copy link
Contributor Author

Tirka commented Nov 29, 2021

Thank you for your quick response! Could you publish the updated crate to crates.io?

@darrenldl
Copy link
Contributor

I no longer use this crate (or Rust in general) - could I add you as a repo collaborator and crate owner if you're an active user?

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.

2 participants