# 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"
name = "hearth-sdk"
version = "1.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Hearth identity platform Rust SDK"
homepage = "https://github.com/hearth-auth/hearth"
documentation = "https://docs.rs/hearth-sdk"
readme = "README.md"
license = "MIT"
repository = "https://github.com/hearth-auth/hearth"

[features]
actix-middleware = ["dep:actix-web"]
tower-middleware = [
    "dep:tower",
    "dep:http",
]

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

[dependencies.actix-web]
version = "4"
optional = true

[dependencies.base64]
version = "0.22"

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

[dependencies.jsonwebtoken]
version = "10"
features = ["rust_crypto"]

[dependencies.rand]
version = "0.8"

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "time",
]

[dependencies.tower]
version = "0.4"
optional = true

[dependencies.uuid]
version = "1"
features = ["serde"]

[dev-dependencies.actix-web]
version = "4"

[dev-dependencies.ring]
version = "0.17"

[dev-dependencies.tokio]
version = "1"
features = ["full"]
