Skip to content

feat(obs-source): swap source theme icon callbacks to Rust (Refs #4696) - #4703

Merged
zackees merged 2 commits into
masterfrom
port/4696-source-icons
Nov 11, 2026
Merged

zackees merged 2 commits into
masterfrom
port/4696-source-icons

Conversation

@zackees

@zackees zackees commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

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.

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
zackees enabled auto-merge November 11, 2026 13:35
@zackees
zackees added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@zackees
zackees added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@zackees
zackees added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@zackees
zackees added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 11, 2026
@zackees
zackees added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@zackees
zackees added this pull request to the merge queue Nov 11, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 11, 2026
@zackees
zackees added this pull request to the merge queue Nov 11, 2026
Merged via the queue into master with commit a041aed Nov 11, 2026
41 checks passed
@zackees
zackees deleted the port/4696-source-icons branch November 11, 2026 18:06
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 11, 2026
@rdoupe rdoupe mentioned this pull request Nov 12, 2026
5 of 7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant