# 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.90"
name = "hashavatar"
version = "1.1.2"
build = false
exclude = [
    "Screenshot_*.png",
    ".github/images/**",
    "fuzz/**",
    "target/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Stable deterministic procedural avatars in Rust with configurable identity hashing, WebP, optional PNG/JPEG/GIF, and SVG export"
homepage = "https://github.com/valkyoth/hashavatar"
documentation = "https://docs.rs/hashavatar/latest/hashavatar/"
readme = "README.md"
keywords = [
    "avatar",
    "identicon",
    "procedural",
    "webp",
    "svg",
]
categories = [
    "multimedia::images",
    "graphics",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/valkyoth/hashavatar"

[features]
all-formats = [
    "png",
    "jpeg",
    "gif",
]
blake3 = [
    "dep:blake3",
    "sanitization-crypto-interop/blake3",
]
default = []
fuzzing = []
gif = ["image/gif"]
jpeg = ["image/jpeg"]
kani = []
png = ["image/png"]
serde = ["dep:serde"]
xxh3 = ["dep:xxhash-rust"]

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

[[example]]
name = "builder_svg"
path = "examples/builder_svg.rs"

[[example]]
name = "cache_key"
path = "examples/cache_key.rs"

[dependencies.blake3]
version = "1.8.5"
optional = true
default-features = true

[dependencies.image]
version = "0.25.10"
features = ["webp"]
default-features = false

[dependencies.palette]
version = "0.7.6"
features = ["std"]
default-features = false

[dependencies.rand]
version = "0.10.2"
features = [
    "std",
    "std_rng",
]
default-features = false

[dependencies.sanitization]
version = "1.2.4"
features = ["alloc"]
default-features = false

[dependencies.sanitization-crypto-interop]
version = "1.2.4"
features = ["sha2"]
default-features = false

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

[dependencies.subtle]
version = "2.6.1"
default-features = false

[dependencies.xxhash-rust]
version = "0.8.16"
features = ["xxh3"]
optional = true
default-features = false

[dev-dependencies.roxmltree]
version = "0.21.1"

[dev-dependencies.serde_json]
version = "1.0.150"

[dev-dependencies.sha2]
version = "0.11.0"
features = ["alloc"]
default-features = false

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(fuzzing)",
    "cfg(kani)",
]
