[package]
edition = "2021"
rust-version = "1.74"
name = "o192"
version = "0.2.2"
authors = ["Lam Hieu and contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "ORION-192: ordered, resilient, independent, URL-safe 192-bit IDs for distributed systems."
homepage = "https://github.com/lh0x00/orion-192"
documentation = "https://docs.rs/o192"
readme = "README.md"
keywords = [
"id",
"uuid",
"ulid",
"sortable",
"distributed",
]
categories = [
"data-structures",
"encoding",
]
license = "MIT"
repository = "https://github.com/lh0x00/orion-192"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = []
serde = ["dep:serde"]
[lib]
name = "o192"
path = "src/lib.rs"
[[bin]]
name = "o192"
path = "src/bin/o192.rs"
[[example]]
name = "bench"
path = "examples/bench.rs"
[[test]]
name = "codec"
path = "tests/codec.rs"
[[test]]
name = "generator"
path = "tests/generator.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "sortability"
path = "tests/sortability.rs"
[[test]]
name = "vectors"
path = "tests/vectors.rs"
[dependencies.getrandom]
version = "0.2"
[dependencies.serde]
version = "1.0"
features = ["derive"]
optional = true
default-features = false
[dev-dependencies.serde_json]
version = "1.0"
[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
redundant_pub_crate = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_docs = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1