fix(dev): set default-run so cargo run resolves to bunyip-api #87
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/bunyip-api-default-run"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Set
default-run = "bunyip-api"inbunyip-api/Cargo.toml.Why
bunyip-apiships two binaries (bunyip-apiandbunyip-e2e-bootstrap, added for the Playwright suite), so a barecargo run -p bunyip-apiis ambiguous and exits with "could not determine which binary to run". The dev container runscargo watch -x 'run -p bunyip-api', so once the e2e binary landed the watch loop fails to launch the server on every rebuild - taking downjust dev/ the dev SSO stack. (Hit this live while redeploying the dev bunyip.)Pinning the default makes
cargo runresolve to the server. The e2e bootstrap is still runnable explicitly viacargo run --bin bunyip-e2e-bootstrap.Verification
Dev container's
cargo watchrebuilt and the API came up (API listening on http://0.0.0.0:4401) after the change.🤖 Generated with Claude Code