[package]
edition = "2021"
rust-version = "1.88"
name = "hcaptcha"
version = "3.2.1"
authors = ["Jeremiah Russell <jrussell@jerus.ie>"]
build = false
include = [
"**/*.rs",
"Cargo.toml",
"README.md",
"LICENSE-APACHE",
"LICENSE-MIT",
"CHANGES.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
hCaptcha client response verification. Validate the hCaptcha response submitted from to your server from the client.
"""
documentation = "https://docs.rs/hcaptcha"
readme = "README.md"
keywords = [
"hcaptcha",
"captcha",
"security",
"backend",
"protection",
]
categories = ["web-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jerusdp/hcaptcha-rs"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"ext",
"rustls-backend",
]
enterprise = []
ext = ["hex"]
nativetls-backend = ["reqwest/native-tls"]
nightly = []
rustls-backend = ["reqwest/rustls"]
trace = ["tracing"]
[lib]
name = "hcaptcha"
path = "src/lib.rs"
[[example]]
name = "custom_contact_lambda"
path = "examples/custom_contact_lambda/main.rs"
[[example]]
name = "derived_contact_lambda"
path = "examples/derived_contact_lambda/main.rs"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.hcaptcha_derive]
version = "3.2.1"
[dependencies.hex]
version = "0.4.3"
optional = true
[dependencies.reqwest]
version = "0.13.2"
features = [
"form",
"json",
"http2",
]
default-features = false
[dependencies.serde]
version = "1.0.228"
features = ["derive"]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.serde_urlencoded]
version = "0.7.1"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tracing]
version = "0.1.44"
features = [
"log",
"attributes",
]
optional = true
[dependencies.url]
version = "2.5.8"
[dependencies.uuid]
version = "1.23.0"
features = ["v4"]
[dev-dependencies.chrono]
version = "0.4.44"
[dev-dependencies.claims]
version = "0.8.0"
[dev-dependencies.hex]
version = "0.4.3"
[dev-dependencies.itertools]
version = "0.14.0"
[dev-dependencies.lambda_runtime]
version = "1.1.2"
[dev-dependencies.log]
version = "0.4.29"
[dev-dependencies.mockd]
version = "0.5.2"
features = [
"internet",
"unique",
"words",
]
[dev-dependencies.rand]
version = "0.10.0"
[dev-dependencies.serde_test]
version = "1.0.177"
[dev-dependencies.simple_logger]
version = "5.2.0"
[dev-dependencies.tokio]
version = "1.50.0"
features = [
"rt",
"macros",
]
[dev-dependencies.tracing]
version = "0.1.44"
features = [
"log",
"attributes",
]
[dev-dependencies.tracing-appender]
version = "0.2.4"
[dev-dependencies.tracing-bunyan-formatter]
version = "0.3.10"
[dev-dependencies.tracing-log]
version = "0.2.0"
[dev-dependencies.tracing-subscriber]
version = "0.3.23"
features = ["env-filter"]
[dev-dependencies.tracing-test]
version = "0.2.6"
[dev-dependencies.wiremock]
version = "0.6.5"
[target.'cfg(target_arch = "wasm32")'.dependencies.uuid]
version = "1.23.0"
features = [
"v4",
"js",
]
[lints.clippy]
pedantic = "allow"