As per updated guidelines, the lockfile should be committed by default. https://doc.rust-lang.org/cargo/faq.html#why-have-cargolock-in-version-control