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

Remove Error enumeration from libbpf-cargo #609

Merged
merged 1 commit into from
Nov 21, 2023
Merged

Remove Error enumeration from libbpf-cargo #609

merged 1 commit into from
Nov 21, 2023

Conversation

danielocfb
Copy link
Collaborator

The Error enumeration in libbpf-cargo doesn't really serve any meaningful purposes at this point: sure, it helps users differentiate between build and generation errors, but the difference arguably has no semantic significance that is worth preserving. On top of that, users can always invoke build() and generate() instead of build_and_generate() to have literally the same information at their finger tips.
Remove the Error type in favor of just exposing a anyhow::Error, which is probably the most flexible.

@danielocfb danielocfb requested a review from anakryiko November 20, 2023 19:37
The Error enumeration in libbpf-cargo doesn't really serve any
meaningful purposes at this point: sure, it helps users differentiate
between build and generation errors, but the difference arguably has no
semantic significance that is worth preserving. On top of that, users
can always invoke build() and generate() instead of build_and_generate()
to have literally the same information at their finger tips.
Remove the Error type in favor of just exposing a anyhow::Error, which
is probably the most flexible.

Signed-off-by: Daniel Müller <[email protected]>
@danielocfb danielocfb merged commit fe4de05 into libbpf:master Nov 21, 2023
10 checks passed
@danielocfb danielocfb deleted the topic/cargo-error branch November 21, 2023 21:25
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.

3 participants