Make package.name
optional
#12689
Labels
A-manifest
Area: Cargo.toml issues
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-needs-team-input
Status: Needs input from team on whether/how to proceed.
Problem
The primary motivation for this is to close the gap between
Cargo.toml
and the cargo script experiment (#12207).For
Cargo.toml
,package.name
is requiredFor "cargo script",
package.name
is defaulted to a slug of the file stem.Proposed Solution
Like with #9829, making this field optional would reduce the specialized documentation around "cargo script". The default for
Cargo.toml
would be a slug of the parent directory.Notes
I think there are some other concrete cases that could potentially benefit from this, like rust-lang/rfcs#3452 though I overall see this rarely being relied upon.
The text was updated successfully, but these errors were encountered: