glimta 0.1.0

A local-first Rust client for the classic IKEA TRADFRI gateway
Documentation
[package]
name = "glimta"
version = "0.1.0"
edition = "2024"
rust-version = "1.85"
description = "A local-first Rust client for the classic IKEA TRADFRI gateway"
license = "MIT"
repository = "https://github.com/Mik-pe/glimta"
readme = "README.md"
keywords = ["ikea", "tradfri", "coap", "home-automation", "iot"]
categories = ["api-bindings", "network-programming"]

[features]
default = ["network"]
network = [
    "dep:coap",
    "dep:futures-core",
    "dep:mdns-sd",
    "dep:rand",
    "dep:tokio",
    "dep:webrtc-dtls",
]
cli = ["network", "dep:clap", "dep:rpassword"]

[dependencies]
serde = { version = "1", features = ["derive"] }
serde_json = "1"
thiserror = "2"
coap = { version = "0.27", default-features = false, features = ["dtls"], optional = true }
futures-core = { version = "0.3", optional = true }
mdns-sd = { version = "0.20", optional = true }
rand = { version = "0.9", optional = true }
tokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"], optional = true }
webrtc-dtls = { version = "0.8", optional = true }
clap = { version = "4", features = ["derive"], optional = true }
rpassword = { version = "7", optional = true }

[[bin]]
name = "glimta"
path = "src/bin/glimta.rs"
required-features = ["cli"]

[lints.rust]
unsafe_code = "forbid"

[lints.clippy]
all = "warn"
pedantic = "warn"