Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better interop with bindgen generated types? #604

Closed
danielocfb opened this issue Nov 3, 2023 · 1 comment
Closed

Better interop with bindgen generated types? #604

danielocfb opened this issue Nov 3, 2023 · 1 comment

Comments

@danielocfb
Copy link
Collaborator

(there is some potential overlap with #602 and perhaps even #590, depending on what we end up building, but let's perhaps capture issues as we identify them currently)

There may be cases where it is unavoidable for a user to use bindgen for generating Rust types for something not otherwise interacted with by libbpf-cargo. In such an instance -- the current thinking goes -- it may be necessary for users to hook up bindgen themselves. This can potentially result in a situation where there is an overlap between what bindgen and libbpf-rs generates and that, in turn, could result in bad ergonomics, because these would be distinct types at the Rust level and there is no way to convert the two.

We need to come up with a good story to mitigate such a situation.

@danielocfb
Copy link
Collaborator Author

Confirmed that this issue is no longer one with recent changes to expose all BTF types in Rust.

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

No branches or pull requests

1 participant