Skip to content

meta: Phase 6 libobs core migration through opaque C seams #444

Open
88 of 88 issues completed
Open

Description

@zackees

Scope

Track Phase 6 of the libobs core port through opaque public C handles and controlled private seams. The public C API/ABI remains compatible; obs-internal.h is private and can change only after its remaining C field users are adapted or ported.

Work

  • Inventory exported symbols, public layouts, opaque handles, and direct users of each obs-internal.h field before changing that field.
  • Characterize obs-data behavior in new C tests against the original implementation: JSON parsing and error cases, reference counts, user/default/autoselect precedence, arrays, and file save/load behavior. Keep these tests unchanged for the Rust swap.
  • Extract a small, behavior-neutral C unit per PR from any large file before its Rust replacement. Preserve existing C tests and record the extraction baseline.
  • Port obs-data.c first behind obs-data.h opaque handles. Preserve Jansson-compatible behavior and exported symbols. Use all four test tiers from the testing policy.
  • Port obs-properties.c, the hotkey name map, and the effect/shader parser as separately claimable units, each with characterization and the four test tiers.
  • Introduce internal accessors or adapter seams for remaining C users before changing obs-source, scene, output, or obs.c private layouts. Move source-profiler.c here from Phase 4 because it directly uses source and graphics internals.
  • Validate the full app with ENABLE_RUST_LIBOBS=ON and the release criteria once the dependent units are ready.

Coordination

Claim a single unit before coding, search existing PRs, and use RED then GREEN commits as required by docs/rust-port/coordination.md. Do not edit public C headers or existing C tests to make a port pass. Track related full-app, performance, and oracle work in #140, #142, and #145.

This tracker is the Phase 6 follow-up to #146.

Sub-issues

Sub-issues

88 of 88 Issues completed
Loading 88 sub-issues

Activity

  1. added
    port
    on Oct 13, 2026
  2. nathan-v commented on Oct 15, 2026

    @nathan-v
    Contributor

    Claiming: the obs-data.c characterization and port.

    Tracked in #784. obs-properties.c, the hotkey name map, and the effect and shader parsers stay unclaimed. Please add the claimed label on #784; I cannot.

  3. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    Filed and claimed obs-properties.c as #828.

  4. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    obs-properties.c is ported (#828, #832). Still unclaimed from the list: the hotkey name map and the effect/shader parser.

  5. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    Filed and claimed the hotkey name map as #833.

  6. zackees commented on Oct 15, 2026

    @zackees
    MemberAuthor

    Filed and claimed the first effect/shader-parser slice as #839 (the three exported name lookups in shader-parser.c). The struct shader_parser part and effect-parser.c need their own scoping: the GL/D3D11 backends read struct shader_parser directly, and ep_parse compiles through the graphics device.

  7. 88 remaining items

  8. rdoupe commented on Nov 10, 2026

    @rdoupe
    Collaborator

    Intentional difference in the module list calls port (#4465, PR #4467): obs_log_loaded_modules() with no core (before obs_startup() or after obs_shutdown()) now logs nothing and returns. The C logs the heading and then reads the core's first module without checking the core, so it crashed. It is listed in module_lists_parity's header and rust/README.md; the parity test leaves out exactly that call, and log_with_no_core_logs_nothing pins it on the Rust side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    port

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions