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

Move rustc_version dep to autocfg #664

Merged
merged 1 commit into from
Dec 14, 2018

Conversation

alexcrichton
Copy link
Contributor

The rustc_version dependency is weighty and suffers from
djc/rustc-version-rs#11 which makes it more difficult to change
rustc over time.

Copy link
Member

@dhardy dhardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shame the syntax is so much more clunky, but looks adequate.

@alexcrichton
Copy link
Contributor Author

I've proposed a slightly tweaked API which in theory could make this much more ergonomic, and it's fine to wait for the resolution of that!

The `rustc_version` dependency is weighty and suffers from
djc/rustc-version-rs#11 which makes it more difficult to change
rustc over time.
@alexcrichton alexcrichton changed the title Move rustc_version dep to version_check Move rustc_version dep to autocfg Dec 13, 2018
@alexcrichton
Copy link
Contributor Author

Ah I also discovered autocfg just recently which also looks great!

Copy link
Collaborator

@vks vks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I think it should be merged.

@dhardy
Copy link
Member

dhardy commented Dec 14, 2018

Agreed! Thanks all.

@dhardy dhardy merged commit 198e2e9 into rust-random:master Dec 14, 2018
@nox
Copy link
Contributor

nox commented Oct 15, 2019

autocfg seems to hinders cross-compilation and workflows involving RUSTFLAGS.

@vks
Copy link
Collaborator

vks commented Oct 15, 2019

autocfg is not used in Rand anymore.

@nox
Copy link
Contributor

nox commented Oct 15, 2019

Oh yeah, forgot we are still on rand 0.6, sorry for the noise.

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.

4 participants