Skip to content

JKShop/snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snowflake

  • Generates snowflake id's

Usage

Set env SNOWFLAKE.COORDINATOR to point to your coordinator server !

Cargo.toml

[dependencies]
snowflake="1.1.0"

main.rs

use snowflake::Snowflake;

fn example(){
    /*Implements Debug and Display*/
    let snowflake = Snowflake = Snowflake::new();
    println!("{}", snowflake);
}

About

Generates snowflake id's

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages