# 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 = "2021"
rust-version = "1.59.0"
name = "chksum-hash"
version = "0.4.2"
authors = ["Konrad Goławski <konrad@golawski.it>"]
description = "A simple cryptography library that provides an interface for calculating hash digests using both batch and stream computation."
readme = ".cargo/README.md"
keywords = [
    "checksum",
    "digest",
    "hash",
]
categories = ["cryptography"]
license = "MIT"
repository = "https://github.com/ferric-bytes/chksum-hash"

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

[[example]]
name = "md5"
required-features = ["md5"]

[[example]]
name = "sha1"
required-features = ["sha1"]

[[example]]
name = "sha2_224"
required-features = ["sha2-224"]

[[example]]
name = "sha2_256"
required-features = ["sha2-256"]

[[example]]
name = "sha2_384"
required-features = ["sha2-384"]

[[example]]
name = "sha2_512"
required-features = ["sha2-512"]

[[test]]
name = "md5"
required-features = ["md5"]

[[test]]
name = "sha1"
required-features = ["sha1"]

[[test]]
name = "sha2_224"
required-features = ["sha2-224"]

[[test]]
name = "sha2_256"
required-features = ["sha2-256"]

[[test]]
name = "sha2_384"
required-features = ["sha2-384"]

[[test]]
name = "sha2_512"
required-features = ["sha2-512"]

[dependencies.thiserror]
version = "1.0.31"
optional = true

[build-dependencies.anyhow]
version = "1.0.65"

[build-dependencies.chksum-build]
version = "0.0.3"
features = ["script"]
default-features = false

[features]
default = [
    "error",
    "md5",
    "sha1",
    "sha2",
]
error = ["thiserror"]
md5 = []
sha1 = []
sha2 = [
    "sha2-224",
    "sha2-256",
    "sha2-384",
    "sha2-512",
]
sha2-224 = []
sha2-256 = []
sha2-384 = []
sha2-512 = []
