-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Document having only src/bin/*.rs binaries is valid #14463
Copy link
Copy link
Closed
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Metadata
Metadata
Assignees
Labels
A-documenting-cargo-itselfArea: Cargo's documentationArea: Cargo's documentationC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
I found the following section of the cargo book could make readers think they must provide
src/main.rs.cargo/src/doc/src/reference/cargo-targets.md
Lines 30 to 34 in 59ecb11
However, it is also valid to have only
src/bin/*.rsbinaries and not to havesrc/main.rs.I believe clarifying this situation on the book will help readers when arranging codes for binaries.
Proposed Solution
Changing the section like below should work:
Notes
No response