# 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"
name = "gin-tonic"
version = "0.8.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "main gin-tonic crate - rust protobuf with gin and tonic"
readme = "README.md"
keywords = [
    "grpc",
    "protobuf",
    "tonic",
]
license = "MIT"
repository = "https://codeberg.org/cemoktra/gin-tonic"
resolver = "2"

[features]
default = [
    "derive",
    "tonic",
    "generator",
]
derive = ["dep:gin-tonic-derive"]
generator = [
    "dep:heck",
    "dep:proc-macro2",
    "dep:protox",
    "dep:quote",
    "dep:syn",
    "dep:prettyplease",
]
internals = []
tonic = [
    "dep:tonic",
    "dep:tonic-build",
]
uuid_bytes = ["gin-tonic-core/uuid_bytes"]
uuid_string = ["gin-tonic-core/uuid_string"]

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

[[bench]]
name = "gin_tonic"
path = "benches/gin_tonic.rs"
harness = false

[[bench]]
name = "prost"
path = "benches/prost.rs"
harness = false

[dependencies.gin-tonic-core]
version = "0.8.2"

[dependencies.gin-tonic-derive]
version = "0.8.2"
optional = true

[dependencies.heck]
version = "0.5.0"
optional = true

[dependencies.prettyplease]
version = "0.2.37"
optional = true

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

[dependencies.protox]
version = "0.9.1"
optional = true

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

[dependencies.syn]
version = "2.0.117"
features = ["full"]
optional = true

[dependencies.thiserror]
version = "2.0.18"

[dependencies.tonic]
version = "0.14.5"
features = ["codegen"]
optional = true
default-features = false

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

[dependencies.tracing]
version = "0.1.44"

[dev-dependencies.criterion]
version = "0.5.1"

[dev-dependencies.hex]
version = "0.4.3"

[dev-dependencies.prost]
version = "0.14.3"

[dev-dependencies.uuid]
version = "1.23.1"
features = ["v4"]

[lints.clippy]
cast_possible_truncation = "warn"
unwrap_used = "deny"

[lints.rust]
