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
256,714 downloads per month
Used in 277 crates
(2 directly)
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