5 ms·
What does nightly mean ? I hate that you could not know a specific version of a nightly.
by revskill 2y ago
What does nightly mean ? I hate that you could not know a specific version of a nightly.
- nindalf 2y agoThe 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 2y agoIs 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 2y agohttps://raw.githubusercontent.com/rust-lang/surveys/main/surveys/2023-annual-survey/report/annual-survey-2023-report.pdf 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 2y ago> 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 2y agoYou can pin versions with the rust-toolchain.toml file you need to be using Rustup afaik. Nightly is just the daily builds.
- johnisgood 2y agoI 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 2y ago"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 2y agoRight, not everything gets merged to stable. In that case: letting us know the specifics beyond "nightly" is advisable, IMO.
- do_not_redeem 2y agoThe readme does mention the specifics, immediately after mentioning nightly. > BREAKPOINTS REQUIRE ENABLING THE EXPERIMENTAL core_intrinsics FEATURE
- johnisgood 2y agoHow do I know which versions of nightly support that feature, and that specific version of the feature though? I like your username.
- GolDDranks 2y agoJust 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.
- landr0id 2y agoIt'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-features/core-intrinsics.html 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.