[package]
edition = "2021"
name = "freshblu-server"
version = "0.1.2"
authors = ["FreshBlu Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HTTP/WebSocket/MQTT server for the FreshBlu IoT messaging platform"
readme = "README.md"
keywords = [
"iot",
"meshblu",
"mqtt",
"websocket",
"server",
]
categories = [
"network-programming",
"web-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/virgilvox/freshblu"
[features]
cache = ["freshblu-store/cache"]
default = ["sqlite"]
postgres = ["freshblu-store/postgres"]
sqlite = ["freshblu-store/sqlite"]
[lib]
name = "freshblu_server"
path = "src/lib.rs"
[[bin]]
name = "freshblu-server"
path = "src/main.rs"
[[test]]
name = "api_integration"
path = "tests/api_integration.rs"
[[test]]
name = "arduino_compat"
path = "tests/arduino_compat.rs"
[[test]]
name = "hardening_tests"
path = "tests/hardening_tests.rs"
[[test]]
name = "message_delivery"
path = "tests/message_delivery.rs"
[[test]]
name = "mqtt_integration"
path = "tests/mqtt_integration.rs"
[[test]]
name = "new_endpoints_tests"
path = "tests/new_endpoints_tests.rs"
[[test]]
name = "permission_matrix"
path = "tests/permission_matrix.rs"
[[test]]
name = "rate_limit_tests"
path = "tests/rate_limit_tests.rs"
[[test]]
name = "security_regression"
path = "tests/security_regression.rs"
[[test]]
name = "stress"
path = "tests/stress.rs"
[[test]]
name = "webhook_tests"
path = "tests/webhook_tests.rs"
[[test]]
name = "ws_integration"
path = "tests/ws_integration.rs"
[[test]]
name = "ws_protocol"
path = "tests/ws_protocol.rs"
[[bench]]
name = "server_bench"
path = "benches/server_bench.rs"
harness = false
[dependencies.anyhow]
version = "1"
[dependencies.async-nats]
version = "0.38"
[dependencies.async-trait]
version = "0.1"
[dependencies.axum]
version = "0.7"
features = [
"ws",
"macros",
]
[dependencies.axum-extra]
version = "0.9"
features = ["typed-header"]
[dependencies.base64]
version = "0.21"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.config]
version = "0.14"
[dependencies.dashmap]
version = "5"
[dependencies.dotenvy]
version = "0.15"
[dependencies.freshblu-core]
version = "0.1.2"
[dependencies.freshblu-proto]
version = "0.1.2"
[dependencies.freshblu-store]
version = "0.1.2"
default-features = false
[dependencies.futures]
version = "0.3"
[dependencies.hyper]
version = "1"
features = ["full"]
[dependencies.lazy_static]
version = "1"
[dependencies.prometheus]
version = "0.13"
[dependencies.redis]
version = "0.27"
features = [
"tokio-comp",
"connection-manager",
]
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[dependencies.rumqttd]
version = "0.19"
features = ["default"]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "1"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
[dependencies.tokio-tungstenite]
version = "0.21"
features = ["native-tls"]
[dependencies.tower]
version = "0.4"
features = ["full"]
[dependencies.tower-http]
version = "0.5"
features = [
"cors",
"trace",
]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[dependencies.url]
version = "2"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.base64]
version = "0.21"
[dev-dependencies.criterion]
version = "0.5"
features = ["async_tokio"]
[dev-dependencies.futures]
version = "0.3"
[dev-dependencies.portpicker]
version = "0.1"
[dev-dependencies.rumqttc]
version = "0.24"
[dev-dependencies.serde_json]
version = "1"
[dev-dependencies.tokio]
version = "1"
features = ["full"]
[dev-dependencies.tokio-tungstenite]
version = "0.21"
features = ["native-tls"]
[dev-dependencies.tower]
version = "0.4"
features = ["full"]
[dev-dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.wiremock]
version = "0.6"