New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docs] FAQ should address whether Cargo.toml in libraries should specify dependency versions #1870
Comments
Note that libraries should explicitly never use a dependency with the requirement as |
Thanks for the clarification. Indeed, some clarification on this point in the FAQ would be useful IMO. (And for the record, can you explain how |
|
Thanks again for another clarification given that I clearly missed the docs stating the dependency is specified as caret-range-by-default. |
In the "Why do binaries have Cargo.lock in version control, but not libraries?" section of the FAQ, a logic is laid out for why libraries should not specify have in Cargo.lock placed in the version control system. By the same logic, I think a similar statement could be made for pinning the versions in Cargo.toml. (I.e. libraries should aim to specify versions required with
"*"
). It would be useful to make this clear in the FAQ.The text was updated successfully, but these errors were encountered: