# 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 = "grpc_graphql_gateway"
version = "0.2.1"
authors = ["Protocol Lattice"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "greeter"
description = "A Rust implementation of gRPC-GraphQL gateway - generates GraphQL execution code from gRPC services"
readme = "README.md"
keywords = [
    "grpc",
    "graphql",
    "gateway",
    "protobuf",
    "api",
]
categories = [
    "network-programming",
    "api-bindings",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/Protocol-Lattice/grpc_graphql_gateway"

[features]
default = []
otlp = ["opentelemetry-otlp"]

[lib]
name = "grpc_graphql_gateway"
path = "src/lib.rs"
doctest = false

[[bin]]
name = "federation"
path = "examples/federation/main.rs"

[[bin]]
name = "greeter"
path = "examples/greeter/main.rs"

[[bin]]
name = "protoc-gen-graphql-template"
path = "src/bin/protoc-gen-graphql-template.rs"

[[example]]
name = "federation"
path = "examples/federation/main.rs"

[[example]]
name = "graphql"
path = "examples/graphql/main.rs"

[[example]]
name = "greeter"
path = "examples/greeter/main.rs"

[dependencies.anyhow]
version = "1.0"

[dependencies.async-graphql]
version = "7.0"
features = [
    "dynamic-schema",
    "dataloader",
    "boxed-trait",
]

[dependencies.async-graphql-axum]
version = "7.0"

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

[dependencies.axum]
version = "0.8"
features = ["ws"]

[dependencies.base64]
version = "0.22"

[dependencies.futures]
version = "0.3"

[dependencies.governor]
version = "0.6"

[dependencies.hex]
version = "0.4"

[dependencies.http]
version = "1.0"

[dependencies.hyper]
version = "1.0"
features = ["full"]

[dependencies.nonzero_ext]
version = "0.3"

[dependencies.once_cell]
version = "1.19"

[dependencies.opentelemetry]
version = "0.21"

[dependencies.opentelemetry-otlp]
version = "0.14"
optional = true

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

[dependencies.prometheus]
version = "0.13"

[dependencies.prost]
version = "0.13"

[dependencies.prost-reflect]
version = "0.15"

[dependencies.prost-types]
version = "0.13"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1.0"

[dependencies.tokio]
version = "1.0"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-tungstenite]
version = "0.21"

[dependencies.tonic]
version = "0.12"
features = ["tls"]

[dependencies.tower]
version = "0.5"

[dependencies.tower-http]
version = "0.6"
features = [
    "cors",
    "trace",
]

[dependencies.tracing]
version = "0.1"

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

[dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]

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

[build-dependencies.tonic-build]
version = "0.12"
