# 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.89.0"
name = "rmqtt"
version = "0.19.0"
authors = ["rmqtt <rmqttd@126.com>"]
build = "build.rs"
exclude = [
    ".gitignore",
    ".cargo/config",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "MQTT Server for v3.1, v3.1.1 and v5.0 protocols"
readme = "README.md"
keywords = [
    "MQTT",
    "IoT",
    "messaging",
    "MQTT-Server",
    "MQTT-Broker",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rmqtt/rmqtt.git"

[package.metadata.docs.rs]
all-features = true

[features]
auto-subscription = []
debug = []
default = []
delayed = []
full = [
    "metrics",
    "stats",
    "plugin",
    "grpc",
    "tls",
    "ws",
    "quic",
    "delayed",
    "retain",
    "msgstore",
    "shared-subscription",
    "auto-subscription",
    "limit-subscription",
]
grpc = [
    "rust-box/handy-grpc",
    "rust-box/mpsc",
    "msgstore",
]
limit-subscription = []
macros = [
    "dep:rmqtt-macros",
    "metrics",
    "plugin",
]
metrics = ["rmqtt-macros/metrics"]
msgstore = []
plugin = ["rmqtt-macros/plugin"]
quic = ["rmqtt-net/quic"]
retain = []
shared-subscription = []
stats = []
tls = ["rmqtt-net/tls"]
ws = ["rmqtt-net/ws"]

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

[dependencies.ahash]
version = "0.8"

[dependencies.anyhow]
version = "1.0.99"

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

[dependencies.base64]
version = "0.22"

[dependencies.bincode]
version = "1.3"

[dependencies.bitflags]
version = "2.9.2"

[dependencies.bytes]
version = "1.10"
features = ["serde"]

[dependencies.bytestring]
version = "1.4"
features = ["serde"]

[dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

[dependencies.config]
version = "0.15.8"
features = ["toml"]
default-features = false

[dependencies.dashmap]
version = "6.1.0"

[dependencies.futures]
version = "0.3"

[dependencies.get-size]
version = "0.1"
features = ["derive"]

[dependencies.governor]
version = "0.10"

[dependencies.itertools]
version = "0.14"

[dependencies.leaky-bucket]
version = "1.1.2"

[dependencies.log]
version = "0.4"

[dependencies.parking_lot]
version = "0.12.4"

[dependencies.prometheus]
version = "0.13"

[dependencies.prost]
version = "0.13"

[dependencies.rand]
version = "0.9.0"

[dependencies.rmqtt-codec]
version = "0.2.2"

[dependencies.rmqtt-macros]
version = "0.1"
optional = true

[dependencies.rmqtt-net]
version = "0.3.3"

[dependencies.rmqtt-utils]
version = "0.1"

[dependencies.rust-box]
version = "0.15"
features = [
    "dequemap",
    "task-exec-queue",
    "task-exec-queue-rate",
]

[dependencies.scopeguard]
version = "1"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.systemstat]
version = "0.2"

[dependencies.thiserror]
version = "1.0.69"

[dependencies.tokio]
version = "1.44"
features = [
    "macros",
    "rt-multi-thread",
    "io-util",
]
default-features = false

[dependencies.url]
version = "2.5.4"
default-features = false

[dependencies.uuid]
version = "1.11.0"
features = ["v4"]

[build-dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false

[build-dependencies.rustc_version]
version = "0.4"
