# 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 = "bab_rs"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "An implementation of the Bab family of hash functions, and its WILLIAM3 instantiation."
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://codeberg.org/worm-blossom/bab_rs"

[package.metadata.docs.rs]
all-features = true

[features]
default = [
    "william3",
    "storage",
]
dev = [
    "dep:arbitrary",
    "std",
]
std = []
storage = [
    "std",
    "dep:async-fs",
    "dep:futures-lite",
]
william3 = ["dep:arrayref"]

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

[dependencies.anyhash]
version = "0.1.3"

[dependencies.arbitrary]
version = "1.0.2"
features = ["derive"]
optional = true

[dependencies.arrayref]
version = "0.3.5"
optional = true

[dependencies.async-fs]
version = "2.2.0"
optional = true

[dependencies.constant_time_eq]
version = "0.4.2"
default-features = false

[dependencies.derive_more]
version = "2.1.1"
features = [
    "display",
    "error",
]
default-features = false

[dependencies.frugal_async]
version = "0.1.0"

[dependencies.futures-lite]
version = "2.6.1"
optional = true

[dependencies.order_theory]
version = "0.1.7"

[dependencies.ufotofu]
version = "0.12.1"
default-features = false

[dependencies.zeroize]
version = "1.8.2"
default-features = false

[dev-dependencies.pollster]
version = "0.4.0"

[dev-dependencies.tempfile]
version = "3.27.0"

[dev-dependencies.ufotofu]
version = "0.12.0"
features = ["alloc"]

[lints.rust]
async_fn_in_trait = "allow"
missing_docs = "warn"
