http-signature-normalization/reqwest/Cargo.toml
2024-04-14 20:19:19 -05:00

46 lines
1.5 KiB
TOML

[package]
name = "http-signature-normalization-reqwest"
description = "An HTTP Signatures library that leaves the signing to you"
version = "0.12.0"
authors = ["asonix <asonix@asonix.dog>"]
license = "AGPL-3.0"
readme = "README.md"
repository = "https://git.asonix.dog/Aardwolf/http-signature-normalization"
keywords = ["http", "signatures", "digest", "reqwest"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["sha-2", "default-spawner"]
middleware = ["dep:reqwest-middleware"]
default-spawner = ["dep:tokio"]
digest = ["dep:base64"]
ring = ["digest", "dep:ring"]
sha-2 = ["digest", "dep:sha2"]
sha-3 = ["digest", "dep:sha3"]
[[example]]
name = "client"
required-features = ["default-spawner", "ring"]
[dependencies]
async-trait = "0.1.71"
base64 = { version = "0.22", optional = true }
http-signature-normalization = { version = "0.7.0", path = ".." }
httpdate = "1.0.2"
reqwest = { version = "0.12", default-features = false, features = ["json"] }
reqwest-middleware = { version = "0.3.0", optional = true }
ring = { version = "0.17.5", optional = true }
sha2 = { version = "0.10", optional = true }
sha3 = { version = "0.10", optional = true }
thiserror = "1.0"
tokio = { version = "1", default-features = false, features = [
"rt",
], optional = true }
[dev-dependencies]
pretty_env_logger = "0.5"
tokio = { version = "1", default-features = false, features = [
"rt-multi-thread",
"macros",
] }