Repository navigation
frontend: name the Rust build OBS-Studio-Rust and show its own version - #112
Conversation
With ENABLE_RUST_LIBOBS=ON the window title, log header, About dialog, --version and log/crash upload text read "OBS-Studio-Rust <version> (based on OBS <upstream version>)". The version comes from rust/libobs-rust/Cargo.toml. libobs's version API and the C build are unchanged. Fixes #111
Move the OBS / OBS-Studio-Rust product string into a plain C helper, frontend/utility/product-name.c, so test_product_name can build it without Qt. The stub returns an empty string, so the upstream, Rust and truncation cases fail. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Implement obs_product_string and use it for OBSApp::GetProductString (window title, --version, log and crash uploads) and the About dialog, so the OBS-Studio-Rust naming is covered by test_product_name. Co-Authored-By: Claude Opus 5.5 <[email protected]> Local-Gate: v1 tree=6fca58508c1771ef60bfce62e90920e8e3e42ddb secs=347 lanes=lint:run,rust-test:run,tier2-linux:run Ci-Attestation: {"at":1791666667,"gate":"rust/all/fmt","host":"linux-x86_64","key":"d8d99a42cde593511a1344618777b1cdc84560ac09b3d4f6c251b5233c14718b","lane":"lint","parents":["d11d366304eea74b782bb0771648e366970b455a"],"secs":110,"stamp":"0fe156199333be49f338914188804121","tree":"6fca58508c1771ef60bfce62e90920e8e3e42ddb","v":1,"via":"run"} Ci-Attestation: {"at":1791666667,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"d8d99a42cde593511a1344618777b1cdc84560ac09b3d4f6c251b5233c14718b","lane":"lint","parents":["d11d366304eea74b782bb0771648e366970b455a"],"secs":110,"stamp":"b068ad775e0d704b43faef3d872ab0a0","tree":"6fca58508c1771ef60bfce62e90920e8e3e42ddb","v":1,"via":"run"} Ci-Attestation: {"at":1791666667,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"df7157d4357d813e8802d09d4386f8c6af8daf0e55c73e834d5440f30a1ff8bf","lane":"rust-test","parents":["d11d366304eea74b782bb0771648e366970b455a"],"secs":108,"stamp":"5b45f3a231176ac648cc7f4e0fd726ff","tree":"6fca58508c1771ef60bfce62e90920e8e3e42ddb","v":1,"via":"run"} Ci-Attestation: {"at":1791666667,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"af50cac69dbef410ead17da73ee42b451b93fb4f1e7b5b736eed34b6fad1b3e6","lane":"tier2-linux","parents":["d11d366304eea74b782bb0771648e366970b455a"],"secs":128,"stamp":"6627f0f9b5130f835192a8304a732e81","tree":"6fca58508c1771ef60bfce62e90920e8e3e42ddb","v":1,"via":"run"}
|
Added a RED→GREEN test and rebased onto master (old head 1d18269, replaced with --force-with-lease):
The local gate passes (Tier 2 41/41 OFF/ON) and is stamped. The full CI builds compile the frontend changes. |
1d18269 to
1108a40
Compare
|
Verified with the Rust build on all three OSes: https://github.com/obs-rust/obs-smoke/actions/runs/38084557115 (all jobs green). The OBS log on Windows, macOS and Linux reports |
No CI job or release built the real app with the Rust libobs: the full builds and publish.yaml use the default (OFF), and only the cmocka Tier 2 harnesses build ON, so the ported code had never run inside OBS. Add a rust: [OFF, ON] axis to ubuntu-build (build-ubuntu honors ENABLE_RUST_LIBOBS), keep the ccache and artifact names apart, and smoke test the ON build: the installed obs --version must print OBS-Studio-Rust, which only a Rust libobs build does (obs-rust#112). Refs obs-rust#140 Co-Authored-By: Claude Opus 5.5 <[email protected]> Local-Gate: v1 tree=8f47fd989c5a00475c8cffaaa653e52c5d669d3c secs=86 lanes=lint:run,rust-test:run,tier2-linux:run Ci-Attestation: {"at":1791675987,"gate":"rust/all/fmt","host":"linux-x86_64","key":"caed603f3c8a3432c3c85a9ba7904b3ca556525bf7d94a5fdc27a19d34ca770e","lane":"lint","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":17,"stamp":"4ebfbcf542674ef3bf24eb3110be73fd","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"} Ci-Attestation: {"at":1791675987,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"caed603f3c8a3432c3c85a9ba7904b3ca556525bf7d94a5fdc27a19d34ca770e","lane":"lint","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":17,"stamp":"1a81711abcd435b4c096816e76678b9c","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"} Ci-Attestation: {"at":1791675987,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"d6638afea8ea44f26a8378fe1b938f97a2fd367590dd3c24bd9ee61a40b098c7","lane":"rust-test","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":37,"stamp":"e9e196ae57c1ade22b877746e833074a","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"} Ci-Attestation: {"at":1791675987,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"27d2cac0c85813072ae7e008fc8e8cf07f906ed27f23d7ab1ed0fd217cb1682c","lane":"tier2-linux","parents":["faaca71086cff4fed3c2d807d98cb98e8e109ab4"],"secs":31,"stamp":"4b1516048525c6f50c1a51e6586f5259","tree":"8f47fd989c5a00475c8cffaaa653e52c5d669d3c","v":1,"via":"run"}
Fixes #111.
With
ENABLE_RUST_LIBOBS=ON, the frontend showsOBS-Studio-Rust 0.1.0 (based on OBS <upstream version>)in:--versionThe version is read at configure time from
rust/libobs-rust/Cargo.toml.Unchanged:
obs_get_version*()(the libobs C API and ABI)ENABLE_RUST_LIBOBS=OFF)Verified by building this branch with the Rust libobs on and running it on Windows, macOS and Linux via obs-smoke; the run is linked in the comments.