lvgl_sys/
lib.rs

1#![no_std]
2#![allow(non_snake_case)]
3#![allow(non_camel_case_types)]
4#![allow(non_upper_case_globals)]
5#![allow(clippy::too_many_arguments)]
6#![allow(clippy::redundant_static_lifetimes)]
7
8include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
9
10pub fn _bindgen_raw_src() -> &'static str {
11    include_str!(concat!(env!("OUT_DIR"), "/bindings.rs"))
12}
13
14mod string_impl;
15
16#[cfg(test)]
17mod tests {
18    use super::*;
19
20    #[test]
21    fn basic_sanity_check() {
22        unsafe {
23            lv_init();
24
25            let horizontal_resolution = lv_disp_get_hor_res(core::ptr::null_mut());
26            assert_eq!(horizontal_resolution, 0 as i16);
27
28            let vertical_resolution = lv_disp_get_ver_res(core::ptr::null_mut());
29            assert_eq!(vertical_resolution, 0 as i16);
30        }
31    }
32}