-
-
Notifications
You must be signed in to change notification settings - Fork 158
/
Copy pathCargo.toml
60 lines (51 loc) · 1.76 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
[package]
name = "btleplug"
version = "0.10.4"
authors = ["Nonpolynomial, LLC <[email protected]>"]
license = "MIT/Apache-2.0/BSD-3-Clause"
repository = "https://github.com/deviceplug/btleplug"
homepage = "https://github.com/deviceplug/btleplug"
edition = "2021"
description = """
A Cross-Platform Rust Bluetooth Low Energy (BLE) GATT
library.
"""
readme = "README.md"
keywords = ["bluetooth", "BLE", "bluez", "uwp", "corebluetooth"]
categories = ["hardware-support"]
[lib]
name = "btleplug"
path = "src/lib.rs"
[features]
serde = ["uuid/serde", "serde_cr", "serde_bytes"]
[dependencies]
async-trait = "0.1.58"
log = "0.4.17"
bitflags = "1.3.2"
thiserror = "1.0.37"
uuid = "1.2.2"
serde_cr = { package = "serde", version = "1.0.147", features = ["derive"], default-features = false, optional = true }
serde_bytes = { version = "0.11.7", optional = true }
dashmap = "5.4.0"
futures = "0.3.25"
static_assertions = "1.1.0"
tokio = { version = "1.22.0", features = ["rt", "sync"] }
tokio-stream = { version = "0.1.11", features = ["sync"] }
[target.'cfg(target_os = "linux")'.dependencies]
dbus = "0.9.6"
bluez-async = "0.6.0"
[target.'cfg(target_os = "android")'.dependencies]
jni = "0.19.0"
once_cell = "1.16.0"
jni-utils = "0.1.0"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
cocoa = "0.24.1"
objc = "0.2.7"
libc = "0.2.137"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.43.0", features = ["Devices_Bluetooth", "Devices_Bluetooth_GenericAttributeProfile", "Devices_Bluetooth_Advertisement", "Devices_Radios", "Foundation_Collections", "Foundation", "Storage_Streams"] }
[dev-dependencies]
rand = "0.8.5"
pretty_env_logger = "0.4.0"
tokio = { version = "1.22.0", features = ["macros", "rt", "rt-multi-thread"] }
serde_json = "1.0.89"