# 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.68"
name = "gmqtt-client"
version = "0.3.0"
authors = ["biuro@genesismobo.com"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Simple MQTTv5 client"
readme = "README.md"
keywords = [
    "mqtt",
    "mqtt5",
    "client",
]
license = "MIT/Apache-2.0"
repository = "https://gitlab.com/genesismobo/gmqtt-client"

[features]
default = ["json"]
json = [
    "dep:serde",
    "dep:serde_json",
]

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

[[example]]
name = "client"
path = "examples/client.rs"

[[example]]
name = "publisher"
path = "examples/publisher.rs"

[[example]]
name = "subscriber"
path = "examples/subscriber.rs"

[dependencies.anyhow]
version = "1"

[dependencies.bytes]
version = "1"

[dependencies.fluent-uri]
version = "0.4"

[dependencies.futures-util]
version = "0.3"
features = [
    "std",
    "sink",
    "async-await",
    "async-await-macro",
]
default-features = false

[dependencies.mqttbytes]
version = "0.6"

[dependencies.parking_lot]
version = "0.12"

[dependencies.rand]
version = "0.9"

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

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

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.tokio]
version = "1"
features = [
    "time",
    "net",
    "macros",
    "parking_lot",
]

[dependencies.tokio-util]
version = "0.7"
features = ["codec"]

[dependencies.tracing]
version = "0.1"
default-features = false

[dev-dependencies.serde_json]
version = "1"

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

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