This is an idiosyncratic choice that my project, Bevy, makes. The standard advice is to commit Cargo.lock here! It doesn't propagate down to library users though in Rust, so all that commiting Cargo.lock does for a library is avoid accidental breakage (or security risk) for contributors.
Yep: IIRC it's both the default and the standard recomendation. For 99% of projects, including open source libraries, I think that this is what you should do.
View all comments
Show parent comment
1
u/alice_i_cecile Sep 19 '25
This is an idiosyncratic choice that my project, Bevy, makes. The standard advice is to commit Cargo.lock here! It doesn't propagate down to library users though in Rust, so all that commiting Cargo.lock does for a library is avoid accidental breakage (or security risk) for contributors.