Module package_info

Source
Expand description

Checks to ensure that the [package] sections of Cargo.toml files do not contain authors or version fields, and that rust-version is properly workspace.

Eliding the version sets the version to “0.0.0”, which is fine. More importantly, it means the module cannot be published to crates.io (equivalent to publish = false), which is what we want for our internal crates. And removing the meaningless version also eliminates more questions from newcomers (does the version field mean anything? do we use it for semver internally?).

The authors field is optional, is not really used anywhere anymore, and just creates confusion.

Functions§

check_package_info