-
Notifications
You must be signed in to change notification settings - Fork 67
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
Upgrade diesel from 0.16 -> 1.x #229
Conversation
Looks like the test failures is due to failing to |
Hi, thanks so much! Sorry about broken CI, I believe the issue here is being caused by a couple of issues that should be resolved in #232. Once that passes and lands you should be able to rebase onto master and get CI happy again. |
#232 is now merged :) |
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.
Awesome! One question about the version changes.
Cargo.toml
Outdated
r2d2 = "0.7.1" | ||
r2d2-diesel = "0.16" | ||
r2d2 = "0.8.2" | ||
r2d2-diesel = "1.0.0" |
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.
Reading the changelog you linked (super helpful), looks like you may want to double check this: https://github.com/diesel-rs/diesel/blob/master/CHANGELOG.md#added-4
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.
Woops, that completely passed me by. Good catch!
dd1b9d6
to
a40a3f3
Compare
I've rebased and replaced r2d2, and yay! The tests pass! Thank you both. I forgot to mention that currently the diesel macros are causing a load of warnings during compilation, due to diesel-rs/diesel#1785. The fix has already landed, but hasn't been released yet. We can suppress these warnings for now by adding |
@Centril do you have a strong opinion about how to handle the warnings from diesel? |
I'm guessing by the tumbleweed it might be a no? 😇 |
I have no opinions at all :) @anp please merge this if you are satisfied with it =P |
See diesel changelog for details about the API changes.
Admittedly this is mainly motivated because I was getting confused at the old
on_conflict
syntax compared with newer versions of diesel.(I also had to add
#![feature(never_type)]
to make rfcbot compile at all).(I cheekily ran cargo update as well, which I had forgotten about).