mirror of
https://github.com/servo/servo
synced 2026-04-25 17:15:48 +02:00
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>
34 lines
947 B
TOML
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"]
|