Beware that it's possible to have a tarball with cargo.toml that will be readable as Cargo.toml on a case-insensitive file system, but will not match path == "Cargo.toml" check in Rust.
Due to case-insensitivity confusion, cargo package can behave differently on macOS and Windows where it may end up with both README.md and Readme.md or an extra cargo.lock: https://github.com/rust-lang/cargo/issues/13722
Unfortunately there's a bunch of old crates affected by this.
Beware that it's possible to have a tarball with
cargo.toml
that will be readable asCargo.toml
on a case-insensitive file system, but will not matchpath == "Cargo.toml"
check in Rust.Due to case-insensitivity confusion,
cargo package
can behave differently on macOS and Windows where it may end up with bothREADME.md
andReadme.md
or an extracargo.lock
: https://github.com/rust-lang/cargo/issues/13722Unfortunately there's a bunch of old crates affected by this.
https://github.com/rust-lang/crates.io/issues/8410