# 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" rust-version = "1.72" name = "prima_bridge" version = "0.18.0" authors = ["Matteo Giachino "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "A library to implement the bridge pattern" readme = "README.md" license = "MIT" repository = "https://github.com/primait/bridge.rs" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [profile.release] lto = "thin" codegen-units = 1 [lib] name = "prima_bridge" path = "src/lib.rs" [[example]] name = "auth0" path = "examples/auth0.rs" required-features = ["auth0"] [[example]] name = "graphql" path = "examples/graphql.rs" [[example]] name = "graphql_multipart" path = "examples/graphql_multipart.rs" [[example]] name = "rest" path = "examples/rest.rs" [[example]] name = "rest_multipart" path = "examples/rest_multipart.rs" [[test]] name = "bridge_tests" path = "tests/bridge_tests.rs" [dependencies.async-trait] version = "0.1" [dependencies.bytes] version = "1.2" [dependencies.chacha20poly1305] version = "0.10.1" features = ["std"] optional = true [dependencies.chrono] version = "0.4" features = [ "clock", "std", "serde", ] optional = true default-features = false [dependencies.dashmap] version = "6.0" optional = true [dependencies.futures] version = "0.3" [dependencies.futures-util] version = "0.3" [dependencies.http] version = "1.0.0" [dependencies.jsonwebtoken] version = "9.0" optional = true [dependencies.opentelemetry_0_20_pkg] version = "0.20" optional = true package = "opentelemetry" [dependencies.opentelemetry_0_21_pkg] version = "0.21" optional = true package = "opentelemetry" [dependencies.opentelemetry_0_22_pkg] version = "0.22" optional = true package = "opentelemetry" [dependencies.opentelemetry_0_23_pkg] version = "0.23" optional = true package = "opentelemetry" [dependencies.opentelemetry_0_24_pkg] version = "0.24" optional = true package = "opentelemetry" [dependencies.opentelemetry_0_25_pkg] version = "0.25" optional = true package = "opentelemetry" [dependencies.opentelemetry_0_26_pkg] version = "0.26" optional = true package = "opentelemetry" [dependencies.opentelemetry_sdk_0_21_pkg] version = "0.21" optional = true package = "opentelemetry_sdk" [dependencies.opentelemetry_sdk_0_22_pkg] version = "0.22" optional = true package = "opentelemetry_sdk" [dependencies.opentelemetry_sdk_0_23_pkg] version = "0.23" optional = true package = "opentelemetry_sdk" [dependencies.opentelemetry_sdk_0_24_pkg] version = "0.24" optional = true package = "opentelemetry_sdk" [dependencies.opentelemetry_sdk_0_25_pkg] version = "0.25" optional = true package = "opentelemetry_sdk" [dependencies.opentelemetry_sdk_0_26_pkg] version = "0.26" optional = true package = "opentelemetry_sdk" [dependencies.rand] version = "0.8" optional = true [dependencies.redis] version = "0.27" features = ["tokio-comp"] optional = true [dependencies.reqwest] version = "0.12" features = [ "json", "multipart", "stream", ] [dependencies.reqwest-middleware] version = "0.3.0" features = [ "json", "multipart", ] [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.serde_json] version = "1.0" [dependencies.thiserror] version = "1.0" [dependencies.tokio] version = "1.16" features = [ "macros", "rt-multi-thread", "fs", ] [dependencies.tracing] version = "0.1" optional = true [dependencies.tracing-opentelemetry_0_21_pkg] version = "0.21" optional = true package = "tracing-opentelemetry" [dependencies.tracing-opentelemetry_0_22_pkg] version = "0.22" optional = true package = "tracing-opentelemetry" [dependencies.tracing-opentelemetry_0_23_pkg] version = "0.23" optional = true package = "tracing-opentelemetry" [dependencies.tracing-opentelemetry_0_24_pkg] version = "0.24" optional = true package = "tracing-opentelemetry" [dependencies.tracing-opentelemetry_0_25_pkg] version = "0.25" optional = true package = "tracing-opentelemetry" [dependencies.tracing-opentelemetry_0_26_pkg] version = "0.26" optional = true package = "tracing-opentelemetry" [dependencies.tracing-opentelemetry_0_27_pkg] version = "0.27" optional = true package = "tracing-opentelemetry" [dependencies.uuid] version = ">=0.7.0, <2.0.0" features = [ "serde", "v4", ] [dev-dependencies.flate2] version = "1.0" [dev-dependencies.mockito] version = "1.0" [dev-dependencies.tokio] version = "1.16" features = [ "macros", "rt-multi-thread", ] [dev-dependencies.tokio-test] version = "0.4" [features] _any_otel_version = [] auth0 = [ "rand", "redis", "jsonwebtoken", "chrono", "chacha20poly1305", "dashmap", "tracing", ] default = ["tracing_opentelemetry"] gzip = ["reqwest/gzip"] redis-tls = [ "redis/tls", "redis/tokio-native-tls-comp", ] tracing_opentelemetry = ["tracing_opentelemetry_0_26"] tracing_opentelemetry_0_20 = [ "_any_otel_version", "tracing", "tracing-opentelemetry_0_21_pkg", "opentelemetry_0_20_pkg", ] tracing_opentelemetry_0_21 = [ "_any_otel_version", "tracing", "tracing-opentelemetry_0_22_pkg", "opentelemetry_0_21_pkg", "opentelemetry_sdk_0_21_pkg", ] tracing_opentelemetry_0_22 = [ "_any_otel_version", "tracing", "tracing-opentelemetry_0_23_pkg", "opentelemetry_0_22_pkg", "opentelemetry_sdk_0_22_pkg", ] tracing_opentelemetry_0_23 = [ "_any_otel_version", "tracing", "tracing-opentelemetry_0_24_pkg", "opentelemetry_0_23_pkg", "opentelemetry_sdk_0_23_pkg", ] tracing_opentelemetry_0_24 = [ "_any_otel_version", "tracing", "tracing-opentelemetry_0_25_pkg", "opentelemetry_0_24_pkg", "opentelemetry_sdk_0_24_pkg", ] tracing_opentelemetry_0_25 = [ "_any_otel_version", "tracing", "tracing-opentelemetry_0_26_pkg", "opentelemetry_0_25_pkg", "opentelemetry_sdk_0_25_pkg", ] tracing_opentelemetry_0_26 = [ "_any_otel_version", "tracing", "tracing-opentelemetry_0_27_pkg", "opentelemetry_0_26_pkg", "opentelemetry_sdk_0_26_pkg", ]