sys-info-rs icon indicating copy to clipboard operation
sys-info-rs copied to clipboard

Get system information in Rust.

Results 35 sys-info-rs issues
Sort by recently updated
recently updated
newest added

The result is like this ![image](https://user-images.githubusercontent.com/62229444/188193148-003a4071-54b7-4fba-a56f-31dce3c046d3.png)

Please see a complete log: http://beefy17.nyi.freebsd.org/data/main-i386-default/p560362_s58661b3ba9/logs/starship-0.48.0.log (IPv6 URL). ``` warning: c/freebsd.c:31:10: error: conflicting types for 'get_cpu_speed' warning: uint64_t get_cpu_speed(void) { warning: ^ warning: c/info.h:31:15: note: previous declaration is here warning:...

the documentation of that struct states the id as "A lower-case string", however, it is not a lowercase string on some distro such as `openEuler`. output of debug printing: ```console...

NetBSD requires linking to the libkvm library to use functions like `kvm_openfiles()`. Otherwise, you get a link error like: ``` = note: ld: /home/user/sys-info-rs/target/debug/build/sys-info-296322ef26a55e63/out/libinfo.a(netbsd.o): in function `get_proc_total': /home/user/sys-info-rs/c/netbsd.c:73: undefined reference...

I've found the following data races in `darwin.c`: 1. The `static unsigned long long size` is a mutable global that is read/modified without any synchronization. - https://github.com/FillZpp/sys-info-rs/blob/1c119b37ac0737466cd450f1fa7fb03af28024c8/c/darwin.c#L109 - It looks...

Beforehand, this has the opposite of the desired behavior. Instead of causing a warning on *unsupported* platforms, this only emits an error on *supported* platforms. As of writing, there is...

Also fixes potential crash in windows get_cpu_speed().

Hi, From Debian rust sys-info package which FBTFS fail: https://buildd.debian.org/status/package.php?p=rust-sys-info&suite=sid I submit a patch to pass the tests case: https://salsa.debian.org/rust-team/debcargo-conf/-/merge_requests/295 But It seems very suboptimally. So what is the best...

Target: x86_64-pc-windows-gnu ``` error: failed to run custom build command for `sys-info v0.8.0` Caused by: process didn't exit successfully: `/github/workspace/./target/release/build/sys-info-215e09fdcb498047/build-script-build` (exit status: 1) --- stdout cargo:rustc-flags=-l psapi cargo:rustc-flags=-l powrprof TARGET...