# 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.80"
name = "makegov-tango-webhooks"
version = "0.1.0"
authors = ["MakeGov <hello@makegov.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HMAC-SHA256 signing and verification for Tango webhook deliveries"
homepage = "https://docs.makegov.com"
readme = false
keywords = [
    "tango",
    "webhooks",
    "hmac",
    "sha256",
    "signing",
]
categories = [
    "cryptography",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/makegov/tango-rust"

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

[features]
default = []
http = ["dep:http"]

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

[dependencies.hex]
version = "0.4"

[dependencies.hmac]
version = "0.12"

[dependencies.http]
version = "1"
optional = true

[dependencies.sha2]
version = "0.10"

[dependencies.subtle]
version = "2"

[dev-dependencies.pretty_assertions]
version = "1"

[lints.clippy]
module_name_repetitions = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
missing_debug_implementations = "warn"
missing_docs = "warn"
unreachable_pub = "warn"
