Skip to content

Commit

Permalink
Document enabling the flatpak rust SDK extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinKinloch committed Apr 8, 2024
1 parent 252f1d0 commit e84e59c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/tools/rust-analyzer/docs/user/manual.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ While the sandbox can be disabled for some directories, `/usr/bin` will always b
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.
Some compilers and libraries can be acquired as Flatpak SDKs, such as `org.freedesktop.Sdk.Extension.rust-stable` or `org.freedesktop.Sdk.Extension.llvm15`.

If you use a Flatpak SDK for Rust, there should be no extra steps necessary.
If you use a Flatpak SDK for Rust, it must be in your `PATH`:

* install the SDK extensions with `flatpak install org.freedesktop.Sdk.Extension.{llvm15,rust-stable}//23.08`
* 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`)

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

Expand Down

0 comments on commit e84e59c

Please sign in to comment.