# 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 = "2024"
rust-version = "1.92"
name = "huskarl-core"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Base library for huskarl (OAuth2 client) ecosystem."
readme = "README.md"
keywords = [
    "oauth2",
    "security",
    "authentication",
]
categories = ["authentication"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/huskarl-rs/huskarl"
resolver = "2"

[features]
default = ["url"]
metrics = ["dep:metrics"]
url = ["dep:url"]

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

[dependencies.arc-swap]
version = "1"

[dependencies.base64]
version = "0.22"
features = ["std"]
default-features = false

[dependencies.bon]
version = "3.9"
features = [
    "experimental-generics-setters",
    "experimental-overwritable",
    "implied-bounds",
]
default-features = false

[dependencies.bytes]
version = "1"
default-features = false

[dependencies.form_urlencoded]
version = "1"
features = ["std"]
default-features = false

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.hex]
version = "0.4"
features = ["std"]
default-features = false

[dependencies.http]
version = "1"
features = ["std"]
default-features = false

[dependencies.metrics]
version = "0.24"
optional = true
default-features = false

[dependencies.rand]
version = "0.10"
features = [
    "std",
    "sys_rng",
    "thread_rng",
]
default-features = false

[dependencies.reqwest]
version = "0.13"
optional = true
default-features = false

[dependencies.secrecy]
version = "0.10"
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "std",
    "rc",
]
default-features = false

[dependencies.serde_json]
version = "1"
features = ["std"]
default-features = false

[dependencies.sha2]
version = "0.11.0-rc.5"
default-features = false

[dependencies.snafu]
version = "0.9"
features = [
    "rust_1_81",
    "std",
]
default-features = false

[dependencies.tokio]
version = "1"
features = ["sync"]
default-features = false

[dependencies.url]
version = "2"
optional = true
default-features = false

[dev-dependencies]

[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]
default-features = false

[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies.gloo-timers]
version = "0.3"
features = ["futures"]
default-features = false

[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dependencies.web-time]
version = "1"
features = ["serde"]
default-features = false

[target.'cfg(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none")))'.dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))'.dependencies.tokio]
version = "1"
features = ["time"]
default-features = false

[target.'cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))'.dev-dependencies.httpmock]
version = "0.8.3"

[target.'cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))'.dev-dependencies.reqwest]
version = "0.13"
features = [
    "cookies",
    "form",
    "json",
    "query",
]

[target.'cfg(not(all(target_arch = "wasm32", any(target_os = "unknown", target_os = "none"))))'.dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
]
