# 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.75" name = "sylvia-iot-broker" version = "0.1.15" authors = ["Chien-Hong Chan"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "The message broker module of the Sylvia-IoT platform." readme = "README.md" keywords = ["iot"] categories = ["web-programming::http-server"] license = "MIT" repository = "https://github.com/woofdogtw/sylvia-iot-core.git" resolver = "1" [profile.release] lto = true codegen-units = 1 strip = true [profile.test] incremental = true [lib] name = "sylvia_iot_broker" path = "src/lib.rs" [[bin]] name = "sylvia-iot-broker" path = "src/bin/sylvia-iot-broker.rs" [[test]] name = "integration_test" path = "tests/integration_test.rs" [dependencies.async-stream] version = "0.3.5" [dependencies.async-trait] version = "0.1.83" [dependencies.axum] version = "0.7.6" [dependencies.axum-prometheus] version = "0.7.0" [dependencies.axum-server] version = "0.7.1" features = ["tls-rustls"] [dependencies.bson] version = "2.13.0" features = ["chrono-0_4"] [dependencies.chrono] version = "0.4.38" features = ["serde"] default-features = false [dependencies.clap] version = "4.5.18" features = [ "std", "help", "usage", "error-context", ] default-features = false [dependencies.futures] version = "0.3.30" [dependencies.general-mq] version = "0.1.15" [dependencies.hex] version = "0.4.3" [dependencies.json5] version = "0.4.1" [dependencies.log] version = "0.4.22" [dependencies.lru] version = "0.12.4" [dependencies.mongodb] version = "3.1.0" [dependencies.reqwest] version = "0.12.7" features = [ "json", "rustls-tls", ] default-features = false [dependencies.rustls] version = "0.23.13" [dependencies.serde] version = "1.0.210" features = ["derive"] [dependencies.serde_json] version = "1.0.128" [dependencies.sql-builder] version = "3.1.1" [dependencies.sqlx] version = "0.8.2" features = [ "macros", "runtime-tokio", "sqlite", ] default-features = false [dependencies.sylvia-iot-corelib] version = "0.1.15" [dependencies.tokio] version = "1.40.0" features = [ "io-util", "macros", "rt-multi-thread", "sync", "time", ] [dependencies.tower] version = "0.5.1" [dependencies.tower-http] version = "0.6.1" features = [ "cors", "fs", "normalize-path", "timeout", ] default-features = false [dependencies.url] version = "2.5.2" [dev-dependencies.axum-test] version = "16.0.0" [dev-dependencies.laboratory] version = "2.0.0" [dev-dependencies.serde_urlencoded] version = "0.7.1" [dev-dependencies.sylvia-iot-auth] version = "0.1.15"