Switch bumping cargo
security versions to using cargo
's --precise
flag #6427
Closed as not planned
Description
We want to move toward leveraging native package manager functionality where possible rather than re-implementing it in Ruby. Beyond being more DRY, it generally lets us sidestep a lot of maintenance / edge-case bugs.
It looks like cargo update
supports a --precise
flag that bumps a dependency to a specific version number.
We should explore switching to that for bumping security vulnerabilities.
Today we do the following for rust security updates:
- query https://crates.io/ for available versions
- filter for non-vulnerable versions
- find the lowest remaining version
- use Ruby
gsub()
to bump that in the manifest/lockfile
We should flip step 4 to using cargo
directly via this --precise
flag.
Related: