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

Avoid a direct dependency on build_const #26

Merged
merged 1 commit into from
Dec 30, 2017
Merged

Avoid a direct dependency on build_const #26

merged 1 commit into from
Dec 30, 2017

Conversation

whitequark
Copy link
Contributor

See rust-lang/cargo#4866 for explanation.

@mrhooray
Copy link
Owner

lgtm if this is what it takes
@vitiral any suggestions/concerns?

@mrhooray
Copy link
Owner

@whitequark do you think of a test for nostd support so that we don't regress in the future?

@whitequark
Copy link
Contributor Author

whitequark commented Dec 27, 2017

@mrhooray I don't think this test can be written without a custom rustc sysroot. In fact, nostd works right now, but only on targets with std; it's not that nostd is broken completely in crc-rs, it's more subtle.

@vitiral
Copy link
Contributor

vitiral commented Dec 30, 2017

This looks good. I think it is a probably a good idea to avoid a direct dependency. I only added it for convienience in the first place and it does almost the exact same thing.

That bug is a pretty interesting one. Makes build_const quite a bit less ergonomic :(

@vitiral
Copy link
Contributor

vitiral commented Dec 30, 2017

sorry about breaking nostd @whitequark, and thanks for fixing!

@mrhooray mrhooray merged commit f6e6b19 into mrhooray:master Dec 30, 2017
@whitequark
Copy link
Contributor Author

Thanks!

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