Is there a supported way to compile + cache a rust dependency?

GitHub - jayjun/rambo: Run your command. Send input. Get output. · GitHub does also use precompiled binaries by default iirc.