Skip to content

rust: Port borrowed output service getter (#4039) - #4042

Merged
zackees merged 7 commits into
masterfrom
port/output-service-getter
Nov 8, 2026
Merged

zackees merged 7 commits into
masterfrom
port/output-service-getter

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Fixes #4039.

Ports the borrowed output service getter to Rust, preserving pointer identity, absent services, unchanged output state, and the existing NULL diagnostic. Rust rejects NULL before invoking the private member-address accessor. Public headers and pre-existing C tests remain unchanged.

The C characterization is committed before the verbatim extraction. RED commit 2a04d5d fails both safe core tests at the deliberate stub; GREEN commit bb6b4ec passes all six core, real-header layout, and differential tests. A temporary mutation returning NULL for live outputs fails both fixed-edge and randomized differential tests. There are no intentional behavior differences. Tier 4 does not apply to this query.

Validation:

  • Actual-library characterization passes before extraction, after extraction, and after the Rust swap. The final run passes three repeats of five unchanged C targets against each library, proves both loader paths, and matches all 1,767 exports.
  • All 32 standalone Rust-static consumers build and pass with the per-port field adapter and logging support. The complete native-build module passes 248 tests.
  • The complete utility suite passes 914 tests and two doctests. GCC and Clang pass the focused tests with strict format warnings treated as errors.
  • Oracle discovery, native registration entries, portability, sorted graph and README checks pass. Full repository lint passes. Local review is clean.
  • The new C characterization executable passes ASan/UBSan against both actual libraries; these focused runs instrument the test executable, not a full sanitized library rebuild.

Test cost: 25 reduced-parity runs of the six new Rust cases; longest 0.021 seconds, peak RSS 17.7 MiB, no test-owned threads. Tests remain modules in the existing core-state category binary.

@zackees
zackees marked this pull request as ready for review November 8, 2026 16:57
@zackees
zackees enabled auto-merge November 8, 2026 16:57
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 8, 2026
@zackees
zackees force-pushed the port/output-service-getter branch from 9a49261 to 209c813 Compare November 8, 2026 18:07
@zackees
zackees enabled auto-merge November 8, 2026 18:07
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit 5b9df85 Nov 8, 2026
41 checks passed
@zackees
zackees deleted the port/output-service-getter branch November 8, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

rust: Port output service getter to obs-output

1 participant