[package]
edition = "2021"
rust-version = "1.82"
name = "tonic-rest-openapi"
version = "0.1.0"
build = false
exclude = ["tests/"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenAPI 3.1 spec generation and patching from protobuf descriptors for Tonic gRPC services"
homepage = "https://github.com/zs-dima/tonic-rest"
documentation = "https://docs.rs/tonic-rest-openapi"
readme = "README.md"
keywords = [
"grpc",
"rest",
"protobuf",
"openapi",
"tonic",
]
categories = [
"web-programming",
"development-tools",
]
license = "MIT"
repository = "https://github.com/zs-dima/tonic-rest"
[package.metadata.docs.rs]
all-features = true
[features]
cli = [
"dep:clap",
"dep:toml",
"dep:anyhow",
]
default = []
[lib]
name = "tonic_rest_openapi"
path = "src/lib.rs"
[[bin]]
name = "tonic-rest-openapi"
path = "src/main.rs"
required-features = ["cli"]
[dependencies.anyhow]
version = "1.0"
optional = true
[dependencies.clap]
version = "4.5"
features = ["derive"]
optional = true
[dependencies.prost]
version = "0.14"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_yaml_ng]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.toml]
version = "0.9"
optional = true
[dependencies.tonic-rest-build]
version = "0.1"
default-features = false
[dev-dependencies.indoc]
version = "2"
[dev-dependencies.pretty_assertions]
version = "1"
[lints.clippy]
all = "warn"
pedantic = "warn"
[lints.rust]
unsafe_code = "forbid"