diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-02 12:00:55 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-02 12:06:28 +0200 |
commit | 28a1de7b7553c581151524519a23666c5b833402 (patch) | |
tree | 9426ed4557b8347048c0218384002c5f6cd033d6 | |
parent | 44a2230ed520ebd1cc0af472f875bc4864db04c6 (diff) |
Do not use rayon in sysinfo dependencyfeature/add_tedge_api/optimize-build-time
Since sysinfo 0.15.5, the `rayon` dependency is optional
(https://github.com/GuillaumeGomez/sysinfo/blob/53c220cd2018826d2dcade6fe62585e415aedb62/CHANGELOG.md#0155).
This patch disables the default features, and thus the `rayon`
dependency.
This is beneficial because we might safe some memory and we don't need
parallelism most certainly and this change reduces the build time.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | Cargo.lock | 1 | ||||
-rw-r--r-- | plugins/plugin_sysstat/Cargo.toml | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -3413,7 +3413,6 @@ dependencies = [ "libc", "ntapi", "once_cell", - "rayon", "winapi", ] diff --git a/plugins/plugin_sysstat/Cargo.toml b/plugins/plugin_sysstat/Cargo.toml index 381aaba5..d4c3307c 100644 --- a/plugins/plugin_sysstat/Cargo.toml +++ b/plugins/plugin_sysstat/Cargo.toml @@ -11,7 +11,7 @@ serde = { version = "1.0.136", features = ["derive"] } miette = "4.4" tokio = { version = "1", features = ["macros", "rt", "sync", "time"] } tokio-util = "0.7.0" -sysinfo = "0.23" +sysinfo = { version = "0.23", default-features = false } futures = "0.3" thiserror = "1" toml = "0.5" |