Are there any flatpaks of Rust applications?
Christian Hergert
christian at hergert.me
Sun Nov 6 23:47:52 UTC 2016
On 11/06/2016 01:53 PM, Tanu Kaskinen wrote:
> I'm tinkering with flatpaketizing a Rust application, and since the
> Rust compiler isn't included in org.freedesktop.Sdk, I have to bundle
> rustc with my application. I haven't managed to get it work, however.
> The problem does not look like it's Flatpak's fault, so I won't go into
> details of the problem here, I just wanted to ask: has anyone
> successfully made a flatpak out of a Rust application?
>
> Also, are there any plans to add rustc to org.freedesktop.Sdk?
The SDK is meant to be "as small as makes sense" which generally means
sharing critical things from a "Safety" perspective. Maybe Rust makes
sense here as more freedesktop.org projects switch to Rust. But until
that happens, having rust in the SDK seems unlikely as it would be undue
burden to maintain (and add extra overhead to every Runtime based on
org.freedesktop.Sdk).
I haven't looked to see if anyone is bundling Rust yet, but you would
only need to build (or install from binary packages) as an early step in
your flatpak-builder manifest. I'd also expect that you'd want to remove
anything Rust installed as a final cleanup step (except for whatever
shared libraries may be necessary if Rust does that).
If you happen to come up with a snippet for a flatpak-builder manifest,
I'd be interested in it to ship Rust with GNOME Builder.
-- Christian
More information about the xdg-app
mailing list