-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
54 lines (46 loc) 路 1.33 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
[package]
name = "dirigera"
description = "Manage your IKEA Tr氓dfri devices with Rust"
version = "0.2.0"
edition = "2021"
authors = ["Simon Sawert<simon@sawert.se>"]
license = "MIT"
readme = "README.md"
homepage = "https://github.com/bombsimon/dirigera-rs"
repository = "https://github.com/bombsimon/dirigera-rs"
[dependencies]
anyhow = "1.0"
chrono = "0.4"
http = "0.2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
hyper-rustls = "0.24.2"
rustls = { version = "0.21.8", features = ["dangerous_configuration"] }
hyper = { version ="0.14.27", features = ["full"] }
# Dependencies needed to run the binary to generate a token. Can be skipped if
# already obtained token or after token is obtained.
tokio = { version = "1.33", features = ["full"], optional = true}
toml = { version = "0.5", optional = true }
pkce = { version = "0.1.1", optional = true }
url = { version = "2.4", optional = true }
reqwest = { version = "0.11.22", features = ["json"], optional = true }
[dev-dependencies]
rand = "0.8.5"
[features]
default = []
config = ["dep:toml"]
example = ["config", "dep:tokio"]
binary = [
"config",
"dep:pkce",
"dep:reqwest",
"dep:tokio",
"dep:url",
]
[[bin]]
name = "generate-token"
path = "src/bin/generate_token.rs"
required-features = ["binary"]
[[example]]
name = "dirigera"
required-features = ["example"]