Use bindgen output to generate code #22
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rafaelcaricio/lvgl-rs#22
Loading…
Reference in a new issue
No description provided.
Delete branch "syn-codegen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements a better way to generate safe bindings based on
syn
crate. This useslvgl-codegen
directly, which implements code generation for known patterns. This avoids a lot of manual work to expose LVGL API as safe Rust API.Improvements:
clang-rs
;lvgl-codegen
gets cleaner and intuitive to write, since now we are processing Rust code instead of C. C is completely abstracted at thelvgl-sys
/rust-bindgen
level;