Open conanchen opened 1 year ago
Thanks for letting us know. We are currently sunsetting the project though, please see #512. You may have more luck with the latest version from master
branch. I've already yanked all of the releases.
Hey @conanchen. The issue is that rust-ipfs isnt updated for libp2p v0.48. There has been breaking changes done. I do have it working on my own fork at https://github.com/dariusc93/rust-ipfs but you might want to fork off of it since I have been doing passive maintenance on it, while also making changes as an experiment, but overall it does work with the latest libp2p (which also do work with that example) and do try to keep it up dated with it.
Describe the bug
To Reproduce
target/debug/examples/fetch_and_cat --default-bootstrappers bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi
... restore_bootstrappersExpected behavior the example can fetch the file ( bafybeigdyrzt5sfp7udm7hu76uh7y26nf3efuylqabf3oclgtqy55fbzdi ) from ipfs network:
Environment (please complete the following information)
Additional context
error[E0432]: unresolved import
libp2p::core::connection::ListenerId
--> src/p2p/pubsub.rs:11:48 | 11 | connection::{ConnectedPoint, ConnectionId, ListenerId}, | ^^^^^^^^^^ noListenerId
inconnection
error[E0432]: unresolved import
libp2p::tcp::TokioTcpConfig
--> src/p2p/transport.rs:9:5 | 9 | use libp2p::tcp::TokioTcpConfig; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ noTokioTcpConfig
in the rooterror[E0432]: unresolved import
libp2p::core::connection::ListenerId
--> src/lib.rs:93:9 | 93 | connection::ListenerId, multiaddr::multiaddr, multiaddr::Protocol, Multiaddr, PeerId, | ^^^^^^^^^^^^^^^^^^^^^^ noListenerId
inconnection
For more information about this error, try
rustc --explain E0432
. error: could not compileipfs
due to 4 previous errors