5 ms·
Yes and no. Granted, I'm a little bit of a newbie; but there seems to be a fervent use of the 'nightly' compiler, which obviously changes frequently. Stuff th
by dijit 6y ago
Yes and no.
Granted, I'm a little bit of a newbie; but there seems to be a fervent use of the 'nightly' compiler, which obviously changes frequently.
Stuff that targeted stable seems to still work. But a frightening number of crates will only work on nightly.
And I'm not sure if there was a "version" that ever worked on stable, as that information isn't immediately visible on crates.io.
- dathinab 6y agoThe person is speaking about idiomatic rust code and seems to assume a large code base needs to always be updated to be in the most idiomatic stile. Most creates working on nightly only where tryfrom and async ones before that became stable. Now it's still common to find embedding and "crazy" creates (like there one which uses asm to hack in green threads) which work only on nightly. Most maintained creates work on stable by now, but it's not un-common to have some nightly only features. Honestly I haven't run into a created I wanted to use which requires nightly in a long time. The only crate which did cause me headaches in the recent year was ring (rustls,webpki) but that had gotten better.
- gpm 6y ago> like there one which uses asm to hack in green threads Hey, I implemented that at one point (crazy is a good description)! But I didn't publish it on crates.io (just gitlab). Did someone actually publish a crate that does this?
- gpm 6y agoHonestly I find not that much needs nightly anymore, but > which obviously changes frequently. Not nearly as much as you would think. Everything that doesn't need a `#![feature(...)]` at the top of your crate never changes. Most `#![feature(...)]` flags enable things actually change pretty rarely - you can definitely go years on nightly without hitting a breaking change if you're conservative in your conservative in you feature set. > And I'm not sure if there was a "version" that ever worked on stable, as that information isn't immediately visible on crates.io. That would be a nice feature to have! But I bet that you would find that if a crate currently needs nightly, it needed nightly from basically the start.