You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
The latest update i this topic I found was #7026, which says that Cargo.lock is included by default with executable crates.
However, my crate is not executable, yet I found that it still includes lock file for some reason.
Your package includes examples, which will trigger the inclusion of Cargo.lock. There shouldn't be any concern for including it, as it is otherwise ignored.
Hm... but examples don't make crate an executable, there are even separate parameters for them like autobins and autoexamples.
It was discovered accidentally in rust-lang/docs.rs#1338 (comment)
Not a huge issue for sure, but it was certainly surprising to me.
Problem
The latest update i this topic I found was #7026, which says that
Cargo.lock
is included by default with executable crates.However, my crate is not executable, yet I found that it still includes lock file for some reason.
Steps
cd rust
cargo package
Cargo.lock
Possible Solution(s)
Would be nice to not include it I think, especially since root
Cargo.lock
is excluded in.gitignore
.Notes
Output of
cargo version
: cargo 1.51.0 (43b129a 2021-03-16)UPD: Excluding
Cargo.lock
inCargo.toml
explicitly doesn't seem to have any effect either 🤔The text was updated successfully, but these errors were encountered: