-
Notifications
You must be signed in to change notification settings - Fork 276
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
Turn std_detect into a no_std crate #1005
Conversation
@Amanieu: no appropriate reviewer found, use r? to override |
935acb8
to
fbf6e04
Compare
fbf6e04
to
6af519d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me.
It's not finished yet, I still need to remove dependencies on |
Poke me and I'll look into it again when ready :) |
33ebdd1
to
eb0d413
Compare
@lu-zero Should be ready for review now. |
@@ -121,31 +121,11 @@ impl Cache { | |||
} | |||
} | |||
|
|||
cfg_if::cfg_if! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you want to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed std_detect_env_override
to use libc instead of std.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you a lot!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work on Windows? I did guess not.
dee023f
to
20b51b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, thank you :)
The goal of this PR is to turn
std_detect
into a properno_std
crate so that we can avoid dealing with the mess of including it as a submodule ofstd
.