-
Notifications
You must be signed in to change notification settings - Fork 105
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
dependencies "contain code that will be rejected by a future version of Rust" #271
Comments
Thanks for the report @MightyPork - I tend to agree that switching to a maintained provider of I'd accept a PR to do that, otherwise I will look at it myself when I have time. |
This is, unfortunately, more trouble than it initially seemed.
The spanner in the works comes from Rouille can't be the only place these new deprecation warnings are showing up so I'll see if there is any information elsewhere about what the suggested migration plan is. |
Is it possible to make |
Yes, but doing so is a breaking change and requires a Regardless you'd still be caught out by the hit on |
I don't have either of these in my dependency tree:
|
…cies (`buf_redux`, `multipart`). See: tomaka/rouille#271
What is the path forward here? There is now a somewhat recent RUSTSEC advisory for |
How are Hyper and traitobject relevant here? They don't seem to be dependencies of Rouille. |
Hi! warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0 |
Hello everybody! Rouille is basically the only synchronous web framework out there and I really enjoy using it, but it seems like there is no concrete way forward and no simple solution. I'd love to contribute, but simply don't have the skills to maintain a fork of the multipart crate. Basically, my question boils down to this: Does rouille have a future or is now the time to switch to some other web framework? |
I have been seriously thinking of forking Rouille and multiple unmaintained dependent crates. I think there is a place and value for threaded, non-async libraries too. |
Hi folks. I don't have a huge amount of time available to devote to Rouille anymore - I previously worked somewhere that made extensive use of it for backend services, but have since moved on. To fix this particular issue, a replacement for the deprecated Multipart crate needs to be found. The problem when I tried, was that the maintained crates I found all assumed the use of Hyper and Async, and provided no Sync or standalone functionality. You can of course write a sync wrapper around any trivial async code that doesn't directly interact with a runtime, I simply didn't have the time to do so. I can continue to read and accept PRs for this, but I can't promise much work on it myself. |
If somebody is willing to do the work, the easiest thing is probably just to duplicate the source of |
I'm getting this warning when built using latest rustc:
warning: the following packages contain code that will be rejected by a future version of Rust: buf_redux v0.8.4, multipart v0.18.0
multipart
is abandoned andbuf_redux
is its abandoned dependency. The cleanest fix would be to switch to something else providing multipart encoding.I made local forks of the affected crates and fixed it, also upgraded them to 2021 edition.
The fix was trivial, mostly just adding dyn and removing some semicolons in macros.
Here's the patches needed to do that:
buf_redux:
5514df91edd41543afa8b51c51fd3824b66e8b67.diff.txt
multipart:
f56611df6a528ab3141c1f9a047401f2140fb69a.diff.txt
The text was updated successfully, but these errors were encountered: