-
Notifications
You must be signed in to change notification settings - Fork 950
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 bytes to 0.5 #1351
Comments
What problems exactly? |
@twittner The versions are incompatible so you can't pass bytes from soketto to libp2p. This prevents me from being able to downgrade a websocket transport to the inner transport and keep the bytes buffer. |
You can keep and use any bytes-0.5 types encapsulated within your transport. The transport's output type would most likely have to implement |
#1353 mostly did the upgrade, but leaving open as there's still a |
`bytes` 0.5 had a couple of breaking changes, specially the split of `Bytes` and `BytesMut`. Given how much this code use methods avaialable only on `BytesMut`, this comit changes the internal field to use this struct and some smaller code changes to adapt to it. Closes libp2p#1351
Version 0.5 of the bytes crate has several breaking changes that mean we lose backwards compatibility with older versions. This causes some problems as soketto uses bytes 0.5, while we use bytes 0.4.
The text was updated successfully, but these errors were encountered: