[package]
edition = "2021"
rust-version = "1.75"
name = "hooksniff"
version = "1.5.1"
authors = ["HookSniff Inc. <servetarslan02@gmail.com>"]
build = false
include = [
"src/**/*",
"README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HookSniff webhooks API client and webhook verification library"
homepage = "https://hooksniff.vercel.app"
readme = "README.md"
keywords = [
"hooksniff",
"webhooks",
"api",
]
categories = [
"development-tools",
"asynchronous",
"network-programming",
"web-programming",
]
license = "MIT"
repository = "https://github.com/servetarslan02/hooksniff-rust"
[package.metadata.cargo-public-api-crates]
allowed = [
"http",
"serde",
"serde_json",
"base64",
]
[features]
default = [
"http1",
"rustls-tls",
]
hooksniff_beta = []
http1 = [
"hyper-util/http1",
"hyper-rustls?/http1",
]
http2 = [
"hyper-util/http2",
"hyper-rustls?/http2",
]
native-tls = ["dep:hyper-tls"]
rustls-tls = [
"dep:hyper-rustls",
"dep:rustls",
"hyper-rustls?/rustls-native-certs",
]
[lib]
name = "hooksniff"
path = "src/lib.rs"
[dependencies.base64]
version = "0.13"
[dependencies.futures]
version = "0.3"
[dependencies.hmac-sha256]
version = "1"
[dependencies.http-body-util]
version = "0.1.0"
[dependencies.http02]
version = "0.2.0"
package = "http"
[dependencies.http1]
version = "1.1.0"
package = "http"
[dependencies.hyper]
version = "1.7.0"
[dependencies.hyper-rustls]
version = "0.27.7"
optional = true
[dependencies.hyper-tls]
version = "0.6.0"
optional = true
[dependencies.hyper-util]
version = "0.1.16"
features = [
"client",
"client-legacy",
"tokio",
]
[dependencies.itertools]
version = "0.14.0"
[dependencies.js_option]
version = "0.1.1"
[dependencies.percent-encoding]
version = "2.3.1"
[dependencies.rand]
version = "0.9.0"
[dependencies.rustls]
version = "0.23.31"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.serde_repr]
version = "0.1"
[dependencies.thiserror]
version = "2.0.11"
[dependencies.tokio]
version = "1.41.0"
features = ["time"]
[dependencies.tower-service]
version = "0.3.3"
[dependencies.tracing]
version = "0.1.41"
default-features = false
[dependencies.url]
version = "2.2"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.tokio]
version = "1.41.0"
features = ["macros"]
[dev-dependencies.wiremock]
version = "0.6.2, <0.6.5"
[lints.clippy]
literal_string_with_formatting_args = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.rust]
unknown_lints = "allow"