-
Notifications
You must be signed in to change notification settings - Fork 2.9k
cargo new --script #16849
Copy link
Copy link
Open
Labels
A-workspacesArea: workspacesArea: workspacesC-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`Command-newS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.Z-scriptNightly: cargo scriptNightly: cargo script
Metadata
Metadata
Assignees
Labels
A-workspacesArea: workspacesArea: workspacesC-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`Command-newS-triageStatus: This issue is waiting on initial triage.Status: This issue is waiting on initial triage.Z-scriptNightly: cargo scriptNightly: cargo script
Type
Fields
Give feedbackNo fields configured for issues without a type.
Problem
Overall, cargo script has been intended to be lightweight enough to not need
cargo newsupport.When we add support for workspaces, things will shift including
package.workspace = true)Proposed Solution
cargo new --script foo.rsto createand when in a workspace:
Notes
Is
--scriptthe right name?