-
-
Notifications
You must be signed in to change notification settings - Fork 884
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
Initial commit to bump diesel to 2.0.0-rc.0 and see what happens #2257
Conversation
One thing I could think to do is EDIT: I did the above and it seems like the rest are failing due to incompatibilies with the The following pass
|
The correct way to build a single crate in a workspace is The error with Utc::now() can be fixed by enabling the |
Thanks! I had to add "chrono" to the features param in the |
0201546
to
bf8f55d
Compare
Sigh I'm afraid I may have bitten off more than I can chew at the moment; the main thing that makes me say this is that from the root dir, running These lines in particular
the conn I know should be a mutable reference. But still when I do
I get a successful build. So I'm definitely out of my depths on both (a) general Rust dev workflows as well as (b) what in the world else could be done here while waiting for Anyway happy to keep this PR open, or close it, or -- if some advice can be given -- press onward! |
diesel-derive-newtype just got updated yesterday for diesel 2.0. |
Also besides newtype, run I also use rust-analyzer so you should be fine there, it occasionally needs you to run |
Thanks to both! Okay I'll take another stab at this this weekend -- will try bumping
Roger!
Ahhh the occasional |
a6d5fff
to
9380259
Compare
I was able to apply the upgrade to diesel-derive-newtype 2.0.0-rc.0 on your branch. This fixes most of the errors in db_schema, only a few remain (and tons of warnings). However CI fails, you need to run |
Cool; thanks for the tip about the nightly format stuff :) Also sorry I dropped off; but great to hear that a lot of the errors are fixed with the newtype bump! When I find some time I'll be happy to go through and do the rest of the grunt work for the remaining changes from diesel 2.0! |
new way to do migrations as suggested by the migration guide; a lot more compiles now, though I can't figure out this tricky ToSql issue at the moment
This needs a merge from main. |
Any update on this? |
Ah sorry unfortunately things got crazy and I took a new job 😅 and haven't had much time. I don't know how far this branch has gotten from |
No probs @chusteven . Now that diesel 2.0.0 is released, I should make this a priority, so I'll create my own branch off of this. Your work will not go to waste! |
Closing in favor of #2452 . Your commits were not wasted, thx for helping out! |
Re: #2234
diesel
has released an RC for 2.0 (release notes here). I wanted to see what effort was involved in using this new version ofdiesel
. I'm putting up this PR to collaborate with the maintainers on how we can potentially modularize (or not) this version bump. Some things to watch out for:Full migration guide here; and bug tracking discussion here
diesel-newtypes
crate needs to be bumped too