k_snowflake/
lib.rs

1mod snowflake;
2pub mod utils;
3mod constants;
4mod context;
5
6pub use snowflake::Snowflake;
7pub use context::{
8    set_sequence,
9    set_instance,
10    set_sequence_autoincrement,
11    set_epoch
12};
13pub use constants::{TWITTER_EPOCH_START, DISCORD_EPOCH_START};
14
15/// Basic creating snowflake using context
16pub fn create_snowflake() -> Snowflake {
17    Snowflake::from_context()
18}