Repository navigation
obs-core: swap obs_enum_scenes to Rust delegation (Refs #4802) - #4804
Conversation
5b81958 to
dc33376
Compare
dc33376 to
4df5be6
Compare
|
Rebased onto The only conflict was the core unity include list. A literal union failed the build-group ownership check for both original C bodies. The resolution preserves both ports: sorted enum-scenes and get-main-canvas field adapters remain in core; each original C body remains in its own reference-only ported group. No implementation logic changed. Validation passed: The additional complete-client proof attempted by Handed off to the coordinator for hosted CI and merge queue monitoring. Refs #4802; this PR intentionally closes no issue. |
obs_enum_scenesdelegates through a safe Rust core and thin ABI shim to the existing C canvas enumerator. The private adapter supplies the borrowed current main canvas, preserving callback and opaque parameter identity, traversal, filtering, stopping, locking and reference effects. Refs #4802. The C extraction prerequisite #4803 is on master, and this branch now contains only its RED and GREEN swap commits rebased onto master.RED
cb34078a9b5dd99d1f79871ae9a9934fbfea3e4apreserves the three safe characterization tests that failed at the committedtodo!()stub. GREENdc3337621d3fea0419b733a4572cb815ffc935cesupplies exact delegation, real private-adapter layout measurements, and original-C differential coverage. The original mutation check omitted delegation and failed both differential behavior tests; restoring it passed all six safe/layout/differential cases.The original implementation session rebuilt actual hybrid and C-reference libraries and replayed unchanged
test_enum_scenes,test_object_refandtest_canvas_signalsfive times per library: 30 suite executions, zero failures, with all 1,768 dynamic exports matching. This rebase preserves those C tests and both upstream ledger entries. Tier 4 does not apply to this non-protocol wrapper. Native Windows/macOS runtime, sanitizers and full Tier 2 were not repeated locally during this rebase; hosted PR and merge-queue CI remain the merge gate.Test cost from the implementation session: 25 reduced-parity runs, 150 executions, longest 0.020 s, peak RSS 20,180 KiB, no own threads; generated traversals contain at most four source entries. No existing C tests, public headers, WebSocket, workflows or Rust executable inventory changed. No intended behavior difference or user-visible change.
Rebase validation:
soldr cargo fmt --all --checkpassed;soldr cargo test -p obs-studio-rust --test obs-tests-app native_build::passed all 275 selected tests;OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core enum_scenespassed all six safe/layout/differential tests. Build-group, sorted-list and test-graph checks passed;git diff --checkpassed. An initial focused-test attempt and the first full lint reached Soldr's active-build-lock refusal while checks overlapped. The focused test then passed, and sequentialSOLDR_PORCELAIN=0 ./lintpassed in 321.4 s withrc=$?captured directly as 0, including workspace Clippy and all five feature sets.Published through
./pushwith the force-with-lease pinned to previous head5b819585ab3236334d4ac18f5deff16d8d75b54b. Installed prooft rejects the inventory's data/swift ecosystem declarations, so publication used the entry point's ordinary-CI fallback without complete client attestation.