-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
65 lines (56 loc) · 2.15 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
57
58
59
60
61
62
63
64
65
[package]
name = "hive"
version = "0.1.403"
authors = ["Enoch Carter <[email protected]>"]
edition = "2018"
license-file = "LICENSE.txt"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["gui"]
bluetooth = ["bluster", "blurz", "uuid", "tokio", "lazy_static", "regex"]
websock = ["websocket-codec", "base64", "sha-1", "tokio-util"]
rest = ["reqwest", "tokio"]
gui = ["slint", "crossbeam-channel"]
[dependencies]
ahash = "0.8.11"
slint = { version="1.4.0", optional=true }
futures = "0.3"
#futures-lite = "1.11.3", can't quite use the lite lib.
#https://docs.rs/config/0.10.1/config/
config = "0.13.4"
toml = "0.8.8"
log = "0.4.11"
async-std = "1.9.0"
simple-signal = "1.1.1"
chrono = "0.4.19"
# bytes version limited to reduce duplication with bluetooth
bytes = "1.0.1"
local_ipaddress = "0.1"
num-traits = "0.2.14"
#bluster = {git="https://github.com/dfrankland/bluster", branch="master", optional=true}
#bluster = {path="bluster", optional=true}
bluster = {version="0.1.3", optional=true}
uuid = {version="0.8.1", optional=true}
tokio = {version="1.3.0", optional=true, features=["rt-multi-thread", "time"]}
lazy_static = {version="1.4.0", optional=true}
# regix version limited by serd_hjson / config
regex = {version="1.0", optional=true}
websocket-codec = { version = "0.5.0", optional = true }
base64 = { version = "0.13.0", optional = true }
sha-1 = { version = "0.8", optional = true }
tokio-util = { version = "0.6.2", optional = true }
crossbeam-channel = { version = "0.5", optional = true }
# rest optional dependancy
reqwest = {version="0.11.1", optional = true, features=["json"]}
[target.'cfg(target_os = "linux")'.dependencies]
blurz = { version = "0.4.0", optional = true }
# bluz is depebdent on dbus which requires libdbus-1-dev
[lib]
name = "hive"
# this is needed to build for iOS and Android.
crate-type = ["staticlib", "cdylib", "lib"]
# this dependency is only needed for Android.
[target.'cfg(target_os = "android")'.dependencies]
jni = { version = "0.13.1", default-features = false }
[build-dependencies]
slint-build = "1.4.0"