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

#2373 in Network programming

Download history 55338/week @ 2024-08-19 66369/week @ 2024-08-26 73037/week @ 2024-09-02 63359/week @ 2024-09-09 64620/week @ 2024-09-16 67532/week @ 2024-09-23 71141/week @ 2024-09-30 70916/week @ 2024-10-07 68660/week @ 2024-10-14 72895/week @ 2024-10-21 59378/week @ 2024-10-28 75049/week @ 2024-11-04 63116/week @ 2024-11-11 64573/week @ 2024-11-18 66990/week @ 2024-11-25 65842/week @ 2024-12-02

263,656 downloads per month
Used in 245 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