Skip to content

build: make hybrid Rust/C libobs the canonical application default #1587

Closed

Description

@zackees

Task

User-authorized migration to one canonical hybrid Rust/C OBS application build. Current CMake always installs C libobs while building an unused hybrid twin (#1065); ENABLE_RUST_LIBOBS only changes branding. This compiles replaced C implementations unnecessarily during normal development.

Decisions

  • Make installed/public libobs the hybrid (completed Rust ports plus remaining C), preserving public ABI and the unchanged C++ obs-websocket plugin.
  • Keep an explicitly enabled C reference for unchanged Tier 2 tests, symbol parity, and temporary rollback; exclude it from normal builds and installation.
  • Keep branding independent of implementation selection. Consolidate redundant app configurations in existing CI; add no workflows.
  • Preserve shared canonical source manifest and coordinate with build: replace CMake with Cargo and cc::Build, preserving the complete OBS application #1332; do not replace the native build engine here.
  • Preserve release compatibility/performance/stability gates; this PR does not authorize a release or waive missing release evidence.

Acceptance

RED/GREEN build contracts; default installed hybrid excludes replaced C objects; explicit C reference and rollback work; all required test tiers remain; packaging and supported-platform paths updated; packaged saved-profile/runtime coverage; measured build/test timing evidence; documentation and feature ledger updated. Open PR against master; do not merge or release.

Activity

  1. zackees commented on Oct 21, 2026

    @zackees
    MemberAuthor

    Claiming: canonical hybrid default (#1587).

    1. Add failing build-selection contracts and preserve existing Tier 2/export checks.
    2. Promote the hybrid to installed libobs, make C reference/rollback explicit, update existing CI and packaging without a second source manifest.
    3. Validate actual artifacts and collect comparable build/test timing evidence; record outstanding release gates.
      First draft PR will open with the RED contract during this work session.

    Decisions: the normal build has one hybrid libobs; C reference builds are explicit test infrastructure. Product identity is independent of backend. Preserve the C++ websocket plugin and all required tiers. Reuse #1332's canonical source manifest; leave its build-engine conversion intact. No release or merge is authorized.

  2. added
    claimed
    on Oct 21, 2026
  3. zackees commented on Oct 21, 2026

    @zackees
    MemberAuthor

    Completed by #1588, merged through the normal queue at 2a1ab00 after the maintainer’s subsequent request to rebase and shepherd it to completion. Final PR CI 39641652857 and merge-group CI 39645723468 both passed. Rebase retained upstream frontend platform macros and the NVENC output regression, with explicit C-reference linker artifacts isolated. The implementation, measurements, packaged runtime evidence, and limitations are recorded in docs/rust-port/hybrid-build-validation.md. Release approval remains unapproved under the existing performance/platform/14-day gates; no release was published. #1332 remains the separate full native build-engine migration.

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions