-
Notifications
You must be signed in to change notification settings - Fork 301
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
Breakage in v1.10.0: multiple try_get_u32
found
#767
Comments
We added new methods to the |
Yes, I understand that, but that broke downstream, hence my bug report. But since you bumped the version to 1.10 I don't understand why it got pulled in since russh-sftp uses |
Cargo's understanding of semver is that non-breaking changes can be used eagerly. So when you see While it does mess with inference, adding methods is not normally considered a breaking change, otherwise libraries could never add anything. |
I see. Since cargos handing on semver, I realize that it would be impossible to bump major version everytime a change like this is done in a library. I guess downstream just have to adapt to these kind of changes. |
This is pretty sad :( It's true that adding methods to traits is often considered acceptable breakage, but it depends on how widespread the conflict is, and we might want to revert this is this is too common. What library does the |
It seems to have been an internal generic impl. So, this seems to be limited to russh-sftp |
Actually, many people/projects use a similar custom implementation of |
try_get_u32
found
this is unfortunate, I would really like to have these methods on BytesMut but this is definitely a breaking change. See: https://github.com/tychedelia/kafka-protocol-rs/blob/main/src/protocol/buf.rs which encounters the same issue as OP. |
We found a way to compile kafka-protocol-rs both with and without this change: tychedelia/kafka-protocol-rs#108 |
When I try to build russh-sftp I get
Setting
bytes = "=1.9"
solved this issue.... so I'm not sure if bytes is the problem here or cargo is resolving things wrong... but it is an issue anyway.The text was updated successfully, but these errors were encountered: