# 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 = "prost-twirp"
version = "0.2.0"
authors = [
    "Martin Pool",
    "Chad Retz <chad.retz@gmail.com>",
]
exclude = ["examples/*"]
description = "Code generator and library for calling/serving Twirp services in Rust using prost and hyper"
documentation = "https://docs.rs/prost-twirp"
readme = "README.md"
keywords = [
    "rpc",
    "protobuf",
    "async",
    "hyper",
    "http",
]
license = "MIT"
repository = "https://github.com/sourcefrog/prost-twirp"

[dependencies.futures]
version = "0.3"

[dependencies.hyper]
version = "0.14"
features = [
    "client",
    "server",
    "http1",
    "http2",
    "tcp",
]

[dependencies.proc-macro2]
version = "1.0"
optional = true

[dependencies.prost]
version = "0.11"

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

[dependencies.quote]
version = "1.0"
optional = true

[dependencies.serde_json]
version = "1.0"

[features]
service-gen = [
    "prost-build",
    "dep:quote",
    "dep:proc-macro2",
]