Skip to content

Conversation

abrown
Copy link
Contributor

@abrown abrown commented Apr 9, 2021

Previously, many libc types and functions were exported by openvino-sys (and visible in docs.rs). This change tightens up rust-bindgen to only emit the ie_* functions (and their recursively-used types, a default setting). It also eliminates some __uint8_t and __int64_t as well as properly transforming size_t to usize.

abrown added 3 commits April 9, 2021 11:46
Previously, many libc types and functions were exported by openvino-sys (and visible in docs.rs). This change tightens up rust-bindgen to only emit the `ie_*` functions (and their recursively-used types, a default setting). It also eliminates some `__uint8_t` and `__int64_t` as well as properly transforming `size_t` to `usize`.
With the bindgen change to use `size_t_is_usize`, the high-level API no longer has to cast `usize` to `u64` before calling into the openvino-sys crate.
@abrown abrown merged commit 3b30722 into intel:main Apr 9, 2021
@abrown abrown deleted the clean-up-sys branch April 9, 2021 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant