[package]
edition = "2024"
name = "blew"
version = "0.2.0-alpha.2"
authors = ["Jake McGinty <me@jakebot.org>"]
build = false
include = [
"src/**/*.rs",
"Cargo.toml",
"LICENSE",
"README.md",
"android/.editorconfig",
"android/.gitignore",
"android/build.gradle.kts",
"android/settings.gradle",
"android/src/main/AndroidManifest.xml",
"android/src/main/java/**/*.kt",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform async BLE library for Rust (Apple, Linux, Android)"
readme = "README.md"
keywords = [
"bluetooth",
"ble",
"gatt",
"l2cap",
]
categories = [
"hardware-support",
"network-programming",
]
license = "AGPL-3.0-or-later"
repository = "https://github.com/mcginty/blew"
resolver = "2"
[features]
testing = []
[lib]
name = "blew"
path = "src/lib.rs"
[dependencies.bitflags]
version = "2"
[dependencies.bytes]
version = "1"
[dependencies.futures-core]
version = "0.3"
[dependencies.parking_lot]
version = "0.12"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"sync",
"rt",
"io-util",
"macros",
"time",
]
[dependencies.tokio-stream]
version = "0.1"
features = ["sync"]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = ["v4"]
[dev-dependencies.proptest]
version = "1"
features = ["std"]
default-features = false
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
[target.'cfg(target_os = "android")'.dependencies.jni]
version = "0.22"
[target.'cfg(target_os = "android")'.dependencies.ndk-context]
version = "0.1"
[target.'cfg(target_os = "android")'.dependencies.serde_json]
version = "1"
[target.'cfg(target_os = "linux")'.dependencies.bluer]
version = "0.17"
features = ["full"]
[target.'cfg(target_vendor = "apple")'.dependencies.dispatch2]
version = "0.3"
features = [
"alloc",
"objc2",
]
[target.'cfg(target_vendor = "apple")'.dependencies.objc2]
version = "0.6"
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-core-bluetooth]
version = "0.3"
features = [
"CBError",
"CBCentralManagerConstants",
]
[target.'cfg(target_vendor = "apple")'.dependencies.objc2-foundation]
version = "0.3"
features = [
"NSData",
"NSDate",
"NSString",
"NSUUID",
"NSArray",
"NSDictionary",
"NSObject",
"NSError",
"NSRunLoop",
"NSValue",
"NSStream",
]
[lints.clippy]
default_trait_access = "allow"
doc_markdown = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
unseparated_literal_suffix = "warn"
used_underscore_items = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1