[Merged by Bors] - Fix cargo audit warns for nix, psutil, time #2699
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue Addressed
Fix
cargo audit
failures onunstable
Closes #2698
Proposed Changes
The main culprit is
nix
, which is vulnerable for versions below v0.23.0. We can't get by with a straight-forwardcargo update
becausepsutil
depends on an old version ofnix
(cf. rust-psutil/rust-psutil#93). Hence I've temporarily forkedpsutil
under thesigp
org, where I've included the update tonix
v0.23.0.Additionally, I took the chance to update the
time
dependency to v0.3, which removed a bunch of stale deps includingstdweb
which is no longer maintained. Lighthouse only uses thetime
crate in the notifier to do some pretty printing, and so wasn't affected by any of the breaking changes in v0.3 (changelog here).