libp2p-rs v0.2.1&0.2.2 version introduction

v0.2.1 was released in 1.26, adding support for async-std and tokio libraries.

0.2.2 was released in 3.1. Most of the problems with this version were found in the process of porting rust-ipfs. The porting has been completed. The project address is https://github.com/netwarps/rust-ipfs, the main update content It is an upgrade and optimization of the existing API and code structure.

Add

Runtime:

Support async-std and tokio, encapsulate the two runtimes, and specify them for use through feature. The current default is async-std

modify

Swarm:

To implement trait ProtocolImpl, there are two methods: handler() returns IProtocolHandler, which can be used by Swarm to construct a protocol handler; start() will consume itself and start a loop to process protocol related information.

FloodSub:

  1. Use Arc to wrap Message to avoid multiple clones in multiple subscribers.
  2. Optimize more .await in the code and move to a separate task to execute related logic

When:

  1. Support to pass in multiple nodes during bootstrap, and at the same time you can choose whether to wait for the node connection success message to return.
  2. Add the unprovide() method to support the removal of local provider information.

Netwarps is composed of a senior cloud computing and distributed technology development team in China. The team has very rich experience in the financial, power, communications and Internet industries. Netwarps currently has R&D centers in Shenzhen and Beijing, with a team size of 30+, most of which are technicians with more than ten years of development experience, from professional fields such as the Internet, finance, cloud computing, blockchain, and scientific research institutions.
Netwarps focuses on the development and application of secure storage technology products. The main products include decentralized file system (DFS) and decentralized computing platform (DCP), and are committed to providing distributed storage and distributed based on decentralized network technology. The computing platform has the technical characteristics of high availability, low power consumption and low network, and is suitable for scenarios such as the Internet of Things and the Industrial Internet.
Official account: Netwarps

Guess you like

Origin blog.51cto.com/14915984/2665496