Registry / utility / rs-snowflake

rs-snowflake

JSON →
library0.6.0rscratesunverified

Rust version of the Twitter snowflake algorithm.

# Cargo.toml [dependencies] rs-snowflake = "0.6.0"
INSTALL
IMPORT
SIG · RS-SNOWFLAKE
R
rs-snowflake
utilityrustv0.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

SnowflakeId
use rs_snowflake::SnowflakeId;

Generates a unique Snowflake ID with worker and datacenter IDs.

use rs_snowflake::SnowflakeId; fn main() { let mut id_gen = SnowflakeId::new(1, 1); let id = id_gen.generate(); println!("Snowflake ID: {}", id); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.6.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
rs-snowflake — cargo add rs-snowflake · libregistry