mirror of
https://github.com/servo/servo.git
synced 2025-09-29 16:19:14 +01:00
Integrate the devices
respository (#30974)
Despite the name of this dependency, it only handles bluetooth. Because it's a separate repository. Integrating it, allows changes here to be tested more consistently. In addition, it's likely that new bluetooth libraries will allow removing the majority of the platform-specific code in this directory. This is based on the version of this dependency from: https://github.com/servo/devices/pull/34
This commit is contained in:
parent
fddc4a430f
commit
6a804cd775
23 changed files with 3880 additions and 27 deletions
55
third_party/blurmac/README.md
vendored
Normal file
55
third_party/blurmac/README.md
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
# Bluetooth Rust lib using macOS CoreBluetooth
|
||||
|
||||
[](https://travis-ci.org/akosthekiss/blurmac)
|
||||
[](https://crates.io/crates/blurmac)
|
||||
|
||||
The main aim of BlurMac is to enable [WebBluetooth](https://webbluetoothcg.github.io)
|
||||
in [Servo](https://github.com/servo/servo) on macOS. Thus, API and implementation
|
||||
decisions are affected by the encapsulating [Devices](https://github.com/servo/devices),
|
||||
and the sibling [BlurZ](https://github.com/szeged/blurz) and [BlurDroid](https://github.com/szeged/blurdroid)
|
||||
crates.
|
||||
|
||||
|
||||
## Run Servo with WebBluetooth Enabled
|
||||
|
||||
Usually, you don't want to work with BlurMac on its own but use it within Servo.
|
||||
So, most probably you'll want to run Servo with WebBluetooth enabled:
|
||||
|
||||
```
|
||||
RUST_LOG=blurmac \
|
||||
./mach run \
|
||||
--dev \
|
||||
--pref=dom.bluetooth.enabled \
|
||||
--pref=dom.permissions.testing.allowed_in_nonsecure_contexts \
|
||||
URL
|
||||
```
|
||||
|
||||
Notes:
|
||||
* The above command is actually not really BlurMac-specific (except for the `RUST_LOG`
|
||||
part). It runs Servo with WBT enabled on any platform where WBT is supported.
|
||||
* You don't need the `RUST_LOG=blurmac` part if you don't want to see BlurMac debug
|
||||
messages on the console.
|
||||
* You don't need the `--dev` part if you want to run a release build.
|
||||
* You don't need the `--pref=dom.permissions.testing.allowed_in_nonsecure_contexts`
|
||||
part if your `URL` is https (but you do need it if you test a local file).
|
||||
|
||||
|
||||
## Known Issues
|
||||
|
||||
* Device RSSI can not be retrieved yet.
|
||||
* Support for included services is incomplete.
|
||||
* Descriptors are not supported yet.
|
||||
* Notifications on characteristics are not supported yet (the limitation comes from
|
||||
Devices).
|
||||
|
||||
|
||||
## Compatibility
|
||||
|
||||
Tested on:
|
||||
|
||||
* macOS Sierra 10.12.
|
||||
|
||||
|
||||
## Copyright and Licensing
|
||||
|
||||
Licensed under the BSD 3-Clause [License](LICENSE.md).
|
Loading…
Add table
Add a link
Reference in a new issue