forked from alexmoon/bluest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
49 lines (41 loc) · 1.84 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
[package]
name = "bluest"
version = "0.5.3"
authors = ["Alex Moon"]
edition = "2021"
description = "A cross-platform Bluetooth Low Energy (BLE) library"
documentation = "https://docs.rs/bluest"
repository = "https://github.com/alexmoon/bluest/"
license = "BSD-2-Clause OR Apache-2.0"
keywords = ["bluetooth", "BLE", "gatt", "bluez", "corebluetooth"]
categories = ["asynchronous", "hardware-support", "os"]
[package.metadata.docs.rs]
features = ["serde"]
default-target = "x86_64-apple-darwin"
targets = ["x86_64-apple-darwin", "x86_64-pc-windows-msvc", "x86_64-unknown-linux-gnu"]
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples=examples"]
[features]
serde = ["dep:serde", "uuid/serde", "bluer/serde"]
[dependencies]
async-trait = "0.1.57"
futures-util = { version = "0.3.24" }
serde = { version = "1.0.143", optional = true, features = ["derive"] }
tracing = "0.1.36"
[dev-dependencies]
tokio = { version = "1.20.1", features = ["macros", "rt-multi-thread", "time"] }
tracing-subscriber = { version = "0.3.15", features = ["env-filter"] }
[target.'cfg(not(target_os = "linux"))'.dependencies]
uuid = "1.1.1"
[target.'cfg(windows)'.dependencies]
futures-channel = "0.3.24"
windows = { version = "0.39.0", features = ["implement", "Foundation", "Foundation_Collections", "Devices_Enumeration", "Devices_Bluetooth", "Devices_Bluetooth_Advertisement", "Devices_Bluetooth_GenericAttributeProfile", "Devices_Radios", "Storage_Streams"] }
[target.'cfg(target_os = "linux")'.dependencies]
bluer = { version = "0.15.0", features = ["bluetoothd"] }
once_cell = "1.13.1"
tokio = { version = "1.20.1", features = ["rt-multi-thread"] }
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies]
objc = "0.2.7"
objc_id = "0.1.1"
objc-foundation = "0.1.1"
tokio = { version = "1.20.1", features = ["sync"] }
tokio-stream = { version = "0.1.9", features = ["sync"] }