-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathCargo.toml
52 lines (45 loc) · 1.75 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
[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 <[email protected]>"]
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/net"]
bluez_dbus = []
winrt_drivers = ["windows", "std", "tokio/sync", "tokio/rt-multi-thread"]
hci = []
classic = []
hci_usb = ["hci", "usbw"]
remote = ["std", "hci"]
std = []
serde-1 = ["serde"]
[dependencies]
windows = {version="0.61", features=["Devices_Bluetooth_Advertisement", "Devices_Bluetooth_GenericAttributeProfile", "Storage_Streams", "Foundation_Collections"], optional=true}
windows-future = {version="0.2"}
# winrt = {version = "0.8", default-features = false, optional = true}
nix = {version = "0.29.0", optional = true}
libc = {version = "0.2", optional = true}
tokio = {version = "1.44", 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", 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 = {version="1.44", features=["rt"]}