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

Support nightly version of rust #101

Closed
cybertanyellow opened this issue Apr 27, 2021 · 2 comments
Closed

Support nightly version of rust #101

cybertanyellow opened this issue Apr 27, 2021 · 2 comments

Comments

@cybertanyellow
Copy link

Is it possible to support nightly version of rust? the main purpose is to build rocket web framework
Or if have supported, how to configure in meta-rust-bin?

Thanks,

@nastevens
Copy link
Member

We don't currently support nightly, and there's a couple of reasons for that:

  • Right now generation of new releases is manual and it's unlikely we'd ever be able to keep up with daily updates. So automation of new releases would have to come first.
  • The versioning is messy because of how channel information is provided by rust-lang. We request https://static.rust-lang.org/dist/channel-rust-<version>.toml to get the manifest of files we need to download. You can absolutely request https://static.rust-lang.org/dist/channel-rust-nightly.toml, but unlike fixed release versions, that's going to change every day. That makes recreating past nightly releases difficult if not impossible. And in Yocto not being able to recreate a build is usually a bad thing, so not something we'd considered before.
  • Us old embedded developers are scared of anything that hasn't been released for at least a decade or so (mostly kidding)

That said, you are not out of luck! The build-new-version.sh script in the root of the repo will work just fine with nightly. So you can do

./build-new-version.sh nightly

and create your own recipes for nightly toolchains. If you're only targeting one architecture you can remove unneeded ones from https://github.com/rust-embedded/meta-rust-bin/blob/master/build-new-version.sh#L22

Let me know how it goes!

@sprhawk
Copy link
Contributor

sprhawk commented Dec 9, 2021

@cybertanyellow try this PR: #109

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

No branches or pull requests

3 participants