netid64 0.1.0

64-bit network-scoped ID (K|NODE|CTR): 8b kind, 16b node, 40b counter. BE wire.
Documentation
  • Coverage
  • 26.67%
    4 out of 15 items documented0 out of 11 items with examples
  • Size
  • Source code size: 9.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • iadev09/netid64
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • iadev09

🜲 NetId64

A prototype type for precise and elegant 64-bit network identity.

NetId64 is a minimal, no-std-friendly Rust crate that defines a 64-bit deterministic network identifier:

[KIND:8][NODE:16][COUNTER:40]

Each bit has a purpose:

  • KIND (8 bits) β€” logical entity type (user, message, node, etc.)
  • NODE (16 bits) β€” origin node / partition
  • COUNTER (40 bits) β€” local monotonic counter

🧩 Philosophy

This crate is part of a broader prototype of an idea:

transport-safe identity.
Not random, not opaque, but shaped by its place in the network.

It’s not yet another UUID β€” it’s a deterministic, modular identity that can live across QUIC frames, caches, or async boundaries.

Think of it as the prototype species of a coming type family:
NetId64 β†’ NetIdUuid β†’ NetIdSnowflake β€” all share the same wire semantics.

✳️ Features

  • no_std compatible
  • optional serde support
  • constant-time encode/decode (u64 big-endian)
  • Display/FromStr for human-friendly forms ("1:42:999" or "0x01AA00F3...")

βš™οΈ Example

use netid64::NetId64;

let id = NetId64::make(1, 7, 42);
println!("{}", id); // 1:7:42
assert_eq!(id.node(), 7);
assert_eq!(id.counter(), 42);

🌍 Manifesto

This crate carries no grand promise β€” only a direction:
to design identities that serve life, not ownership.

Everything is for life.
And if identity is a certificate,
let it be the most widely authorized one β€”
granted by existence itself.