[package]
edition = "2021"
rust-version = "1.95"
name = "snid"
version = "0.2.1"
authors = ["Neighbor Systems <hello@neighbor.systems>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Polyglot sortable identifier protocol with UUID v7-compatible ordering and extended identifier families"
homepage = "https://github.com/LastMile-Innovations/snid"
documentation = "https://docs.rs/snid"
readme = "README.md"
keywords = [
"uuid",
"uuidv7",
"identifier",
"sortable",
"distributed",
]
categories = [
"data-structures",
"encoding",
"development-tools::build-utils",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/LastMile-Innovations/snid"
[features]
data = [
"serde",
"serde_json",
]
default = []
uuid = ["dep:uuid"]
[lib]
name = "snid"
path = "src/lib.rs"
[[example]]
name = "project_vectors"
path = "examples/project_vectors.rs"
required-features = ["data"]
[[test]]
name = "property_tests"
path = "tests/property_tests.rs"
[[bench]]
name = "benchmarks"
path = "benches/benchmarks.rs"
harness = false
[[bench]]
name = "ecosystem_benchmarks"
path = "benches/ecosystem_benchmarks.rs"
harness = false
[[bench]]
name = "extended_families"
path = "benches/extended_families.rs"
harness = false
[dependencies.getrandom]
version = "0.4"
[dependencies.hex]
version = "0.4.3"
[dependencies.hmac]
version = "0.13"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.sha2]
version = "0.11"
[dependencies.subtle]
version = "2.6"
[dependencies.uuid]
version = "1.0"
optional = true
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.cuid]
version = "2.0"
[dev-dependencies.ksuid]
version = "0.2"
[dev-dependencies.proptest]
version = "1.0"
[dev-dependencies.sonyflake]
version = "0.4"
[dev-dependencies.ulid]
version = "1.0"
[dev-dependencies.uuid]
version = "1.0"
features = [
"v4",
"v7",
]
[dev-dependencies.xid]
version = "1.0"
[profile.bench]
lto = "fat"
codegen-units = 1
inherits = "release"
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true