# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "snowflake-ng" version = "0.1.5" authors = ["Krysztal Huang "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Dead easy and high performance `snowflake` implemented in Rust. " documentation = "https://docs.rs/snowflake-ng/latest/snowflake_ng/" readme = "README.md" keywords = [ "snowflake", "distributed-id", "uniqueness", "auto-increment", "generation", ] categories = [ "data-structures", "algorithms", ] license = "MIT OR Apache-2.0" repository = "https://github.com/Krysztal112233/snowflake-ng" [lib] name = "snowflake_ng" path = "src/lib.rs" [[example]] name = "async_snowflake" path = "examples/async_snowflake.rs" [[example]] name = "custom_identifier" path = "examples/custom_identifier.rs" [[example]] name = "other_provider" path = "examples/other_provider.rs" [[example]] name = "persist_generator" path = "examples/persist_generator.rs" [[example]] name = "simple_snowflake" path = "examples/simple_snowflake.rs" [dependencies.chrono] version = "0.4" optional = true [dependencies.futures] version = "0.3" [dependencies.futures-timer] version = "3" [dependencies.rand] version = "0.8" [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.time] version = "0.3" optional = true [dev-dependencies.parking_lot] version = "0.12" [dev-dependencies.tokio] version = "1" features = ["full"] [features] chrono = ["dep:chrono"] default = [ "serde", "chrono", "time", "sync", ] serde = ["dep:serde"] sync = [] time = ["dep:time"]