I would like to pass --bins to the cargo build command run as part of cargo chef cook. This option is not supported though. There already are a lot of command line flags that are simply copied and passed to the underlying command.
Proposed Change
Allow custom arguments to be added for example through --additional-args or simply through cargo chef cook --clippy -- --clippy-arg-1 --etc. Then cargo-chef does not need to expose every cargo flag directly. Similarly, cargo-chef could allow custom commands to be used (instead of the predefined set check, build, clippy, and zigbuild)
Potential issues
Users could set flags that would prevent the clippy commands from working.
Problem
I would like to pass
--bins
to thecargo build
command run as part ofcargo chef cook
. This option is not supported though. There already are a lot of command line flags that are simply copied and passed to the underlying command.Proposed Change
Allow custom arguments to be added for example through
--additional-args
or simply throughcargo chef cook --clippy -- --clippy-arg-1 --etc
. Thencargo-chef
does not need to expose every cargo flag directly. Similarly,cargo-chef
could allow custom commands to be used (instead of the predefined setcheck
,build
,clippy
, andzigbuild
)Potential issues
Users could set flags that would prevent the
clippy
commands from working.