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

#2301 in Network programming

Download history 50073/week @ 2024-06-12 43691/week @ 2024-06-19 46128/week @ 2024-06-26 46897/week @ 2024-07-03 48527/week @ 2024-07-10 59097/week @ 2024-07-17 59380/week @ 2024-07-24 50379/week @ 2024-07-31 65311/week @ 2024-08-07 62400/week @ 2024-08-14 58346/week @ 2024-08-21 70010/week @ 2024-08-28 70256/week @ 2024-09-04 61431/week @ 2024-09-11 67867/week @ 2024-09-18 54013/week @ 2024-09-25

268,115 downloads per month
Used in 226 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

~9–16MB
~215K SLoC