[package]
edition = "2021"
rust-version = "1.75"
name = "bluetooth_core"
version = "0.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform Bluetooth LE (btleplug wrapper) with a small C ABI."
readme = "README.md"
keywords = [
"bluetooth",
"ble",
"btleplug",
"ffi",
]
categories = [
"hardware-support",
"api-bindings",
]
license = "MIT"
repository = "https://github.com/ManyMath/bluetooth"
[lib]
name = "bluetooth_core"
crate-type = [
"cdylib",
"staticlib",
"rlib",
]
path = "src/lib.rs"
[[example]]
name = "scan"
path = "examples/scan.rs"
[dependencies.btleplug]
version = "0.12"
features = ["serde"]
[dependencies.futures]
version = "0.3"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"sync",
"time",
"macros",
]
[dependencies.uuid]
version = "1"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.dispatch2]
version = "0.3"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2]
version = "0.6"
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-core-bluetooth]
version = "0.3"
features = [
"CBCentralManager",
"CBManager",
"CBPeripheral",
]
[target.'cfg(any(target_os = "macos", target_os = "ios"))'.dependencies.objc2-foundation]
version = "0.3"
features = ["NSString"]
[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.19"
[profile.release]
lto = true