What is Cargo.lock for in a rust library?

by Joel Berkeley   Last Updated September 11, 2019 19:26 PM - source

When Cargo builds a rust executable, it uses its own Cargo.lock file ignoring the Cargo.lock file in any library it uses. Since I can't use a (static) library without building an executable against it, what's a Cargo.lock for in a library?



Related Questions




Difference between Rust compile modes

Updated November 07, 2018 22:26 PM

Does rustdoc generate runnable binaries?

Updated February 22, 2016 01:11 AM