build-toolbox-image.sh: Install rust-analyzer into the image

If you develop against the image, then you can configure
your IDE to spawn rust-analyzer inside the container as well.

This works with devcontainer and vscode.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7816>
This commit is contained in:
Jordan Petridis 2024-11-02 00:04:46 +02:00 committed by GStreamer Marge Bot
parent 17cf7226f4
commit b9c3e7c162

View File

@ -118,6 +118,9 @@ build_container() {
--env PATH="$PATH:/usr/local/cargo/bin/" \
$build_cntr
# Install rust-analyzer so it can be used with IDEs and devcontainer
buildah run $build_cntr rustup component add rust-analyzer rust-src
# Remove the hardcoded HOME env var that ci-templates adds
# https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2433#note_2243222
# Also add the OCI labels that toolbox expects, to advertize that image is compatible