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
parent 13641d0d97
commit 5c8927d8d6
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 $ 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 ## Usage
Edit your `Cargo.toml` file dependencies with: 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 out_path = PathBuf::from(env::var("OUT_DIR").unwrap());
let bindings = bindgen::Builder::default() let bindings = bindgen::Builder::default()
.header(shims_dir.join("lvgl_sys.h").to_str().unwrap()) .header(shims_dir.join("lvgl_sys.h").to_str().unwrap())
.generate_comments(false)
.layout_tests(false) .layout_tests(false)
.use_core() .use_core()
.rustfmt_bindings(true) .rustfmt_bindings(true)