-
Notifications
You must be signed in to change notification settings - Fork 7
/
Cargo.toml
50 lines (43 loc) · 1.56 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
[package]
name = "btle"
description = "Lightweight Bluetooth Low Energy Drivers. WIP and very not stable yet!! Designed for https://github.com/AndrewGi/BluetoothMeshRust"
version = "0.1.4"
license = "GPL-3.0-only"
readme = "README.md"
authors = ["AndrewGi <andrew@gilbrough.com>"]
edition = "2018"
repository = "https://github.com/AndrewGi/btle/tree/master"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["hci", "std"]
bluez_socket = ["nix", "libc", "std", "hci", "tokio/uds"]
winrt_drivers = ["winrt", "winrt_bluetooth_bindings", "std", "tokio/sync"]
hci = []
classic = []
hci_usb = ["hci", "usbw"]
remote = ["std", "hci"]
std = []
serde-1 = ["serde"]
[dependencies]
winrt = {version = "0.7.2", default_features = false, optional = true}
winrt_bluetooth_bindings = {version = "0.0.4", optional = true}
nix = {version = "0.16.1", optional = true}
libc = {version = "0.2", optional = true}
tokio = {version = "0.2", optional = true, default_features = false}
#rusb = {version = "0.5.5", optional = true}
usbw = {version = "0.0.2", optional = true, path = "../usbw"}
futures-util = {version = "0.3.8", default_features = false, features=["alloc"]}
serde = {version = "1.0", default-features = false, features = ["derive"], optional = true }
[[example]]
name = "advertisement_dump"
[[example]]
name = "windows_test"
required-features = ["winrt_drivers"]
[[example]]
name = "windows_gatt_test"
required-features = ["winrt_drivers"]
[[example]]
name = "usb_test"
required-features = ["hci_usb"]
[dev-dependencies]
tokio = "0.2"