Files
servo/components/bluetooth/Cargo.toml
webbeef ae78fbb03a bluetooth: switch to btleplug (#43529)
btleplug depends on tokio so we use a bridge thread to interface with
Servo thread based messaging.
We keep feature parity except for BtleplugGATTService::get_includes()
that will require upstream implementation.
In terms of OS support, I verified on Linux and MacOS. Android is
untested, but btleplug claims support.


Testing: No test failures, green try run at
https://github.com/webbeef/servo/actions/runs/23390850825
Fixes: #43254.

Signed-off-by: webbeef <me@webbeef.org>
2026-03-23 17:01:24 +00:00

34 lines
947 B
TOML

[package]
name = "servo-bluetooth"
version.workspace = true
authors.workspace = true
license.workspace = true
edition.workspace = true
publish.workspace = true
rust-version.workspace = true
repository.workspace = true
description.workspace = true
[lib]
name = "servo_bluetooth"
path = "lib.rs"
[dependencies]
bitflags = { workspace = true }
blurmock = { version = "0.1.2", optional = true }
btleplug = { version = "0.12", optional = true }
embedder_traits = { workspace = true }
futures = { workspace = true, features = ["executor"] }
log = { workspace = true }
rand = { workspace = true }
servo-base = { workspace = true }
servo-bluetooth-traits = { workspace = true }
servo-config = { workspace = true }
tokio = { workspace = true, features = ["rt", "time", "sync"], optional = true }
uuid = { workspace = true }
[features]
default = ["bluetooth-test"]
bluetooth-test = ["blurmock"]
native-bluetooth = ["bluetooth-test", "btleplug", "tokio"]