sonyflake 0.5.0

A distributed unique ID generator inspired by Twitter's Snowflake
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 = "sonyflake"
version = "0.5.0"
authors = ["Arne Bahlo <hey@arne.me>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A distributed unique ID generator inspired by Twitter's Snowflake"
readme = "README.md"
keywords = [
    "sonyflake",
    "snowflake",
    "random",
    "id",
    "generator",
]
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/enra/sonyflake-rs"

[features]
default = ["pnet"]
pnet = ["pnet_datalink"]

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

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

[dependencies.chrono]
version = "0.4"
features = ["now"]
default-features = false

[dependencies.pnet_datalink]
version = "0.35"
optional = true
default-features = false

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.bencher]
version = "0.1"