Azure / iot-identity-service

Source of the Azure IoT Identity Service and related services.
MIT License
37 stars 46 forks source link

Turn off debug symbols for snaps #604

Closed damonbarry closed 6 months ago

damonbarry commented 6 months ago

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.