Versioning Crates

Chester Wyke April 29, 2026 #Rust

General tips

Opinions on when to bump version numbers

For clarity I’m not talking which part of the version number to bump here which indicates the type of changes included. I’m only taking about when that bump should happen.

Background

I’ve been giving this a lot of thought recently as I’ve noticed different ways that various crates do it. After much consideration I came up with my opinions below. I recently wanted to patch a library create that I depended on but they’d already bumped the version number in the git repo so I wasn’t able to use patch. Fortunately, it was a direct dependency so I just changed the source and was able to use my fork until my patch lands.