# 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.85.0"
name = "qcs-dependencies-client"
version = "0.3.4-dev.0"
authors = ["Rigetti QPU Software <qpu-software@rigetti.com>"]
build = false
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Known-compatible versions of gRPC, OpenAPI, OTel, and reqwest crates for QCS client development"
readme = false
license = "Apache-2.0"
repository = "https://gitlab.com/rigetti/qcs/utilities/qcs-core-dependencies"
resolver = "2"

[features]
codegen-proto = [
    "dep:pbjson-build",
    "dep:prost-build",
    "dep:tonic-build",
    "dep:tonic-prost-build",
]
grpc = [
    "dep:pbjson",
    "dep:pbjson-types",
    "dep:prost",
    "dep:prost-types",
    "dep:tonic",
    "dep:tonic-prost",
]
http = [
    "dep:http",
    "dep:reqwest",
    "dep:reqwest-middleware",
    "dep:reqwest-tracing",
    "dep:opentelemetry-http",
]
test = ["opentelemetry_sdk/testing"]
tokio-current-thread = ["opentelemetry_sdk/rt-tokio-current-thread"]
tonic-health = ["dep:tonic-health"]
tonic-web = ["dep:tonic-web"]
tower-http = ["dep:tower-http"]

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

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

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-http]
version = "0.31"
optional = true

[dependencies.opentelemetry-otlp]
version = "0.31.0"
features = [
    "grpc-tonic",
    "tls-roots",
    "trace",
]
default-features = false

[dependencies.opentelemetry-proto]
version = "0.31"

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dependencies.pbjson]
version = "0.9.0"
optional = true

[dependencies.pbjson-build]
version = "0.9.0"
optional = true

[dependencies.pbjson-types]
version = "0.9.0"
optional = true

[dependencies.prost]
version = "0.14.1"
optional = true

[dependencies.prost-build]
version = "0.14.1"
optional = true

[dependencies.prost-types]
version = "0.14.1"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "rustls",
    "form",
    "multipart",
    "query",
    "socks",
    "system-proxy",
]
optional = true
default-features = false

[dependencies.reqwest-middleware]
version = "0.5"
features = [
    "json",
    "form",
    "query",
]
optional = true

[dependencies.reqwest-tracing]
version = "0.7"
features = ["opentelemetry_0_31"]
optional = true

[dependencies.tonic]
version = "0.14.2"
features = [
    "tls-native-roots",
    "gzip",
]
optional = true

[dependencies.tonic-build]
version = "0.14.2"
optional = true

[dependencies.tonic-health]
version = "0.14.2"
optional = true

[dependencies.tonic-prost]
version = "0.14.2"
optional = true

[dependencies.tonic-prost-build]
version = "0.14.2"
optional = true

[dependencies.tonic-web]
version = "0.14.2"
optional = true

[dependencies.tower]
version = "0.5"
features = [
    "retry",
    "util",
]

[dependencies.tower-http]
version = "0.6.8"
features = [
    "trace",
    "request-id",
    "cors",
]
optional = true

[dependencies.tracing-opentelemetry]
version = "0.32.0"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -3

[lints.clippy.pedantic]
level = "warn"
priority = -2
