Struggling to upgrade to v0.48 #3198
-
Hi All, Not sure if this is the right place to ask this question but here goes. I wanted to start playing with libp2p and started with the example at Log Rocket but found the version of libp2p being used was 0.31 so took a copy of the code repo and started to make the required changes to move it to version 0.47. I now have that working here but when I change the libp2p version to 0.48 I hit a problem with one of the elements of the Behaviour struct (which had The error I am receiving is:-
I have searched through issues and discussions and the nearest issue I can find is the problems related to using Generics in the struct and I don't think that is relevant here. Can anyone point me in the right direction? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
It is!
You are probably better off by looking at one of the existing examples: https://github.com/libp2p/rust-libp2p/tree/master/examples Does the compile output any deprecation warnings at all on version 0.47? We usually try to guide users through breaking changes with that. |
Beta Was this translation helpful? Give feedback.
It is!
0.31
is quite an old version and a few things have changed. It might be a bit much but you could read through the CHANGELOG to figure out how to migrate that code.You are probably better off by looking at one of the existing examples: https://github.com/libp2p/rust-libp2p/tree/master/examples
Does the compile output any deprecation warnings at all on version 0.47? We usually try to guide users through breaking changes with that.
NetworkBehaviourEventProcess
and the ability to ignore fields has been removed inlibp2p-swarm-derive v0.30.0
: https://github.com/libp2p/rust-libp2p/blob/master/swarm-derive/CHANGELOG.md#0300 in fa…