[package]
name = "fastsend"
version = "1.2.3"
edition = "2021"
authors = ["Hei <xuboyu72@gmail.com>"]
description = "快速生成适用于分布式环境的 ID 和序列号"
homepage = "https://github.com/Boyux/fastsend"
documentation = "https://docs.rs/fastsend"
repository = "https://github.com/Boyux/fastsend"
license = "MIT OR Apache-2.0"
readme = "README.md"
[features]
default = ["pause_on_start"]
pause_on_start = []
ticket = ["thiserror"]
uuid = ["itertools", "md5", "sha-1", "rand_chacha"]
auto_increment = []
random62 = ["rand_chacha"]
[dependencies]
crossbeam = "0.8.1"
lazy_static = "1.4.0"
chrono = "0.4.19"
futures-locks = "0.7.0"
futures = "0.3.19"
rand = "0.8.4"
thiserror = { version = "1.0.30", optional = true }
itertools = { version = "0.10.3", optional = true }
md5 = { version = "0.7.0", optional = true }
sha-1 = { version = "0.10.0", optional = true }
rand_chacha = { version = "0.3.1", optional = true }
[dev-dependencies]
tokio = { version = "1.15.0", features = ["full"] }