Skip to content

rust: port obs_apply_private_data to obs-core after extraction #5330

Closed

Description

@zackees

After the C-only characterization/extraction prerequisite #5328 merges, port only obs_apply_private_data from libobs/obs-apply-private-data.c.h to obs-core.

Preserve the libobs C API/ABI and existing native core-owned obs->data.private_data. NULL settings returns before any core access. Non-NULL settings delegates to the existing obs_data_apply implementation without clearing/replacing destination storage or retaining caller settings; initialized core remains the precondition. Reuse the existing private-data native field seam where possible. Do not modify the unchanged C characterization, public headers, or OBS WebSocket plugin.

Mirror every test_apply_private_data assertion in the existing Core state category, add differential coverage against the original extracted C, move the extracted source into its reference-only ported unity group, register exports and real adapter consumers, and run the required RED/GREEN, unchanged Tier 2 OFF/ON, Tier 3 mutation, native-link and lint gates. No protocol surface is changed; Tier 4 is not applicable. No link_support changes until #5246 merges; if support is unavoidable before then, keep the implementation PR draft-held.

Activity

  1. added
    enhancement
    port
    P2
    size:S
    on Nov 20, 2026
  2. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    /ready

    Its only prerequisite, #5328, landed in #5334 (libobs/obs-apply-private-data.c.h is on master).

  3. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    Claiming: Rust swap of obs_apply_private_data on branch port/5345-5330-core-noops, batched with #5345 (same crate, one PR).

    1. RED: safe Tier 1 tests mirroring test_apply_private_data in the existing Core category binary, against stubs.
    2. GREEN: safe core plus thin FFI shim: NULL settings returns before any core access; otherwise delegates to obs_data_apply on the C-owned private_data through a real C adapter. C unit moved to its reference-only ported group, Tier 2 unchanged against hybrid and C reference, Tier 3 differential against the oracle.
    3. PR today.
  4. added
    ready
    on Nov 20, 2026
  5. moved this from Triage to In progress in obs-rust Multiviewon Nov 20, 2026
  6. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    Done in #5361 (merged 2026-11-20 13:46 UTC): obs_apply_private_data now runs through safe Rust in obs-core; the C unit moved to its reference-only group.

  7. moved this from In progress to Done in obs-rust Multiviewon Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2enhancementportreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions