Skip to content

infra: Split shared registration lists into per-unit fragments #137

Closed

Description

@zackees

Almost every port PR conflicts with every other in the same few files, so each merge forces 2–4 rebases of the rest (#59, #76, #77, #78 this week):

  • libobs/cmake/rust-exports.txt (+ rust-exports.map, rust-unexports-macos.txt, rust-hidden.txt)
  • rust/obs-c-oracle/build.rs and rust/obs-c-oracle/src/lib.rs
  • test/cmocka/CMakeLists.txt (shared endif() placement has already broken CMake nesting twice)
  • the must-not-compile object list in rust/tools/linux-validate/validate.sh
  • the ported-units table in rust/README.md

Proposal: one fragment per unit, globbed:

  • libobs/cmake/rust-exports.d/<unit>.txt, concatenated by rust.cmake (and the export-list test).
  • rust/obs-c-oracle/oracle/<unit>.c discovered by build.rs; src/<unit>.rs modules instead of inline blocks in lib.rs.
  • test/cmocka/<test>.cmake included with file(GLOB ...).
  • the validate.sh object list derived from the ENABLE_RUST_LIBOBS guards.

Acceptance: behaviour-neutral (same exports OFF/ON, same tests); two port PRs touching different units no longer conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementinfra

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions