Skip to content

obs-core: swap obs_add_data_path / obs_remove_data_path to Rust #5397

Done

Description

@zackees

The behavior-neutral extraction in branch test/h2-data-paths isolates obs_add_data_path and obs_remove_data_path in libobs/obs-data-paths.c.h (Refs #5355). After that extraction lands, swap this Phase 6 core unit to safe Rust in obs-core, preserving the libobs C API/ABI.

Keep one process-global ordered list shared with obs_find_data_file, independent of startup/shutdown. Preserve copied caller bytes, duplicates, first equal removal, freeing only the removed string, NULL/empty equivalence, and allocation ownership through the existing libobs allocator. Keep private C layouts opaque; do not add synchronization or alter behavior in the swap.

The prerequisite adds public characterization test_data_paths against hybrid and C-reference libobs and an original-C storage fixture test_data_paths_storage. Keep these and existing test_core_setup_rules_steps unchanged. Port their assertions into the existing Rust core test binary, add an original-C differential oracle and mutation check, and move the C implementation into a ported unity group. Tier 4 is inapplicable to this non-network API. Validate every applicable tier and all standalone consumers of any new adapter; no new Rust test executable.

Ready once the extraction lands; implementation must start from that merged prerequisite. Search both wrapper names and obs-data-paths before claiming to avoid duplicate swaps.

Activity

  1. added
    enhancement
    port
    ready
    P2
    size:S
    on Nov 21, 2026
  2. zackees commented on Nov 21, 2026

    @zackees
    MemberAuthor

    Claiming: follow-up definition from the #5355 extraction worker. 1. Land the behavior-neutral extraction from test/h2-data-paths. 2. Keep the original C characterizations unchanged. 3. Hand the separate Rust swap to the pool after that prerequisite merges; no Rust implementation is included in this extraction PR.

  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 22, 2026
  4. rdoupe commented on Nov 24, 2026

    @rdoupe
    Collaborator

    Claiming: obs_add_data_path / obs_remove_data_path Rust swap, now that the extraction (#5577) is on master.

    1. RED: Rust core tests and an original-C differential case for the two wrappers against stubs.
    2. GREEN: safe Rust list in obs-core shared with obs_find_data_file, C moved into the ported unity group, Tier 2 test_data_paths unchanged.
      First PR within a few hours.
  5. added a commit that references this issue on Nov 26, 2026
    c3d276a
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