idgen_rs 0.2.0

A high-performance, lock-free snowflake ID generator using AtomicU64 + CAS. Generates 2M+ IDs per second on a single core.
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 = "2021"
name = "idgen_rs"
version = "0.2.0"
authors = ["ntcat <ntcat@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A high-performance, lock-free snowflake ID generator using AtomicU64 + CAS. Generates 2M+ IDs per second on a single core."
homepage = "https://github.com/ntcat/idgen_rs"
documentation = "https://docs.rs/idgen_rs"
readme = "README.md"
keywords = [
    "snowflake",
    "idgenerator",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/ntcat/idgen_rs"

[features]
base62 = ["dep:base62"]
base64 = ["dep:base64"]
default = []
encodings = [
    "base62",
    "base64",
]
metrics = []

[lib]
name = "idgen_rs"
crate-type = ["rlib"]
path = "src/lib.rs"

[[bin]]
name = "idgen_rs"
path = "src/main.rs"
required-features = ["encodings"]

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

[dependencies.base62]
version = "2.2"
optional = true

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.chrono]
version = "0.4.44"

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