Compared to the normal cargo build --release --workspace
, rebuilding a program with cargo build-bpf
(or sbf) ends up redoing quite a bit of work. If you have already built the workspace using cargo build
, it caches that result and doesn't try to rebuild if nothing has changed.
Is there a reason cargo build-bpf
doesn't have this same behavior? It appears to build each package in the workspace individually. Is there a reason for this? Is there a path forward that builds all the programs together like normal cargo build
s instead of one at a time?