# Cerbero: How do I disable building Rust?

**URL:** <https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466>\
**Category:** Build issues\
**Created:** [October 16, 2025, 2:09pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466 "2025-10-16T14:09:16Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![tjwilli58](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/tjwilli58/32/83_2.png) [@tjwilli58](https://discourse.gstreamer.org/u/tjwilli58)\
**Post date:** [October 16, 2025, 2:09pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/1 "2025-10-16T14:09:16Z")

</div>

The subject line says it all. It seems that Rust takes a long time to build. I’m not planning on using it, so how do I build gst-python w/o Rust?

---

<div class="post-metadata">

**Author:** ![tpm](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@tpm](https://discourse.gstreamer.org/u/tpm)\
**Post date:** [October 16, 2025, 2:12pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/2 "2025-10-16T14:12:56Z")

</div>

Have you tried passing `-v norust` yet?

> **[GStreamer / cerbero · GitLab](https://gitlab.freedesktop.org/gstreamer/cerbero#enabling-rust--cargo-support)**
>
> Cerbero build system used to build the official upstream GStreamer SDK

> **[GStreamer / cerbero · GitLab](https://gitlab.freedesktop.org/gstreamer/cerbero#enabling-optional-features-with-variants)**
>
> Cerbero build system used to build the official upstream GStreamer SDK

---

<div class="post-metadata">

**Author:** ![tjwilli58](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/tjwilli58/32/83_2.png) [@tjwilli58](https://discourse.gstreamer.org/u/tjwilli58)\
**Post date:** [October 16, 2025, 2:42pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/3 "2025-10-16T14:42:01Z")

</div>

No. I didn’t see that in the list of variants. I’ll try that. Thanks!

---

<div class="post-metadata">

**Author:** ![tjwilli58](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/tjwilli58/32/83_2.png) [@tjwilli58](https://discourse.gstreamer.org/u/tjwilli58)\
**Post date:** [October 16, 2025, 2:49pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/4 "2025-10-16T14:49:14Z")

</div>

Doesn’t work for me:

```powershell
(py312) PS D:\GitClones\cerbero> .\cerbero-uninstalled build gst-python -v norust
Auto-detected MSYS2 install location as C:\msys64
usage: cerbero-uninstalled [-h] [-t] [--clocktime] [--list-variants] [-v VARIANTS] [-c CONFIG] [-m MANIFEST]
                           [--self-update SELF_UPDATE]
                           {add-package,add-recipe,fetch,fetch-package,bootstrap,fetch-bootstrap,buildone,build-deps,build,bundle-
source,fetch-cache,gen-cache,upload-cache,check,checkpackage,debug-packages,deps,edit-cache,genlibfiles,gensdkshell,genvsprops,gen
xcconfig,graph,packageinfo,list,list-packages,show-config,package,rdeps,run,shell,tag,wipe}
                           ...
cerbero-uninstalled: error: unrecognized arguments: -v norust

```

---

<div class="post-metadata">

**Author:** ![tjwilli58](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/tjwilli58/32/83_2.png) [@tjwilli58](https://discourse.gstreamer.org/u/tjwilli58)\
**Post date:** [October 16, 2025, 2:55pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/5 "2025-10-16T14:55:03Z")

</div>

Tried again. Seems to be working now.

````powershell
(py312) PS D:\GitClones\cerbero> .\cerbero-uninstalled -v norust build gst-python-1.0
Auto-detected MSYS2 install location as C:\msys64
Build tools install prefix will be D:/GitClones/cerbero/build/build-tools
Building recipes with Visual Studio 2022 whenever possible
Install prefix will be D:/GitClones/cerbero/build/dist/msvc_x86_64
Building the following recipes: mingw-runtime libffi zlib pcre2 proxy-libintl glib gobject-introspection gstreamer-1.0 libogg libp
ng pixman expat bzip2 freetype libiconv fontconfig cairo fribidi harfbuzz pango libtheora libvorbis orc opus graphene libjpeg-turb
o gst-plugins-base-1.0 libass openh264 ca-certificates openssl librtmp libxml2 libsrtp libdca libnice soundtouch vo-aacenc openjpe
g tiff spandsp webrtc-audio-processing sbc ladspa srt zbar libltc qrencode json-glib svt-av1 x265-src x265-10bit x265-12bit x265 f
rei0r-plugins webview2 directx-headers svt-jpeg-xs gst-plugins-bad-1.0 gst-rtsp-server-1.0 pycairo pygobject gst-python-1.0
Building using 4 job(s) with the following job subdivisions: 4 general job(s)
[(1/63) mingw-runtime -> already built]
[```
````

---

<div class="post-metadata">

**Author:** ![tjwilli58](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/tjwilli58/32/83_2.png) [@tjwilli58](https://discourse.gstreamer.org/u/tjwilli58)\
**Post date:** [October 16, 2025, 3:08pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/6 "2025-10-16T15:08:00Z")

</div>

Maybe the README.md should be modified to describe how to disable a variant? Something like:

Disable a variant with `-v no<variant name>`

---

<div class="post-metadata">

**Author:** ![tpm](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@tpm](https://discourse.gstreamer.org/u/tpm)\
**Post date:** [October 16, 2025, 4:08pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/7 "2025-10-16T16:08:46Z")

</div>

The README says:

> [@](#):
>
> To explicitly disable a variant, use `novariantname` instead.

Please feel free to submit a merge request against the README to improve it.

---

<div class="post-metadata">

**Author:** ![tjwilli58](https://discourse.gstreamer.org/user_avatar/discourse.gstreamer.org/tjwilli58/32/83_2.png) [@tjwilli58](https://discourse.gstreamer.org/u/tjwilli58)\
**Post date:** [October 16, 2025, 5:45pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/8 "2025-10-16T17:45:46Z")

</div>

I must admit that I didn’t see that line. 😳  
I only noticed it _after_ I forked the repos and went to edit the README.

---

<div class="post-metadata">

**Author:** ![tpm](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/t/c5a1d2/32.png) [@tpm](https://discourse.gstreamer.org/u/tpm)\
**Post date:** [October 16, 2025, 5:54pm UTC](https://discourse.gstreamer.org/t/cerbero-how-do-i-disable-building-rust/5466/9 "2025-10-16T17:54:26Z")

</div>

Alright, let’s try and improve the docs a little then: [README: make it clearer how to disable variants (!1960) · Merge requests · GStreamer / cerbero · GitLab](https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1960)
