# 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 = "prima_bridge"
version = "0.11.0"
authors = ["Matteo Giachino <matteog@gmail.com>"]
description = "A library to implement the bridge pattern"
readme = "README.md"
license = "MIT"
repository = "https://github.com/primait/bridge.rs"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[profile.release]
lto = "thin"
codegen-units = 1

[[example]]
name = "auth0"
path = "examples/auth0.rs"
required-features = ["auth0"]
[dependencies.aes]
version = "0.7.5"
optional = true

[dependencies.async-trait]
version = "0.1.52"

[dependencies.block-modes]
version = "0.8.1"
optional = true

[dependencies.chrono]
version = "^0.4"
features = ["serde"]
optional = true

[dependencies.chrono-tz]
version = "^0.6"
optional = true

[dependencies.dashmap]
version = "5.1.0"
optional = true

[dependencies.futures]
version = "0.3.21"
optional = true

[dependencies.futures-util]
version = "0.3.21"
optional = true

[dependencies.jsonwebtoken]
version = "8.0.1"
optional = true

[dependencies.opentelemetry]
version = ">=0.17.0, <0.18.0"
optional = true

[dependencies.rand]
version = "0.8.4"
optional = true

[dependencies.redis]
version = "0.21.5"
features = ["tokio-comp"]
optional = true

[dependencies.reqwest]
version = "0.11.9"
features = ["json", "blocking"]
optional = true

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

[dependencies.serde_json]
version = "1.0.78"

[dependencies.thiserror]
version = "1.0.30"

[dependencies.tokio]
version = "1.16.1"
features = ["macros"]
optional = true

[dependencies.tracing]
version = "0.1.30"
optional = true

[dependencies.tracing-opentelemetry]
version = "0.17.0"
optional = true

[dependencies.uuid]
version = ">=0.7.0, <0.9.0"
features = ["serde", "v4"]
[dev-dependencies.flate2]
version = "1.0.22"

[dev-dependencies.mockito]
version = "^0.30"

[dev-dependencies.tokio]
version = "1.16.1"
features = ["macros"]

[dev-dependencies.tokio-test]
version = "0.4.2"

[features]
async = ["reqwest", "futures", "futures-util"]
auth0 = ["tokio", "rand", "redis", "jsonwebtoken", "chrono", "chrono-tz", "aes", "block-modes", "dashmap", "tracing"]
blocking = ["reqwest/blocking"]
default = ["async", "tracing_opentelemetry"]
gzip = ["reqwest/gzip"]
tracing_opentelemetry = ["opentelemetry", "tracing", "tracing-opentelemetry"]
