2 releases

0.1.3 Jan 9, 2024
0.1.1 Mar 28, 2020
0.1.0 Mar 28, 2020

#573 in Unix APIs

21 downloads per month

MIT license

4KB

bluetooth-sys

bluetooth-sys provides unsafe bindings to Linux's C bluetooth API.

Requirements

This package generates bindings using rust-bindgen at build time. It needs, as a result, the appropriate development libraries installed.

For Debian based systems, execute the following:

apt install bluetooth libbluetooth-dev libudev-dev

See also rust-bindgen's own requirements.

Notes

This package currently does the bare minimum. It uses rust-bindgen to generate the bindings, and not much else. An important shortcoming of rust-bindgen is its inability to parse and reimplement inline functions and macros on its own.

These functions and macros are not currently implemented, but might be at any given point in the future. If you need them for a project, please raise an issue - or better yet, submit a PR!

Dependencies

~0–1.9MB
~37K SLoC