You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `$branch` must match the `runtime-version` of `org.freedesktop.Sdk`.
91
+
For example `24.08`. GNOME and KDE runtimes are based on
92
+
`org.freedesktop.Sdk`. The correct branch of the Rust extension to
93
+
install for a given GNOME or KDE runtime version can be found using:
94
+
95
+
```sh
96
+
flatpak info -m org.kde.Sdk | grep -A 5 "org.freedesktop.Sdk.Extension" | grep -E "^version"
44
97
```
45
98
46
-
Make sure to override CARGO_HOME env variable to point it to `/run/build/$module-name/cargo` where `$module-name` is the flatpak module name, `quickstart` in this example.
99
+
`append-path: /usr/lib/sdk/rust-stable/bin` is used to add the location
100
+
in the Flatpak extension where rust and cargo binaries are located to
101
+
`$PATH`inside the build environment.
47
102
103
+
Either the `CARGO_HOME` environment variable needs to be set to
104
+
`/run/build/$module-name/cargo`where `$module-name` is the flatpak
105
+
module name (here `my_app`), or the config generated by
106
+
`flatpak-cargo-generator`needs to be installed as `.cargo/config.toml`
107
+
(see below).
48
108
49
109
For a complete example see the quickstart project.
50
110
111
+
## `CARGO_HOME` is set by buildsystem
112
+
113
+
It is often common for example when using meson to set the `CARGO_HOME`
0 commit comments