idworker 1.0.1

A high-performance distributed ID generator library implementing Snowflake algorithm variants with multiple optimization modes for different performance requirements.
Documentation
# 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 = "2024"
name = "idworker"
version = "1.0.1"
authors = ["zbz"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance distributed ID generator library implementing Snowflake algorithm variants with multiple optimization modes for different performance requirements."
homepage = "https://github.com/rusthing/idworker"
readme = "README.adoc"
keywords = [
    "id",
    "idworker",
    "generator",
    "idgenerator",
    "snowflake",
]
categories = ["algorithms"]
license = "MIT"
repository = "https://github.com/rusthing/idworker"

[features]
config = [
    "dep:log",
    "dep:serde",
]
default = []

[lib]
name = "idworker"
path = "src/lib.rs"

[[test]]
name = "generator_tests"
path = "tests/generator_tests.rs"

[[test]]
name = "options_tests"
path = "tests/options_tests.rs"

[[bench]]
name = "fast_benches"
path = "benches/fast_benches.rs"
harness = false

[[bench]]
name = "normal_benches"
path = "benches/normal_benches.rs"
harness = false

[dependencies.log]
version = "0.4.29"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dev-dependencies.criterion]
version = "0.8.1"