5 releases (3 breaking)

0.4.0 Aug 9, 2024
0.3.0 Nov 5, 2023
0.2.0 Jun 20, 2023
0.1.1 May 1, 2023
0.1.0 Mar 29, 2023

#2318 in Network programming

Download history 73614/week @ 2024-09-01 63659/week @ 2024-09-08 62728/week @ 2024-09-15 69190/week @ 2024-09-22 70151/week @ 2024-09-29 71756/week @ 2024-10-06 68338/week @ 2024-10-13 73856/week @ 2024-10-20 59554/week @ 2024-10-27 74057/week @ 2024-11-03 63221/week @ 2024-11-10 64852/week @ 2024-11-17 66755/week @ 2024-11-24 68378/week @ 2024-12-01 83701/week @ 2024-12-08 83623/week @ 2024-12-15

306,986 downloads per month
Used in 262 crates (2 directly)

MIT license

750KB
15K SLoC

A libp2p module for managing allow and blocks lists to peers.

Allow list example

#
#[derive(NetworkBehaviour)]
struct MyBehaviour {
   allowed_peers: allow_block_list::Behaviour<AllowedPeers>,
}

let behaviour = MyBehaviour {
    allowed_peers: allow_block_list::Behaviour::default()
};

Block list example

#
#[derive(NetworkBehaviour)]
struct MyBehaviour {
   blocked_peers: allow_block_list::Behaviour<BlockedPeers>,
}

let behaviour = MyBehaviour {
    blocked_peers: allow_block_list::Behaviour::default()
};

Dependencies

~8–15MB
~179K SLoC