Cargo.lock is great for having a known-good set of library versions for your project. I regret not pinning the rust version earlier though.
I didn't even know the minimum rust version until I was enforcing it in CI!
How does Rust allow different language versions ("epochs") to interoperate? https://stackoverflow.com/q/57332016/509706
The SO answer even includes the relevant source code from the compiler!