-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.C-bugCategory: bugCategory: bugE-easyExperience: EasyExperience: Easy
Description
If you specify jobs = 0 in .cargo/config, your cargo build invocations will hang forever without output. Note that if you try to invoke cargo build -j 0 it will warn you:
$ cargo build -j 0
error: jobs must be at least 1
Steps
-
Place a
.cargo/configin any valid location with the following content:[build] jobs = 0 -
Run
cargo build. -
You will never reach step 3.
Possible Solution(s)
Check for jobs being 0 when reading the config file.
Notes
Output of cargo version: latest master commit, 0b2059e.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-diagnosticsArea: Error and warning messages generated by Cargo itself.Area: Error and warning messages generated by Cargo itself.C-bugCategory: bugCategory: bugE-easyExperience: EasyExperience: Easy