8 stable releases
Uses new Rust 2024
| new 9.4.4 | Feb 12, 2026 |
|---|---|
| 9.4.3 | Dec 17, 2025 |
| 9.4.2 | Nov 16, 2025 |
| 9.4.0 | Oct 16, 2025 |
| 9.2.0 | Sep 26, 2025 |
#2129 in Embedded development
Used in lv_bevy_ecs
20MB
377K
SLoC
Contains (static library, 320KB) libnemagfx.a, (static library, 300KB) libnemagfx-float-abi-hard-wc16.a, (static library, 300KB) libnemagfx-float-abi-hard.a, (static library, 300KB) libnemagfx-wc16.a, (static library, 300KB) libnemagfx.a, (static library, 320KB) libnemagfx-float-abi-hard-wc16.a and 2 more.
lightvgl-sys
Rust raw bindings for the LVGL C library.
Usage
Build requires the following environment variables to be set:
DEP_LV_CONFIG_PATH: Path to the directory containing thelv_conf.hheader file used for configuration of the LVGL library.
It is easier to store them in .cargo/config.toml then rust-analyzer will also pick them up.
[env]
DEP_LV_CONFIG_PATH = { relative = true, value = "." }
Alternatively, it can be added before cargo commands:
DEP_LV_CONFIG_PATH=`pwd` cargo build
Optional configuration
You might as well need to set one or more of these env variables, especially when cross-compiling:
BINDGEN_EXTRA_CLANG_ARGS: Extra clang arguments to be passed to bindgenLV_COMPILE_ARGS: Extra arguments to be passed both to bindgen and to the C compilerCROSS_COMPILE: Target triple when cross-compilingLIBCLANG_PATH: Custom libclang.so location
Compatibility table
| lightvgl-sys | LVGL |
|---|---|
| 9.4.x | 9.4.0 |
| 9.3.x | 9.3.0 |
| 9.2.x | 9.2.2 |
See also
If looking for safe bindings, check out lv_bevy_ecs