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

[Feature Requests] List enabled features by binary -v command #25

Closed
muink opened this issue Jan 18, 2025 · 2 comments
Closed

[Feature Requests] List enabled features by binary -v command #25

muink opened this issue Jan 18, 2025 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@muink
Copy link

muink commented Jan 18, 2025

List the enabled features by binary -v command as follows:

root@root:~# einat -v
Version: v0.1.5
Tags: ipv6,aya,libbpf,bindgen,static

This can alert users to prevent them from using unenabled features.

@EHfive
Copy link
Owner

EHfive commented Jan 18, 2025

I had thought about this, will work on this once I got time, and feel free to send a PR if anyone want to make a tiny contribution to this project.

The crate to use https://crates.io/crates/build-info (this crate is unpolished and could breaks offline build)

@EHfive EHfive added enhancement New feature or request good first issue Good for newcomers labels Jan 18, 2025
@EHfive EHfive closed this as completed in 4062977 Jan 23, 2025
@EHfive
Copy link
Owner

EHfive commented Jan 23, 2025

einat -v now prints this:

version: 0.1.5 features: aya,libbpf build_features: pkg-config

It can be parsed by splitting keys and values by whitespace and splitting feature flags by comma.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants