http-signature-normalization/actix/Cargo.toml
2024-04-14 20:24:21 -05:00

54 lines
1.7 KiB
TOML

[package]
name = "http-signature-normalization-actix"
description = "An HTTP Signatures library that leaves the signing to you"
version = "0.11.1"
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", "actix"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["server", "sha-2", "sha-3"]
client = ["dep:awc"]
digest = ["dep:base64"]
server = ["dep:actix-web"]
sha-2 = ["digest", "dep:sha2"]
sha-3 = ["digest", "dep:sha3"]
ring = ["digest", "dep:ring"]
[[example]]
name = "server"
required-features = ["server", "ring"]
[[example]]
name = "client"
required-features = ["client", "ring"]
[dependencies]
actix-http = { version = "3.0.2", default-features = false }
actix-rt = "2.6.0"
actix-web = { version = "4.0.0", default-features = false, optional = true }
awc = { version = "3.0.0", default-features = false, optional = true }
base64 = { version = "0.22", optional = true }
futures-core = "0.3.28"
http-signature-normalization = { version = "0.7.0", path = ".." }
ring = { version = "0.17.5", optional = true }
sha2 = { version = "0.10", optional = true }
sha3 = { version = "0.10", optional = true }
streem = "0.2.0"
thiserror = "1.0"
tokio = { version = "1", default-features = false, features = ["sync"] }
tracing = "0.1"
tracing-error = "0.2"
tracing-futures = "0.2"
[dev-dependencies]
actix-rt = "2.6.0"
tracing-actix-web = { version = "0.7.0" }
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
[package.metadata.docs.rs]
all-features = true