Skip to content

Move rustc_version dep to autocfg - #664

Merged
dhardy merged 1 commit into
rust-random:masterfrom
alexcrichton:version-check
Dec 14, 2018
Merged

dhardy merged 1 commit into
rust-random:masterfrom
alexcrichton:version-check

Conversation

@alexcrichton

Copy link
Copy Markdown
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.

@dhardy dhardy left a comment

Copy link
Copy Markdown
Member

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.

Comment thread build.rs Outdated
@alexcrichton

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@vks vks left a comment •

Copy link
Copy Markdown
Contributor

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

dhardy commented Dec 14, 2018

Copy link
Copy Markdown
Member

Agreed! Thanks all.

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

nox commented Oct 15, 2019

Copy link
Copy Markdown
Contributor

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

@vks

vks commented Oct 15, 2019

Copy link
Copy Markdown
Contributor

autocfg is not used in Rand anymore.

@nox

nox commented Oct 15, 2019

Copy link
Copy Markdown
Contributor

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