Registry / networking / btleplug

btleplug

JSON →
library0.12.0rscratesunverified

A cross-platform Rust Bluetooth Low Energy (BLE) GATT library.

# Cargo.toml [dependencies] btleplug = "0.12.0"
INSTALL
IMPORT
SIG · BTLEPLUG
B
btleplug
networkingrustv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Manager
use btleplug::api::Manager;

Create a BLE manager instance

use btleplug::api::Manager; #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> { let manager = btleplug::platform::Manager::new().await?; println!("BLE manager created"); Ok(()) }
Debug
Known issues
gotchaRequires async runtime (tokio) and platform-specific features
fix
Add tokio dependency and enable platform feature (e.g., default-features = false, features = ["tokio"])
affects: >=0.10.0
Upgrade
Version history
0.12.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Amazon
1
OpenAI (training)
1
Resources
btleplug — cargo add btleplug · libregistry