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

Check CARGO_ENCODED_RUSTFLAGS of cargo 1.55+, prefer over RUSTFLAGS #38

Closed

Conversation

ColinFinck
Copy link

To work around rust-lang/cargo#10321 that occurs with cargo 1.55.0 and later.

src/lib.rs Outdated Show resolved Hide resolved
@cuviper
Copy link
Owner

cuviper commented Jan 26, 2022

Thanks! However, I did also find my own WIP code I had mentioned, now posted as #39. Besides some refactoring, one difference is that I did not use the same split sequence for both environment variables, because Cargo itself treats them differently. In particular, it does not trim or skip empty args, only skipping if the whole variable is empty.

If you have a real workload that needs this, can you see if my change will work for you?

@cuviper
Copy link
Owner

cuviper commented Feb 7, 2022

#39 is merged and published as 1.1.0, as well as a re-export as 0.1.8.

@cuviper cuviper closed this Feb 7, 2022
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.

3 participants