-
-
Notifications
You must be signed in to change notification settings - Fork 465
Use Rust 2018 and remove build.rs
#824
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
This is no longer required, because our minimum Rust version is high enough. Removing it results in faster compilation.
Thanks @vks! Shall we add a new policy? All PRs should add a note to the changelog (unless very minor). This would save us the job of going back through PRs for the next release. (@newpavlov may like to comment too since he is also a long-term contributor.) Edit: I see someone suggested the same thing on Reddit. Lets start that trend from here on, unless you have objections. |
I don't understand why the examples fail to build. |
Me neither (I can reproduce the issue). Not much time to look into it now. |
It's caused by adding the following code in 294d16c. #![cfg(all(feature="alloc", not(feature="std")))]
extern crate alloc; |
With the nightly compiler, we can (a) remove Unfortunately (b) is incompatible with current stable compilers, leaving us stuck. @SimonSapin landed the |
Could we force to use edition idioms by adding |
@dhardy Could it also be a cargo bug related to examples? Currently, it seems like we have to wait for |
I don't believe it is a Cargo bug. I can extract the
The module is just: |
Stranger: if I replace (Setting |
The line above |
Remaining errors:
|
All checks passed. Thanks @vks! |
This updates the remaining code to use Rust 2018 and removes all
build.rs
, which are no longer necessary, because we support only Rust 1.32 and higher.