Upgrading sysinfo 0.30 to 0.31
Breaking0.30.13 → 0.31.4Breaking6New4Changed3Fixed5
BreakingUpgrade verdict
6 breaking changes.
In plain terms
- Three methods for refreshing process information have been removed, so code calling them will no longer compile.
- A misspelled type name has been corrected, so code using the old name must be updated.
- The method returning global CPU information has been removed.
- The two process refresh methods now require an extra argument saying which processes to update.
Must act Top 3 of 6 that need code or config changes
Rust requirement changed in 0.31.0: 1.69 → 1.74.
Adds bstr ^1.9.0, memchr ^2.5.
Drops cfg-if, once_cell.
Installs 49 packages in all (was 45).
What you must change
Breaking6
Removes System::refresh_process, System::refresh_process_specifics and System::refresh_pids.
System::refresh_processSystem::refresh_process_specificsSystem::refresh_pidsRenames TermalSensorType to ThermalSensorType.
TermalSensorTypeThermalSensorTypeRemoves System::global_cpu_info.
System::global_cpu_infoAdds a ProcessesToUpdate argument to System::refresh_processes and System::refresh_processes_specifics.
ProcessesToUpdateSystem::refresh_processesSystem::refresh_processes_specificsGlobal CPU now only contains CPU usage.
Process names are now an OsString.
OsString