# 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"
rust-version = "1.85"
name = "scru128"
version = "3.6.0"
authors = ["LiosK <contact@mail.liosk.net>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "SCRU128: Sortable, Clock and Random number-based Unique identifier"
documentation = "https://docs.rs/scru128"
readme = "README.md"
keywords = [
    "identifier",
    "uuid",
    "guid",
    "ulid",
    "ksuid",
]
categories = ["algorithms"]
license = "Apache-2.0"
repository = "https://github.com/scru128/rust"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = ["global_gen"]
default_rng = [
    "std",
    "rand",
    "dep:rand09",
    "dep:rand_chacha",
]
global_gen = ["default_rng"]
rand = ["rand08"]
rand010 = ["dep:rand_core010"]
rand08 = ["dep:rand_core06"]
rand09 = ["dep:rand_core09"]
serde = ["dep:serde"]
std = ["fstr/std"]

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

[dependencies.fstr]
version = "0.2"
default-features = false

[dependencies.rand09]
version = "0.9"
optional = true
package = "rand"

[dependencies.rand_chacha]
version = "0.9"
optional = true

[dependencies.rand_core010]
version = "0.10"
optional = true
default-features = false
package = "rand_core"

[dependencies.rand_core06]
version = "0.6"
optional = true
default-features = false
package = "rand_core"

[dependencies.rand_core09]
version = "0.9"
optional = true
default-features = false
package = "rand_core"

[dependencies.serde]
version = "1.0"
optional = true
default-features = false

[dev-dependencies.rand]
version = "0.10"

[dev-dependencies.regex]
version = "1.12"
features = ["std"]
default-features = false

[dev-dependencies.serde_test]
version = "1.0"
