use-stable-id 0.0.1

Deterministic stable identifier primitives for RustUse
Documentation
  • Coverage
  • 6.67%
    1 out of 15 items documented1 out of 13 items with examples
  • Size
  • Source code size: 6.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 389.53 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 26s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-id
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-stable-id

Deterministic stable ID helpers for RustUse.

Install

[dependencies]
use-stable-id = "0.0.1"

Foundation

use-stable-id provides a documented, deterministic 64-bit FNV-1a based ID surface for simple name, content, path, and namespace-derived identifiers.

Example

use use_stable_id::{stable_name_id, stable_reference};

let left = stable_name_id("rustuse");
let right = stable_reference("docs", "intro");

assert_ne!(left, right);
assert_eq!(left, stable_name_id("rustuse"));

When to use directly

Choose use-stable-id when you need a small deterministic ID surface without bringing in UUID- or ULID-specific formatting.

Scope

  • The algorithm is explicit and stable.
  • Helpers stay string-first and deterministic.
  • Broader hashing frameworks and cryptographic claims are out of scope.

Status

use-stable-id is a pre-1.0 crate with a narrow deterministic API.