Upgrading sysinfo 0.22 to 0.23
Breaking0.22.5 → 0.23.13Breaking4New2Changed4Fixed10Other8
BreakingUpgrade verdict
4 breaking changes.
In plain terms
- The function for finding processes by name has a new name.
- The exact-name process lookup function has a new name.
- These lookups now return an iterator of matching processes instead of a single result.
- Process IDs are now a distinct wrapper type rather than a plain integer alias.
Must act Top 3 of 4 that need code or config changes
What you must change
Breaking4
Renames
process_by_name to processes_by_name.process_by_nameprocesses_by_nameRenames
process_by_name_exact to processes_by_name_exact.process_by_name_exactprocesses_by_name_exactChanges the return type of
process_by_name and process_by_name_exact to an iterator.process_by_nameprocess_by_name_exactTurns the
Pid type alias into a newtype.Pid