6 releases (breaking)

0.5.0 Jan 14, 2025
0.4.0 Aug 9, 2024
0.3.0 Nov 5, 2023
0.2.0 Jun 20, 2023
0.1.0 Mar 29, 2023

#2410 in Network programming

Download history 69452/week @ 2024-10-09 72306/week @ 2024-10-16 68436/week @ 2024-10-23 64687/week @ 2024-10-30 69830/week @ 2024-11-06 62346/week @ 2024-11-13 66781/week @ 2024-11-20 66665/week @ 2024-11-27 75663/week @ 2024-12-04 79732/week @ 2024-12-11 73384/week @ 2024-12-18 32229/week @ 2024-12-25 64751/week @ 2025-01-01 62137/week @ 2025-01-08 66314/week @ 2025-01-15 59614/week @ 2025-01-22

256,714 downloads per month
Used in 277 crates (2 directly)

MIT license

755KB
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