Skip to content

Conversation

SyntheticBird45
Copy link
Member

What

See: #178

This PR implements a "Bucket" data structure that is a collection of data that discriminates its items into "buckets" (vector of size N) following a defined function.

  • Implements Bucket data structure and Bucketable trait
  • Implements Bucketable for Ipv4Addr
  • Added the crate to the workspace dependencies
  • Added arrayvec as a dependency

Why

The end goal is to use this structure to store diverse IPs of different /16 subnets.

@github-actions github-actions bot added A-p2p Area: Related to P2P. A-dependency Area: Related to dependencies, or changes to a Cargo.{toml,lock} file. A-workspace Area: Changes to a root workspace file or general repo file. labels Oct 28, 2024
@SyntheticBird45 SyntheticBird45 changed the title Implements P2P Bucket data structure p2p: Implement P2P Bucket data structure Oct 28, 2024
Copy link
Contributor

@hinto-janai hinto-janai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions github-actions bot added A-docs Area: Related to documentation. A-books Area: Related to Cuprate's books. A-book-architecture Area: Related to the Architecture book. labels Nov 1, 2024
This commit implements a "Bucket" data structure that is a collection
of data that discriminates its items into "buckets" (vector of size N)
following a defined function.

- Implements Bucket data structure and Bucketable trait
- Implements Bucketable for Ipv4Addr
- Added the crate to the workspace dependencies
- Added arrayvec as a dependency
@Boog900 Boog900 merged commit b6c4adc into main Nov 2, 2024
7 of 9 checks passed
@Boog900 Boog900 deleted the p2p_bucket branch November 2, 2024 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-book-architecture Area: Related to the Architecture book. A-books Area: Related to Cuprate's books. A-dependency Area: Related to dependencies, or changes to a Cargo.{toml,lock} file. A-docs Area: Related to documentation. A-p2p Area: Related to P2P. A-workspace Area: Changes to a root workspace file or general repo file.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants