Rust Bluetooth

Rust BLE libraries, compared

Five ways to reach Bluetooth Low Energy from Rust. SimpleBLE runs on Windows, macOS, and Linux from one crate, as a central and a peripheral, and the team that builds it supports your product.

Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Kober Engineering
InsuLearn
Meta
Fender
Honeywell
Bionic Labs
Sona
SWT
Moon Smart Focus
Lewitt
Medra
Desko
g.tec
IXI
Innovision
Moonlighting Industries
Comparison

How the Rust BLE crates compare

Platforms, roles, and licensing decide which crate fits a commercial Rust product. This is where each one stands.

How the Rust BLE crates compare
SimpleBLEsimplersbleWindows, macOS, LinuxCentral and peripheralSwift and Kotlin for mobile, plus C++, Python, C#, and moreSource-available (BUSL 1.1); one commercial license per company
btleplugbtleplugWindows, macOS, Linux, iOS, AndroidCentralRust onlyBSD-3-Clause, with parts under MIT and Apache 2.0
BluestbluestWindows, macOS, iOS, LinuxCentralRust onlyBSD-2-Clause or Apache 2.0
BlueROfficial BlueZ bindingsLinuxCentral and peripheralRust onlyBSD-2-Clause
Native OS APIswindows, objc2-core-bluetooth, D-BusWindows, macOS, Linux, each with its own APIYes, through each platform's own APIEach platform's own bindingsIncluded with each operating system
The options

The Rust BLE crates, one by one

SimpleBLE

SimpleBLE is a Bluetooth Low Energy library for Windows, macOS, Linux, iOS, and Android. Its Rust crate, SimpleRsBLE, scans and connects as a central and hosts GATT services as a peripheral on every desktop platform, with events delivered as async streams and errors that work with the ? operator. SimpleBLE links statically into your binary. Your mobile apps use the same library through its Swift and Kotlin packages, and commercial customers work directly with the engineers who build it.

btleplug

btleplug is an async central-role crate for Windows, macOS, Linux, iOS, and Android. Its README describes it as host and central mode only and points to other crates for the peripheral role, so a product that also advertises or hosts GATT services combines two crates with two APIs. SimpleBLE covers both roles in one crate.

Bluest

Bluest is a thin cross-platform layer over each platform's Bluetooth API for Windows, macOS, iOS, and Linux, where it builds on BlueR. It supports the central and GATT client roles; its README states that the peripheral and server roles are not supported.

BlueR

BlueR is the official Rust interface to BlueZ, the Linux Bluetooth stack, under the BSD-2-Clause license. It consumes and publishes GATT services and sends advertisements on Linux. A product that also ships on Windows or macOS needs a separate implementation there, and SimpleBLE gives you both roles on all three desktops with one API.

Native OS APIs

Rust can call each platform's Bluetooth API directly: WinRT through the windows crate, CoreBluetooth through objc2 bindings, and BlueZ over D-Bus on Linux. It costs nothing in licenses and takes one implementation per platform, each with its own threading, errors, and lifecycle. SimpleBLE is that work, done once and maintained for you.

Get started

Scan, connect, and host in a few lines

Add it with cargo add simplersble. Every call that can fail returns a Result, and this is the code for each step.

use std::time::Duration;
use simplersble::Adapter;

fn main() -> Result<(), simplersble::Error> {
    let adapter = Adapter::get_adapters()?.remove(0);

    adapter.scan_for(Duration::from_secs(5))?;
    for peripheral in adapter.scan_get_results()? {
        println!("{} [{}]", peripheral.identifier()?, peripheral.address()?);
    }
    Ok(())
}
Why SimpleBLE

What SimpleBLE gives your Rust product

Platforms

Windows, macOS, and Linux

One crate, one API, on every desktop.

Roles

Central and peripheral

Scan and connect, or advertise and serve GATT, from one crate.

Rust

Streams and Results

Events arrive as async streams. Errors work with the ? operator.

Mobile

The same library on mobile

Your iOS and Android apps run SimpleBLE through Swift and Kotlin.

Hardware

Dongl on desktop

Plug in a Dongl for a dedicated radio on Windows, macOS, or Linux. Same code.

Support

A direct line to the engineers

Commercial customers work directly with the team that builds SimpleBLE.

Try SimpleBLE in your Rust product

Evaluation needs no license. For commercial use, one agreement covers your whole company, with no per-seat, per-device, or royalty fees.

Frequently
asked questions

SimpleBLE hosts GATT services and advertises on Windows, macOS, and Linux. BlueR does both on Linux. btleplug and Bluest work in the central role.

SimpleBLE, btleplug, and Bluest run on all three. BlueR runs on Linux.

SimpleBLE runs on iOS and Android through its Swift and Kotlin packages, built on the same core as the Rust crate. btleplug also targets iOS and Android from Rust, and Bluest targets iOS.

Add simplersble with cargo, then move scanning, connections, and GATT calls one flow at a time. Characteristics are addressed by service and characteristic UUID strings, values are byte vectors, and events arrive as streams, as they do in btleplug.

Yes. On Windows, macOS, and Linux, SimpleRsBLE drives a Dongl USB adapter with the same code it uses for the computer's built-in Bluetooth.

SimpleBLE is source-available under the Business Source License 1.1 and free for non-commercial use. Evaluation needs no license. Commercial use needs a license, and one agreement covers your whole company, with no per-seat, per-device, or royalty fees.