stanislav-tkach / os_info

Rust library to detect the operating system type
MIT License
175 stars 52 forks source link

335 issue add processor architecture informations #336

Closed rbas closed 1 year ago

rbas commented 1 year ago

Processor architecture is also useful information. Would be nice to have it as part of Info. As I described in issue #335.

To get processor architecture I used the command uname -m which is working on all (as far I know) Unix/Linux based systems, that is also the reason why I've added it just into those systems. I intentionally didn't change the method Info.display(), since I'm not sure whether it is worth doing it and also may break some scripts build on top of it.