|
|
|
|
|
by steveklabnik
1533 days ago
|
|
> I think this is generally not how Rust does things That is correct. > as by default Cargo.lock is explicitly listed in the .gitignore when making a library crate Even if it is included in the contents of the package, Cargo will not use it for the purpose of resolution. The "don't check it in" thing is related, but not because it will be used if it's included. It's because of the opposite; that way new people who download your package to hack on it will get their own, possibly different Cargo.lock, so you end up testing more versions naturally. Some people dislike this recommendation and include theirs in the package, but that never affects resolution behavior. |
|