-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
48 lines (39 loc) · 1.58 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
[package]
name = "benq-control"
version = "0.1.0"
authors = ["Tim Buckley <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
# base requirements
serialport = { version = "4.0", default-features = false }
bytes = "0.5"
log = "0.4"
thiserror = "1.0"
futures = "0.3"
tokio = { version = "1.2", features = ["full"] }
# requirements for all bins
color-eyre = { version = "0.5", optional = true, default-features = false, features = ["track-caller"] }
env_logger = { version = "0.7", optional = true }
structopt = { version = "0.3", optional = true }
serde = { version = "1.0", features = ["derive"], optional = true}
serde_json = { version = "1.0", optional = true }
# requirements for control server / exporter
tide = { version = "0.16", optional = true }
async-std = { version = "1.6.0", features = ["attributes"], optional = true }
simple-prometheus-exporter = { git = "https://github.com/timothyb89/simple-prometheus-exporter-rs", tag = "v0.1.0", optional = true }
astro-dnssd = { version = "0.2", optional = true }
url = { version = "2", optional = true }
mac_address = { version = "1.1", optional = true }
[features]
default = []
bin = ["env_logger", "color-eyre", "structopt", "serde", "serde_json"]
daemon = ["tide", "async-std", "simple-prometheus-exporter", "astro-dnssd", "url", "mac_address"]
[[bin]]
name = "projector-daemon"
path = "src/bin/projector_daemon.rs"
required-features = ["bin", "daemon"]
[[bin]]
name = "projector-tool"
path = "src/bin/projector_tool.rs"
required-features = ["bin"]