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

#2309 in Network programming

Download history 58413/week @ 2024-07-20 53057/week @ 2024-07-27 57765/week @ 2024-08-03 69299/week @ 2024-08-10 54670/week @ 2024-08-17 65437/week @ 2024-08-24 72301/week @ 2024-08-31 64919/week @ 2024-09-07 62171/week @ 2024-09-14 68992/week @ 2024-09-21 68444/week @ 2024-09-28 73626/week @ 2024-10-05 69283/week @ 2024-10-12 73085/week @ 2024-10-19 60177/week @ 2024-10-26 71781/week @ 2024-11-02

285,291 downloads per month
Used in 236 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
~180K SLoC