Repository navigation
feat(obs-source): swap source theme icon callbacks to Rust (Refs #4696) - #4703
Merged
Merged
Conversation
Ci-Attestation: {"at":1794404067,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["ff35991aac5b47dab2f97e87f79f08c12b9cdb92"],"secs":252,"stamp":"901f43944a372ba53c23dc58ef568335","tree":"386cbe5cee29ca47e6d44d706b1f45f214b0f83f","v":1,"via":"run"}
Ci-Attestation: {"at":1794404067,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["ff35991aac5b47dab2f97e87f79f08c12b9cdb92"],"secs":252,"stamp":"d7b7ac52d82cdb31b7241417c0b436b0","tree":"386cbe5cee29ca47e6d44d706b1f45f214b0f83f","v":1,"via":"run"}
Ci-Attestation: {"at":1794404067,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["ff35991aac5b47dab2f97e87f79f08c12b9cdb92"],"secs":252,"stamp":"2d771f476821ff9b14300ada9d7339f3","tree":"386cbe5cee29ca47e6d44d706b1f45f214b0f83f","v":1,"via":"run"}
zackees
enabled auto-merge
November 11, 2026 13:35
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 11, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 11, 2026
5 of 7 tasks
This was referenced Nov 12, 2026
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.
Refs #4696. Prerequisite #4697 is merged.
Swaps only obs_source_get_dark_icon and obs_source_get_light_icon from the extracted whole-file unit to obs-source Rust. Both getters keep the icon-type lookup first, a separate source-info lookup only for CUSTOM, the optional theme-specific callback, exact registered type_data including NULL, and borrowed result pointer identity. The real-header icon metadata adapter and its existing static-consumer support are reused. Original C remains unchanged in the reference-only group and oracle. No intentional behavior differences.
RED ff35991 adds the six safe-core characterization mirrors; all six fail at the todo stub. GREEN 440e064 implements dispatch, ABI shims, real-header representation checks and differential tests against the original C in the existing Core binary. The bounded generated cases and fixed edges compare pointers, callback/data identity, lookup counts, arbitrary-byte and first-NUL IDs, absent callbacks and a missing second lookup. Inverting the CUSTOM guard fails the differential characterization; restored GREEN passes all eight new tests and four existing icon-type regressions.
The unchanged Tier 2 characterization, output/encoder type-info regressions and optimized Rust-static source admission fixture pass three repeats each against both actual libraries, with all 1,768 dynamic exports identical. The release archive consumer links through the real existing adapters. The new C oracle passes Clang with format-nonliteral warnings treated as errors.
No new Rust test executable, test-graph edit, public header edit, existing C test edit, workflow edit or obs-websocket edit. Tier 4 does not apply. Full Tier 2, native Windows/macOS execution, sanitizers and hosted CI completion are not claimed.
Windows MSVC cross-link validation builds all eight category executables successfully. All 275 native-build contracts pass. Standalone workspace formatting passes. Test cost: 20 reduced-parity debug runs through soldr, longest combined new-test suite 0.08 seconds, peak command-tree RSS 46,900 KiB, no test-owned threads. Every generated allocation is bounded.
Exactly one full lint run completed successfully in 449.4 seconds with SOLDR_PORCELAIN=0. Pinned self-review and scope checks are clean.