Skip to content
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

uses function newer than declared crate bytes #394

Open
jonassmedegaard opened this issue Oct 15, 2022 · 1 comment
Open

uses function newer than declared crate bytes #394

jonassmedegaard opened this issue Oct 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@jonassmedegaard
Copy link

qp2p has declared a dependency on bytes 1.0.1, but uses function BytesMut::zeroed available only since bytes 1.2.0.

@jonassmedegaard jonassmedegaard added the bug Something isn't working label Oct 15, 2022
@jonassmedegaard
Copy link
Author

jonassmedegaard commented Oct 15, 2022

Here's an error message from building against bytes 1.1.0:

error[E0599]: no function or associated item named `zeroed` found for struct `BytesMut` in the current scope
   --> /usr/share/cargo/registry/safe-network-0.71.1/debian/cargo_registry/qp2p-0.30.0/src/wire_msg.rs:122:31
    |
122 |                     BytesMut::zeroed(4).freeze(), // at least 4 bytes reserved here to aid deserialisation
    |                               ^^^^^^ function or associated item not found in `BytesMut`

error[E0599]: no function or associated item named `zeroed` found for struct `BytesMut` in the current scope
   --> /usr/share/cargo/registry/safe-network-0.71.1/debian/cargo_registry/qp2p-0.30.0/src/wire_msg.rs:123:31
    |
123 |                     BytesMut::zeroed(4).freeze(), // at least 4 bytes reserved here to aid deserialisation
    |                               ^^^^^^ function or associated item not found in `BytesMut`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant