This repository has been archived by the owner on Mar 26, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
Cargo.lock
was left in for the library. This is wrong and should be removed as you may run into confusing situations as #63 highlights. Typically, it is only acceptable to have aCargo.lock
file for binaries when you need the compiled code to be exactly the same on everyone's machines. For libraries, this simply isn't required and highly not recommended.A bit more reading, a
Cargo.lock
s point is to lock the version state of all dependencies to ensure that the builds across all devices is the same with no surprises as of course, who knows what may pop up in a new patch of a dependency. Leaving it in for a library the dependencies will be checked by binaries / other libraries that use the library and will result in dependency clashes.Rule of thumb: If its a binary as it is the end of a dependency chain, keep the
Cargo.lock
file. If it is a library, do not include it.This will not automatically solve the problem if you already have a
Cargo.lock
, you MUST runcargo update
to fix this post this PR. It will prevent others from getting into trouble with it though.Reference: https://doc.rust-lang.org/cargo/faq.html#why-do-binaries-have-cargolock-in-version-control-but-not-libraries