Disable lvgl original comments in bindings

We disable the comments generation here because some comments
cause the `cargo test` command to fail. Some of the original
comments have invalid tokens like `TYPEDEFS` causing issues.
We should recommend users to look the original comments in the
original lvgl in their C API docs.
This commit is contained in:
Rafael Caricio 2021-03-06 21:09:06 +01:00 committed by Rafael Carício
parent da8bae1f55
commit bcd771df47
2 changed files with 7 additions and 0 deletions

View file

@ -27,6 +27,12 @@ In order to build the `lvgl` project you will need the following system dependen
$ sudo apt install build-essential llvm clang
```
If you want to build the examples, then you will need to install SDL2 as well.
```
$ sudo apt install libsdl2-dev
```
## Usage
Edit your `Cargo.toml` file dependencies with:

View file

@ -101,6 +101,7 @@ fn main() {
let out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
let bindings = bindgen::Builder::default()
.header(shims_dir.join("lvgl_sys.h").to_str().unwrap())
.generate_comments(false)
.layout_tests(false)
.use_core()
.rustfmt_bindings(true)