That is something I never have to care on my C++ projects, because I always make use of binary libraries, unless I am forced to compile from source.
Unfortunately that doesn't seem to ever be a scenario cargo will support out of the box.