Snapcraft always rebuilds all dependencies (crates) when using the rust plugin

I’m helping someone build their first snap of a rust application, and whenever the part using the rust plugin needs to be rebuilt, all its dependencies (crates) are being rebuilt from scratch. There are 150 of them, so even on a fast machine it takes a while. It feels like the compilation artifacts should be cached to avoid rebuilding them unnecessarily.


Just started working on the rust plugin, and I reproduced this issue. And yes, quite annoying :smiley:

I’ll see if I can sort it out…