# 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 = "fundamentum-sdk-mqtt"
version = "0.10.1"
authors = [
    "Walter Bonetti <wbonetti@dimonoff.com>",
    "Jonathan Chouinard <jchouinard@dimonoff.com>",
]
description = "MQTT client targeting Fundamentum IoT's MQTT broker"
homepage = "https://www.dimonoff.com/services/fundamentum-iot-platform-paas"
readme = "README.md"
keywords = [
    "api",
    "iot",
    "sdk",
    "mqtt",
    "fundamentum",
]
categories = ["asynchronous"]
license = "Apache-2.0"
repository = "https://bitbucket.org/amotus/fundamentum-sdk-mqtt"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

[dependencies.backon]
version = "1.3.0"

[dependencies.bytes]
version = "1.5.0"

[dependencies.chrono]
version = "0.4"

[dependencies.derive_builder]
version = "0.12.0"

[dependencies.displaydoc]
version = "0.2.5"

[dependencies.fundamentum-iot-mqtt-proto]
version = "0.2.0"

[dependencies.jsonwebtoken]
version = "8.1"

[dependencies.prost]
version = "0.12.3"

[dependencies.rsa]
version = "0.9"
features = ["default"]

[dependencies.rumqttc]
version = "0.24"
default-features = false

[dependencies.serde]
version = "1"

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1.14.0"
features = [
    "rt-multi-thread",
    "sync",
    "macros",
    "net",
    "time",
    "fs",
]

[dependencies.tracing]
version = "0.1"

[dev-dependencies.cargo-husky]
version = "1.5.0"
features = [
    "precommit-hook",
    "run-cargo-fmt",
]
default-features = false

[dev-dependencies.clap]
version = "3.2.23"
features = ["derive"]

[dev-dependencies.sysinfo]
version = "0.16.5"

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

[features]
default = ["use-native-tls"]
use-native-tls = ["rumqttc/use-native-tls"]
use-rustls = ["rumqttc/use-rustls"]