[package] name = "drogue-client" version = "0.11.1" authors = ["Jens Reimann "] license = "Apache-2.0" description = "Clients for the Drogue IoT Cloud APIs" repository = "https://github.com/drogue-iot/drogue-client" homepage = "https://drogue.io" categories = ["api-bindings"] keywords = ["IoT", "API"] readme = "README.md" edition = "2021" [dependencies] async-trait = "0.1" base64 = "0.13" base64-serde = "0.6" chrono = { version = "0.4.20", features = ["serde"] } futures = "0.3" humantime-serde = "1" indexmap = { version = "1", features = ["serde"] } log = "0.4" serde = { version = "1", features = ["derive"] } serde_json = "1" thiserror = "1" tokio = { version = "1", features = ["sync"] } tracing = "0.1" url = "2" http = { version = "0.2", optional = true } nom = { version = "7", optional = true } openid = { version = "0.10", optional = true } opentelemetry = { version = "0.18", optional = true } opentelemetry-http = { version = "0.7", optional = true } reqwest = { version = "0.11.11", features = ["json"], optional = true } # requires 0.11.11+ lazy_static = { version = "1", optional = true } prometheus = { version = "0.13", optional = true } [features] default = ["reqwest", "openid", "telemetry", "nom"] telemetry = [ "http", "lazy_static", "opentelemetry", "opentelemetry-http", "prometheus" ] # alternate default target for wasm wasm = ["reqwest", "nom"] [dev-dependencies] anyhow = "1" tokio = { version = "1.17.0", features = ["macros"] }