[package]
name = "enya-client"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
repository.workspace = true
description = "Client abstraction supporting multiple metrics backends (Prometheus, Enya)"

[dependencies]
egui = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
log = { workspace = true }
parking_lot = { workspace = true }
poll-promise = { workspace = true }
rustc-hash = { workspace = true }
reqwest = { workspace = true }

# Native: tokio for async runtime, prost for OTLP protobuf decoding
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
tokio = { workspace = true }
prost = "0.14"

# WASM: wasm-bindgen-futures for async, web-time for timestamps
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = { workspace = true }
web-time = { workspace = true }

[dev-dependencies]
tokio = { workspace = true, features = ["rt-multi-thread"] }

[lints]
workspace = true
