Registry / networking / bluer
library0.17.4rscratesunverified

Official Rust interface to the Linux Bluetooth protocol stack (BlueZ).

# Cargo.toml [dependencies] bluer = "0.17.4"
INSTALL
IMPORT
SIG · BLUER
B
bluer
networkingrustv0.17.4
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.

Adapter
use bluer::Adapter;

Powers on the default Bluetooth adapter using BlueZ.

use bluer::Adapter; #[tokio::main] async fn main() -> bluer::Result<()> { let session = bluer::Session::new().await?; let adapter = session.default_adapter().await?; adapter.set_powered(true).await?; println!("Bluetooth adapter is powered on"); Ok(()) }
Debug
Known issues
gotchaRequires Linux with BlueZ installed and D-Bus running.
fix
Ensure BlueZ is installed and the D-Bus system bus is available.
affects: >=0.1.0
Upgrade
Version history
0.17.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
OpenAI (training)
1
Resources
bluer — cargo add bluer · libregistry