-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Currently, in order to add new bindings to zephyr, a user must modify a few files within the zephyr-lang-rust project, specifically within the zephyr-sys crate. This includes
wrapper.h
: Add include directives for new apis. In addition, some#define
values that are expressions have to be explicitly declared via consts for bindgen to know they have constant values and be made visible. Occasionally, static functions might also have to be written.build.rs
: There is a list of patterns of symbols that bindgen generates bindings for. Depending on the names of the API entries, this list may need to be extended.
The goal here is for an application to be able to extend both of these entirely within the application crate. The header could probably be done with an extra include that is brought in if it is present. The extra binding rules could either come from a text file, or build could be generalized.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Todo