Skip to content

Commit 5a87dd6

Browse files
committed
Auto merge of rust-lang#17034 - ColinKinloch:flatpak_sdk_rust_enable, r=lnicola
Document enabling the flatpak rust SDK extension Just having `org.freedesktop.Sdk.Extension.rust-stable` and `org.freedesktop.Sdk.Extension.llvm15` installed is not enough. `/usr/lib/sdk/rust-stable/bin` at least needs to be added to the `PATH`. In the case of VSCodium [ide-flatpak-wrapper](https://github.com/noonsleeper/ide-flatpak-wrapper) in included to do this.
2 parents 252f1d0 + e84e59c commit 5a87dd6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/rust-analyzer/docs/user/manual.adoc

+4-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,10 @@ While the sandbox can be disabled for some directories, `/usr/bin` will always b
210210
This prevents access to the system's C compiler, a system-wide installation of Rust, or any other libraries you might want to link to.
211211
Some compilers and libraries can be acquired as Flatpak SDKs, such as `org.freedesktop.Sdk.Extension.rust-stable` or `org.freedesktop.Sdk.Extension.llvm15`.
212212

213-
If you use a Flatpak SDK for Rust, there should be no extra steps necessary.
213+
If you use a Flatpak SDK for Rust, it must be in your `PATH`:
214+
215+
* install the SDK extensions with `flatpak install org.freedesktop.Sdk.Extension.{llvm15,rust-stable}//23.08`
216+
* enable SDK extensions in the editor with the environment variable `FLATPAK_ENABLE_SDK_EXT=llvm15,rust-stable` (this can be done using flatseal or `flatpak override`)
214217

215218
If you want to use Flatpak in combination with `rustup`, the following steps might help:
216219

0 commit comments

Comments
 (0)