# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "btleplug" version = "0.11.6" authors = ["Nonpolynomial, LLC "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = """ A Cross-Platform Rust Bluetooth Low Energy (BLE) GATT library. """ homepage = "https://github.com/deviceplug/btleplug" readme = "README.md" keywords = [ "bluetooth", "BLE", "bluez", "uwp", "corebluetooth", ] categories = ["hardware-support"] license = "MIT/Apache-2.0/BSD-3-Clause" repository = "https://github.com/deviceplug/btleplug" [lib] name = "btleplug" path = "src/lib.rs" [[example]] name = "discover_adapters_peripherals" path = "examples/discover_adapters_peripherals.rs" [[example]] name = "event_driven_discovery" path = "examples/event_driven_discovery.rs" [[example]] name = "lights" path = "examples/lights.rs" [[example]] name = "subscribe_notify_characteristic" path = "examples/subscribe_notify_characteristic.rs" [dependencies.async-trait] version = "0.1.83" [dependencies.bitflags] version = "2.6.0" [dependencies.dashmap] version = "6.1.0" [dependencies.futures] version = "0.3.31" [dependencies.log] version = "0.4.22" [dependencies.serde_bytes] version = "0.11.15" optional = true [dependencies.serde_cr] version = "1.0.210" features = ["derive"] optional = true default-features = false package = "serde" [dependencies.static_assertions] version = "1.1.0" [dependencies.thiserror] version = "1.0.64" [dependencies.tokio] version = "1.40.0" features = [ "sync", "rt", ] [dependencies.tokio-stream] version = "0.1.16" features = ["sync"] [dependencies.uuid] version = "1.10.0" [dev-dependencies.pretty_env_logger] version = "0.5.0" [dev-dependencies.rand] version = "0.8.5" [dev-dependencies.serde_json] version = "1.0.128" [dev-dependencies.tokio] version = "1.40.0" features = [ "macros", "rt", "rt-multi-thread", ] [features] serde = [ "uuid/serde", "serde_cr", "serde_bytes", ] [target.'cfg(target_os = "android")'.dependencies.jni] version = "0.19.0" [target.'cfg(target_os = "android")'.dependencies.jni-utils] version = "0.1.1" [target.'cfg(target_os = "android")'.dependencies.once_cell] version = "1.20.2" [target.'cfg(target_os = "linux")'.dependencies.bluez-async] version = "0.7.2" [target.'cfg(target_os = "linux")'.dependencies.dbus] version = "0.9.7" [target.'cfg(target_os = "windows")'.dependencies.windows] version = "0.57.0" features = [ "Devices_Bluetooth", "Devices_Bluetooth_GenericAttributeProfile", "Devices_Bluetooth_Advertisement", "Devices_Radios", "Foundation_Collections", "Foundation", "Storage_Streams", ] [target.'cfg(target_vendor = "apple")'.dependencies.objc2] version = "0.5.2" [target.'cfg(target_vendor = "apple")'.dependencies.objc2-core-bluetooth] version = "0.2.2" features = [ "CBAdvertisementData", "CBAttribute", "CBCentralManager", "CBCentralManagerConstants", "CBCharacteristic", "CBDescriptor", "CBManager", "CBPeer", "CBPeripheral", "CBService", "CBUUID", ] [target.'cfg(target_vendor = "apple")'.dependencies.objc2-foundation] version = "0.2.2" features = [ "block2", "NSArray", "NSData", "NSDictionary", "NSEnumerator", "NSError", "NSObject", "NSString", "NSUUID", "NSValue", ]