Skip to content

Commit 7a10c4a

Browse files
authored
Rollup merge of #104487 - klensy:ntapi, r=Mark-Simulacrum
update ntapi dep to remove future-incompat warning This fixes warning https://github.com/rust-lang-ci/rust/actions/runs/3477235400/jobs/5813202075#step:25:217 `warning: the following packages contain code that will be rejected by a future version of Rust: ntapi v0.3.7` by upgrading `sysinfo` version (https://github.com/GuillaumeGomez/sysinfo/blob/master/CHANGELOG.md#0267) There was some breaking changes in `sysinfo`: * 0.25.0 (System::refresh_cpu behaviour changed: it only computes CPU usage and doesn't retrieve CPU frequency.) not affected? * 0.26.0 (Switch memory unit from kilobytes to bytes) fixed.
2 parents 6a722aa + 658586c commit 7a10c4a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/bootstrap/Cargo.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -383,9 +383,9 @@ dependencies = [
383383

384384
[[package]]
385385
name = "ntapi"
386-
version = "0.3.7"
386+
version = "0.4.0"
387387
source = "registry+https://github.com/rust-lang/crates.io-index"
388-
checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
388+
checksum = "bc51db7b362b205941f71232e56c625156eb9a929f8cf74a428fd5bc094a4afc"
389389
dependencies = [
390390
"winapi",
391391
]
@@ -607,9 +607,9 @@ dependencies = [
607607

608608
[[package]]
609609
name = "sysinfo"
610-
version = "0.24.2"
610+
version = "0.26.7"
611611
source = "registry+https://github.com/rust-lang/crates.io-index"
612-
checksum = "9a2809487b962344ca55d9aea565f9ffbcb6929780802217acc82561f6746770"
612+
checksum = "c375d5fd899e32847b8566e10598d6e9f1d9b55ec6de3cdf9e7da4bdc51371bc"
613613
dependencies = [
614614
"cfg-if",
615615
"core-foundation-sys",

src/bootstrap/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ xz2 = "0.1"
5454
walkdir = "2"
5555

5656
# Dependencies needed by the build-metrics feature
57-
sysinfo = { version = "0.24.1", optional = true }
57+
sysinfo = { version = "0.26.0", optional = true }
5858

5959
[target.'cfg(windows)'.dependencies.winapi]
6060
version = "0.3"

src/bootstrap/metrics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ impl BuildMetrics {
9797
cpu_threads_count: system.cpus().len(),
9898
cpu_model: system.cpus()[0].brand().into(),
9999

100-
memory_total_bytes: system.total_memory() * 1024,
100+
memory_total_bytes: system.total_memory(),
101101
};
102102
let steps = std::mem::take(&mut state.finished_steps);
103103

0 commit comments

Comments
 (0)