| ▲ | revskill 5 days ago |
| What does nightly mean ? I hate that you could not know a specific version of a nightly. |
|
| ▲ | nindalf 5 days ago | parent | next [-] |
| The master branch of the Rust repo is built every night and distributed. That's a nightly build. Most people are on the stable release, which is updated every six weeks. A minority use the nightly build for various reasons: a feature that hasn't reached stable yet, or because they want to help test the nightly releases and prevent bugs from reaching stable. |
| |
| ▲ | jtrueb 5 days ago | parent [-] | | Is it a minority? Are there stats posted for this? Only recently have I had some projects switching to stable after their required features stabilized. | | |
| ▲ | JoshTriplett 5 days ago | parent | next [-] | | https://raw.githubusercontent.com/rust-lang/surveys/main/sur... 89.4% of users surveyed use stable. 31.1% use nightly, but there's overlap there (e.g. I use nightly to try out new things but don't build things that depend on nightly). Only 11.5% of people say they use a crate that requires it. | |
| ▲ | littlestymaar 5 days ago | parent | prev [-] | | > Only recently have I had some projects switching to stable after their required features stabilized. While this used to be very common back then (in 2016-18 many things where progressively stabilized and you had cornerstone libraries switching to stable at almost every release) it hasn't been so for the past 5 years. Rust gets way less “exciting” new features nowadays, as the language has settled a lot (there are still moving parts, but they are the minority not the norm). |
|
|
|
| ▲ | dvtkrlbs 5 days ago | parent | prev | next [-] |
| You can pin versions with the rust-toolchain.toml file you need to be using Rustup afaik. Nightly is just the daily builds. |
| |
| ▲ | kookamamie 5 days ago | parent | next [-] | | I thought nightly is for nightly builds. I'll get my coat. | |
| ▲ | johnisgood 5 days ago | parent | prev [-] | | I assume any "nightly" version would work in this context, meaning it would not refer to a version from a year ago, as it would have already been made stable by that point, right? | | |
| ▲ | traxys 5 days ago | parent | next [-] | | "nightly" versions also allow to use unstable features, and unstable features may remain so for a very long time (potentially forever) without breaking, so an old nightly could maybe work | | |
| ▲ | johnisgood 5 days ago | parent [-] | | Right, not everything gets merged to stable. In that case: letting us know the specifics beyond "nightly" is advisable, IMO. | | |
| ▲ | do_not_redeem 5 days ago | parent [-] | | The readme does mention the specifics, immediately after mentioning nightly. > BREAKPOINTS REQUIRE ENABLING THE EXPERIMENTAL core_intrinsics FEATURE | | |
| ▲ | johnisgood 5 days ago | parent [-] | | How do I know which versions of nightly support that feature, and that specific version of the feature though? I like your username. | | |
| ▲ | GolDDranks 5 days ago | parent [-] | | Just use a recent nightly and you should be fine. Rust project doesn't offically provide support even for old stable versions, so "using nightly" with no specifics generally means using any nightly build, around or newer than, the current stable release. |
|
|
|
| |
| ▲ | monocasa 5 days ago | parent | prev [-] | | A lot of people pin a specific nightly since the feature they're depending on could change (or ostensibly it would be in stable), so they can keep working without continuously having to track nightly changes or deal with it breaking on a different system with a different nightly version. That obviously only works for non-library uses of nightly. |
|
|
|
| ▲ | landr0id 5 days ago | parent | prev [-] |
| It's a bit unfortunate wording but it basically requires any nightly toolchain version. It uses `std::intrinsics::breakpoint()` which is a compiler intrinstic. This has been available for a long time, but afaik will never be exposed on a stable toolchain. Per https://dev-doc.rust-lang.org/nightly/unstable-book/library-... >This feature is internal to the Rust compiler and is not intended for general use. |