-
Notifications
You must be signed in to change notification settings - Fork 529
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
dev: future returned by Session::connect() is no longer Send #1065
Comments
Well regression... this is new functionality but still! Thanks for that minimal working example. From a quick look it seems that the problem is that one of the variants of I don't have much time right now but maybe that either of these offer some direction. |
Let's say it's a regression from an older
I reported the problem to the rsa crate as well: RustCrypto/RSA#214 |
rsa::padding::PaddingScheme is !Send, making it impossible to call Session::connect() with an executor requiring Send futures, such as Rocket. Fix librespot-org#1065
Then we can easily workaround this problem: #1066 |
See this simple change to demonstrate the problem:
This doesn't work because the
Future
returned bySession::connect()
is notSend
.Because of this
librespot
cannot longer be used with framework such as Rocket which requires futures to be Send.This used to work fine with an older version so this is likely a regression.
The text was updated successfully, but these errors were encountered: