Repository navigation
frontend: Build the GPU status light whenever cargo is available (#946) - #1018
Merged
Merged
Conversation
zackees
force-pushed
the
feat/946-gpu-status-always
branch
from
October 16, 2026 08:04
89a600f to
f5de673
Compare
zackees
force-pushed
the
feat/946-gpu-status-always
branch
from
October 16, 2026 08:27
f5de673 to
0bec1e6
Compare
The light was linked only with ENABLE_RUST_LIBOBS=ON, so the OFF builds had none. obs-gpu-status has no crates.io dependencies, so any build with cargo can link it: an OFF build now fetches the same Corrosion version and imports the crate. A build without cargo (the Flatpak sandbox) configures without the light and warns; ENABLE_GPU_STATUS=OFF turns it off explicitly. Fixes #946
…ntend builds Refs #946
…s out Review findings for #946: the macOS and Windows OFF jobs never installed the pinned toolchain (rustup's auto-install is deprecated), so they now run rustup toolchain install before adding cross targets. The Flatpak builds offline, where fetching Corrosion would fail if its SDK has cargo, so its manifest sets ENABLE_GPU_STATUS=OFF (it never had the light). The frontend's Rust staticlib gets the same macOS CLT SDK link fix libobs-rust has (#777). Refs #946
zackees
force-pushed
the
feat/946-gpu-status-always
branch
from
October 16, 2026 08:54
0bec1e6 to
2188056
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #946 (part of #939). Maintainer decision: "we always want this status."
The light was only linked with
ENABLE_RUST_LIBOBS=ON, so OFF builds had none.Change
frontend/cmake/feature-gpu-status.cmake: new optionENABLE_GPU_STATUS, ON by default. Whenever cargo is found, it fetches Corrosion v0.5.2 (the same pin aslibobs/cmake/rust.cmake) and linksobs-gpu-status-frontend, withENABLE_RUST_LIBOBSON or OFF. The crate has no crates.io dependencies. Without cargo, the build configures without the light and prints a warning.build-project.yaml: the macOS and Windows jobs runrustup toolchain install, because rustup's auto-install is deprecated. The cross legs addx86_64-apple-darwinandaarch64-pc-windows-msvc, mirroringrelease-rust.yaml.-DENABLE_GPU_STATUS=OFF. It builds offline, where the Corrosion fetch would fail, and it never had the light.Evidence
ENABLE_RUST_LIBOBSfetched Corrosion, built and linked the crate, and ran it. With cargo removed from PATH it configured with "FEATURE OFF … (cargo not found)".ci-fullis on so every OBS build (Ubuntu OFF/ON, macOS ×2, Windows ×2, Flatpak) compiles this. Results will be posted here.