# 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"
rust-version = "1.88"
name = "nestrs-microservices"
version = "0.3.6"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Microservice transport and client primitives for nestrs."
homepage = "https://github.com/Joshyahweh/nestrs"
readme = "README.md"
keywords = [
    "microservices",
    "events",
    "nest",
    "transport",
    "async",
]
categories = [
    "network-programming",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Joshyahweh/nestrs"

[features]
default = []
grpc = [
    "dep:tonic",
    "dep:tonic-prost",
    "dep:prost",
    "dep:bytes",
]
kafka = [
    "dep:rskafka",
    "dep:chrono",
    "dep:uuid",
    "dep:rustls",
    "dep:rustls-pemfile",
    "dep:webpki-roots",
    "rskafka/transport-tls",
]
microservice-metrics = ["dep:metrics"]
mqtt = [
    "dep:rumqttc",
    "dep:uuid",
]
nats = [
    "dep:async-nats",
    "dep:futures-util",
    "dep:time",
]
rabbitmq = [
    "dep:lapin",
    "dep:uuid",
    "dep:futures-util",
]
redis = [
    "dep:redis",
    "dep:futures-util",
]

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

[[test]]
name = "microservices_events"
path = "tests/microservices_events.rs"

[[test]]
name = "wire_conformance"
path = "tests/wire_conformance.rs"

[dependencies.async-nats]
version = "0.47"
optional = true

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

[dependencies.axum]
version = "0.7"

[dependencies.bytes]
version = "1"
optional = true

[dependencies.chrono]
version = "0.4.44"
optional = true

[dependencies.futures-util]
version = "0.3"
optional = true

[dependencies.lapin]
version = "2.5"
optional = true

[dependencies.linkme]
version = "0.3"

[dependencies.metrics]
version = "0.24"
optional = true
default-features = false

[dependencies.nestrs-core]
version = "0.3.6"

[dependencies.nestrs-events]
version = "0.3.6"

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

[dependencies.redis]
version = "0.29"
features = ["tokio-comp"]
optional = true

[dependencies.rskafka]
version = "0.6.0"
optional = true

[dependencies.rumqttc]
version = "0.25.1"
features = ["use-native-tls"]
optional = true
default-features = false

[dependencies.rustls]
version = "0.23"
features = [
    "std",
    "tls12",
    "ring",
]
optional = true
default-features = false

[dependencies.rustls-pemfile]
version = "2"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.time]
version = "0.3.47"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "signal",
    "io-util",
]

[dependencies.tonic]
version = "0.14.5"
features = ["transport"]
optional = true

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

[dependencies.uuid]
version = "1.23.0"
features = ["v4"]
optional = true

[dependencies.webpki-roots]
version = "0.26"
optional = true

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt-multi-thread",
    "net",
    "signal",
]

[build-dependencies.protoc-bin-vendored]
version = "3.2.0"

[build-dependencies.tonic-prost-build]
version = "0.14.5"
