-
Notifications
You must be signed in to change notification settings - Fork 13
/
Cargo.toml
57 lines (45 loc) · 1.44 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[package]
name = "hass-rs"
version = "0.3.1"
description = "An async websocket client for Home Assistant"
keywords = ["hass", "homeassistant", "tokio", "async-std"]
authors = ["Dan Rusei <[email protected]>"]
repository = "https://github.com/danrusei/hass-rs"
documentation = "https://docs.rs/hass-rs"
readme = "README.md"
license = "MIT"
edition = "2021"
exclude = [".github/*",]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["use-tokio"]
use-tokio = ["tokio"]
use-async-std = ["async-std"]
[dependencies]
futures-util = "0.3.30"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
async-tungstenite = "0.25"
log = "0.4"
#uuid = { version ="1.7", features = ["serde", "v4"]}
tokio = { version = "1.36", optional = true, features = ["sync"] }
async-std = { version = "1.12", optional = true, features = ["attributes"] }
[dev-dependencies]
lazy_static = "1.4.0"
env_logger = "0.11"
tokio-tungstenite = "0.21"
tokio = { version = "1.36", features = ["full"] }
async-std = { version = "1.12", features = ["attributes"] }
async-tungstenite = {version = "0.25", features = ["async-std-runtime"]}
[[example]]
name = "get_cmds"
path = "examples/get_cmds.rs"
[[example]]
name = "call_service"
path = "examples/call_service.rs"
[[example]]
name = "subscribe_event"
path = "examples/subscribe_event.rs"
[[example]]
name = "get_cmds_async_std"
path = "examples/get_cmds_async_std.rs"