| Crates.io | icentral-nodeid |
| lib.rs | icentral-nodeid |
| version | 0.1.0 |
| created_at | 2025-04-04 20:45:45.204582+00 |
| updated_at | 2025-04-04 20:45:45.204582+00 |
| description | A Rust library for management of node identifiers in distributed systems, providing interfaces for node ID range handling, mapping, and iteration. |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1620721 |
| size | 50,792 |
icentral-nodeid is a Rust crate designed for precise and efficient management of node identifiers within a given range. This library provides robust interfaces for interacting with node ID ranges, mapping, and iteration, essential for distributed systems where node management is critical. It is tailored for advanced Rust developers who understand system architecture and node-based systems, such as distributed databases, cluster management, or complex event processing networks.
This crate offers a suite of interfaces:
usize. Provides utility methods such as zero, bad, and val for flexible node ID management.Here's a quick example of creating a new NodeIdRange and iterating over it:
let range = NodeIdRange::new(0, 5);
for node in range {
println!("Node ID: {}", node);
}
IntoIterator for seamless integration into existing systems.This README.md file was generated by an AI model and may not be 100% accurate; however, it should be pretty good.
This crate is in the process of being translated from c++ to rust. Currently, it still needs exhaustive testing. It is likely there currently exist many glitches which need to be fixed before proper usage. This crate is based on the original icentral program developed by Fuad Jamor. Please see the following repository for details: https://github.com/fjamour/icentral.
For progress updates, see the workspacer rust project.