-
Notifications
You must be signed in to change notification settings - Fork 161
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
set MSRV (to 1.53) #195
set MSRV (to 1.53) #195
Conversation
I included testing on macOS and Windows, for I was curious |
README.md
Outdated
The minimum supported Rust toolchain is v1.53.0, | ||
due to usage of or-patterns syntax. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we should mention why it's 1.53.0. We might use other features later and this would be outdated.
The minimum supported Rust toolchain is v1.53.0, | |
due to usage of or-patterns syntax. | |
The minimum supported Rust toolchain is v1.53.0. Sycamore is not guaranteed to compile on an older version of Rust. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bumping MSRV is an explicit (and somewhat rare) thing, and one that does it would know why, and would not miss updating this. An alternative is to only care about supporting latest stable
, and that's when I think the reason is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I wasn't being clear here. What I meant was that or-patterns might not be the only 1.53 feature we use. I seem to recall that RefCell::take
and a few other functions were also stabilized recently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only error I get when compiling with 1.52 is about or-patterns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But setting our MSRV to 1.53.0 does not mean that or-patterns is the only feature we are allowed to use. And technically, we could remove or-patterns from the code base to make it compatible with older versions of Rust. It's not like it's as crucial as some other features like specialization
or fn_traits
.
What I meant about A simple fix for this would be to add the following to the tests in #[test]
fn ui() {
if std::env::var("RUN_UI_TESTS").is_ok() {
// stuff here
}
} And only set the environment variable when |
a32da6d
to
5e0554c
Compare
Also, run UI test only on a single compiler version, because rustc error messages tend to vary between releases. Closes sycamore-rs#191
Awesome. Thanks! |
No description provided.