shotover / shotover-proxy

L7 data-layer proxy
https://docs.shotover.io
Apache License 2.0
83 stars 16 forks source link

Update `scylla` and `cached` dependencies #1622

Closed rukai closed 3 months ago

rukai commented 3 months ago

We can keep track of outdated dependencies in the shotover repo by looking at deps.rs or setting up and using the cargo upgrades tool. Of all the currently out of date dependencies we have the following which are trivially upgradable:

These dependencies can be trivially updated without changing the code, we just need to change the version used in the Cargo.toml files.

Cargo follows semantic versioning.

In general, when updating dependencies, we need to change our Cargo.toml when a dependency has a new major version released. The minor and patch versions will be managed by cargo automatically, which it keeps track of in the Cargo.lock file, we can instruct cargo to update the minor and patch versions by running cargo update. (You should do so after upgrading scylla and cached)

In the case of both scylla and cached they both have a major version of 0. i.e. the version looks like 0.x.y In rust, a major version of 0, means that the version is effectively shifted left by one. The minor version takes on the role of the major version. And the patch version takes on the role of the minor version.

Normally I would just include such straightforward upgrades in with the more involved upgrades, but I've made this a separate issue to serve as an introduction to dependency management with rust.