Turn std_detect into a no_std crate#1005
Merged
Amanieu merged 5 commits intorust-lang:masterfrom Feb 14, 2021
Merged
Conversation
|
@Amanieu: no appropriate reviewer found, use r? to override |
935acb8 to
fbf6e04
Compare
fbf6e04 to
6af519d
Compare
Member
Author
|
It's not finished yet, I still need to remove dependencies on |
Contributor
|
Poke me and I'll look into it again when ready :) |
33ebdd1 to
eb0d413
Compare
Member
Author
|
@lu-zero Should be ready for review now. |
lu-zero
reviewed
Feb 14, 2021
| } | ||
| } | ||
|
|
||
| cfg_if::cfg_if! { |
Contributor
There was a problem hiding this comment.
why do you want to remove it?
Member
Author
There was a problem hiding this comment.
It's never used.It's never tested.In fact the feature flag is even missing fromCargo.toml.
So apparently I'm bad at grep and completely missed the test cases in the CI config in .github. I'll undo the removal.
Member
Author
There was a problem hiding this comment.
I changed std_detect_env_override to use libc instead of std.
Member
There was a problem hiding this comment.
Does this work on Windows? I did guess not.
dee023f to
20b51b8
Compare
lu-zero
approved these changes
Feb 14, 2021
Contributor
lu-zero
left a comment
There was a problem hiding this comment.
Looks fine to me, thank you :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The goal of this PR is to turn
std_detectinto a properno_stdcrate so that we can avoid dealing with the mess of including it as a submodule ofstd.