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
268,115 downloads per month
Used in 226 crates
(2 directly)
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