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

Try to use uname from nix or libc crates #375

Open
stanislav-tkach opened this issue Mar 16, 2024 · 2 comments
Open

Try to use uname from nix or libc crates #375

stanislav-tkach opened this issue Mar 16, 2024 · 2 comments

Comments

@stanislav-tkach
Copy link
Owner

Perhaps it would be better to use a function from one of these crates instead of invoking the uname process.

@sunshowers
Copy link

sunshowers commented Mar 16, 2024

Sadly I learned that uname -o doesn't have a (portable?) programmatic API. Other uses of uname can probably be replaced though.

@sunshowers
Copy link

I did find https://docs.rs/platform-info/latest/platform_info/, which hardcodes the OS: https://docs.rs/platform-info/latest/src/platform_info/lib_impl.rs.html

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