diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2020-12-21 20:24:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-21 20:24:27 -0500 |
commit | 837c382ee9461dfd7b80fecf8871bb762ae1e639 (patch) | |
tree | bbd8cf79e65ccdea916dbfdec7e89d68e7e31c4b /Cargo.lock | |
parent | e014d6fb783f9fc1c76f930ca4263ad6272a248b (diff) |
refactor: Cut out sysinfo from Linux builds (#368)
Refactors to use only heim for Linux builds. This is now much easier to do since the 0.1 version of heim works fine for ARM. This is ideal since having to rely on two separate sources of data isn't the greatest if we can avoid it.
Sysinfo is still required for macOS and Windows, though. Temperature sensors do not work for those from heim, and for some reason, networks also don't work on Windows with heim...?
My personal CPU core calculation is also currently Linux-only, and as such, I'll still rely on sysinfo for Windows and macOS for now.
This isn't really a big optimization or anything btw. Just something I wanted to try.
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -249,6 +249,7 @@ dependencies = [ "fern", "fnv", "futures", + "futures-timer", "heim", "indexmap", "itertools", @@ -672,6 +673,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" [[package]] +name = "glob" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" + +[[package]] name = "hashbrown" version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" @@ -684,6 +691,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8a653442b9bdd11a77d3753a60443c60c4437d3acac8e6c3d4a6a9acd7cceed" dependencies = [ "heim-common", + "heim-cpu", "heim-disk", "heim-memory", "heim-net", @@ -711,6 +719,25 @@ dependencies = [ ] [[package]] +name = "heim-cpu" +version = "0.1.0-rc.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ba5fb13a3b90581d22b4edf99e87c54316444622ae123d36816a227a7caa6df" +dependencies = [ + "cfg-if 1.0.0", + "futures", + "glob", + "heim-common", + "heim-runtime", + "lazy_static", + "libc", + "mach", + "ntapi", + "smol", + "winapi", +] + +[[package]] name = "heim-disk" version = "0.1.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" |