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

Noob question: why nightly ? is it a permanent choice ? #36

Closed
jbruggem opened this issue Jun 5, 2018 · 3 comments
Closed

Noob question: why nightly ? is it a permanent choice ? #36

jbruggem opened this issue Jun 5, 2018 · 3 comments

Comments

@jbruggem
Copy link

jbruggem commented Jun 5, 2018

Disclaimer: I'm rather new to rust's world. My question might come from a lack of knowledge of how things work.

I'm interested in using this lib is a small pet project. I have been using rust's stable release so far for that project, which means it will fail to compile cron, which requires some nightly (?) features.

Is this permanent, or does cron aim to support rust stable at some point ?

More generally, is the choice to use nightly features guided by some kind of recommendation ? Should I myself follow those ?

Thanks for your help !

@zslayton
Copy link
Owner

zslayton commented Jun 5, 2018

Hello!

why nightly ?

I created cron for fun and wanted to take advantage of some unstable features. Specifically:

Is this permanent, or does cron aim to support rust stable at some point ?

I do not intend to add other unstable features to cron, so when these reach stable rust I can remove the nightly requirement. All of the remaining features have had their RFCs accepted and are being implemented, so it shouldn't be too much longer.

More generally, is the choice to use nightly features guided by some kind of recommendation ?

Building on stable should be the default choice for new crates. If there's a nightly feature you want to use that's just syntactic sugar for some existing Rust functionality, you might choose to avoid it for the sake of keeping your project on stable. However, some unstable features offer functionality that you can't achieve on stable. In that case, going with nightly would be your only option.

If the feature that you want to use is in a somewhat isolated part of your crate, you can allow users to opt into using it with Cargo features. I've never used this feature myself.

@jbruggem
Copy link
Author

jbruggem commented Jun 6, 2018

Hi zslayton,

thanks for the awesome, thorough and interesting reply !

@jbruggem jbruggem closed this as completed Jun 6, 2018
@zslayton
Copy link
Owner

zslayton commented Aug 6, 2018

Thanks to a recent pull request, the latest version of cron (v0.5.0) now builds on stable Rust (v1.28.0).

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

2 participants