Skip to content

Upgrading sysinfo 0.30 to 0.31

Breaking0.30.13 → 0.31.4Breaking6New4Changed3Fixed5

BreakingUpgrade verdict

6 breaking changes.

  • 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.
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).

Breaking6
Removes System::refresh_process, System::refresh_process_specifics and System::refresh_pids.
System::refresh_processSystem::refresh_process_specificsSystem::refresh_pids
Renames TermalSensorType to ThermalSensorType.
TermalSensorTypeThermalSensorType
Removes System::global_cpu_info.
System::global_cpu_info
Adds a ProcessesToUpdate argument to System::refresh_processes and System::refresh_processes_specifics.
ProcessesToUpdateSystem::refresh_processesSystem::refresh_processes_specifics
Global CPU now only contains CPU usage.
Process names are now an OsString.
OsString