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
@alexcrichton Do you know if there's a reason why include does not automatically add Cargo.toml? I can sympathize with implicit magic making it hard to understand how something works, but in this case making everyone add it seems a little unnecessary.
Always include `Cargo.toml` when packaging.
Since `Cargo.toml` is required, might as well include it automatically rather than force everyone to include it explicitly. If it is not listed in `include`, there was a somewhat confusing error message when packaging.
Closes#6830Closes#4660
Problem
When using an invalid (?) include field in Cargo.toml cargo package will fail with "failed to verify package tarball".
Steps
cargo init tmp && cd tmp
include = [ "./src/main.rs" ]
to Cargo.toml.git add . && git commit -m "init"
.cargo package
Possible Solution(s)
In the actual code I dropped
./
from the include field and it worked, it doesn't seem to be the case with a new crate.Notes
Output of
cargo version
: cargo 1.35.0-nightly (0e35bd8 2019-03-13) (currently can't get a newer version due to clippy being broken on nightly).The text was updated successfully, but these errors were encountered: