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

Question regarding the Rust Examples' Readme #32

Closed
tallossos opened this issue Jun 14, 2021 · 3 comments
Closed

Question regarding the Rust Examples' Readme #32

tallossos opened this issue Jun 14, 2021 · 3 comments

Comments

@tallossos
Copy link
Contributor

Hello!
I was wondering why you build & generate the skel manually (using cargo libbpf <...>) rather than using cargo build like you did at the end.
These commands generate another .skel.rs and .mod files plus keeping the .bpf.o file which cargo build discards automatically.

$ cd examples/rust
$ cargo libbpf build
$ cargo libbpf gen
$ cargo build --release
$ sudo ./target/release/xdp 1
<...>

Thanks!

@chenhengqi
Copy link
Contributor

#29 introduced build script, the following commands are not required now:

$ cargo libbpf build
$ cargo libbpf gen

@tallossos
Copy link
Contributor Author

Thanks for clarifying,
I've opened a PR for removing these commands.

@tallossos
Copy link
Contributor Author

The PR has been merged, closing the issue :)

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

2 participants