Update to a more recent rocket and rust toolchain#205
Conversation
| [dependencies.rocket_csrf] | ||
| git = "https://github.com/fdb-hiroshima/rocket_csrf" | ||
| rev = "896fcaf14bd85b3f8266c0201e5f61937d05aec9" | ||
| git = "https://github.com/lthms/rocket_csrf" |
There was a problem hiding this comment.
So yeah, I just want to emphasize once again, just to be clear, that this is meant to be temporary, until my changes (or equivalent changes) are pushed to the rightful upstream.
|
Related commits:
|
|
Thanks a lot for your help! Looks like a lot of errors are happening because of rwf2/Rocket@56c6a96, so adding |
|
I will try to do that, if that’s okay with you. |
|
Yes, of course! If you have any question about the code, you know you can ask me 😉 |
|
I’ve pushed a new commit that fixes the remaining errors. There remains a lot of warnings, though. |
|
Some warnings are due to a change in |
|
@lthms Could you please use the git repository directly in the Cargo.toml then, with a pinned |
|
I think the PR of interest is diesel-rs/diesel#1787 So we need to depend on at least this revision. Unfortunately, I don't know if there are pending issues in current |
|
Another solution could be to ignore these warnings for the moment… https://github.com/rust-lang/crates.io/pull/1469/files |
|
Once Plume-org/rocket_csrf#1 is merged, I will update |
With this patch, Plume will be use a more up-to-date revision of Rocket, that works with nightly-2018-07-17. It may have been able to make it work with a more recent revision, but it turns out rocket has introduced several breaking changes so I’d rather fix those. Besides updating rocket_i18n and rocket_csrf to use the same revision than Plume, this patch deals with the new implementation of the Uri<'_> type. It silents a class of warnings, to deal with a change in rustc which affects diesel. This latter change should be reverted as soon as diesel releases a new version of its crate.
|
From my perspective, this PR is now ready. I don’t think I have broken something, but I guess you never know :D. |
So, I have made some progress tonight, but unfortunately, this has become way more complicated than initially expected. The main reason is pretty simple: rocket has introduced some serious breaking changes related to the
Uritype, and I am not familiar enough unfortunately to fix them easily.I push this so you folks can have a look, maybe with enough familiarity this is trivial to fix.
Beware that this PR uses my forks of
rocket_{i18n,csrf}. They are basically working, AFAICT at least, but I wanted to have a working Plume before creating PR there.So, yeah. TL;DR: I tried and failed, but maybe what I achieved will help you?
To do before merging:
rocket_i18nrocket_csrf