diff options
Diffstat (limited to 'components/bluetooth/Cargo.toml')
-rw-r--r-- | components/bluetooth/Cargo.toml | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/components/bluetooth/Cargo.toml b/components/bluetooth/Cargo.toml index fa2a6feb742..4046b256a1b 100644 --- a/components/bluetooth/Cargo.toml +++ b/components/bluetooth/Cargo.toml @@ -13,7 +13,7 @@ path = "lib.rs" [dependencies] bitflags = { workspace = true } bluetooth_traits = { workspace = true } -device = { git = "https://github.com/servo/devices", features = ["bluetooth-test"], rev = "cb28c4725ffbfece99dab842d17d3e8c50774778" } +blurmock = { version = "0.1.2", optional = true } embedder_traits = { workspace = true } ipc-channel = { workspace = true } log = { workspace = true } @@ -22,4 +22,14 @@ servo_rand = { path = "../rand" } uuid = { workspace = true } [features] -native-bluetooth = ["device/bluetooth"] +native-bluetooth = ["blurz", "blurdroid", "blurmac", "bluetooth-test"] +bluetooth-test = ["blurmock"] + +[target.'cfg(target_os = "linux")'.dependencies] +blurz = { version = "0.3", optional = true } + +[target.'cfg(target_os = "android")'.dependencies] +blurdroid = { version = "0.1.2", optional = true } + +[target.'cfg(target_os = "macos")'.dependencies] +blurmac = { path = "../../third_party/blurmac", optional = true } |