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