There isn't currently a good way to package debuginfo and symbols for snaps. Since we're building with full symbols in cargo and they aren't being stripped out during the snap build, our snap packages are much larger than they should be. This change disables the debug setting in the cargo release profile for snaps only.
To test, I built the amd64 snap locally with these changes. It went from 66 MB down to 9 MB.
There isn't currently a good way to package debuginfo and symbols for snaps. Since we're building with full symbols in cargo and they aren't being stripped out during the snap build, our snap packages are much larger than they should be. This change disables the debug setting in the cargo release profile for snaps only.
To test, I built the amd64 snap locally with these changes. It went from 66 MB down to 9 MB.