You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
rust: Port libobs/util/platform-cocoa.m to obs-util #744
Phase 4, position 7 in docs/rust-port/testing-policy.md (platform.c, then platform-nix*.c / platform-windows.c). platform-nix.c is merged (#403). platform-windows.c is merged (#703). This is the macOS file those ports left. platform.c is still #262. Tracking issue #153.
Dependencies and existing tests
Depends on bmem, dstr, and the macOS os_gettime_ns clock already used by os_sleepto_ns. test/cmocka/test_platform.c does not call this file. A new test_platform_cocoa.c characterizes it and then stays unchanged. test_platform.c is not edited.
Notes
macOS only. ENABLE_RUST_LIBOBS drops util/platform-cocoa.m. Owns the Apple clock, Application Support paths, executable directory, CPU use, sleep inhibit, high-performance token, core counts, and process memory. cfstr_copy_cstr and cfstr_copy_dstr move with it because audio-monitoring/osx calls them. Linux and FreeBSD os_inhibit_sleep_* stay in util/platform-nix-inhibit.c.
Characterization, RED, and GREEN are on port/platform-cocoa. Linux Tier 2 was 209/209 OFF and ON, exports identical (1766). No local-gate stamp from this Mac; PR CI runs the Linux jobs.
Done in #746 (merged via the merge queue): libobs/util/platform-cocoa.m is ported to obs-util and ENABLE_RUST_LIBOBS drops the Objective-C file on macOS.
Activity
nathan-v commentedon Oct 14, 2026
Claiming: libobs/util/platform-cocoa.m
test/cmocka/test_platform_cocoa.cpins the current C behavior.test_platform.cstays as it is.todo!()stubs inobs-util.platform::unix::cocoa, C shims, Tier 3 parity against the C oracle, andENABLE_RUST_LIBOBSdropsutil/platform-cocoa.m.PR should open today on
port/platform-cocoa. I can't add theclaimedlabel from here.nathan-v commentedon Oct 14, 2026
PR: #746
Characterization, RED, and GREEN are on
port/platform-cocoa. Linux Tier 2 was 209/209 OFF and ON, exports identical (1766). No local-gate stamp from this Mac; PR CI runs the Linux jobs.obs-c-oracle: Quiet Cocoa availability
libobs: Keep the cocoa test building on MSVC
obs-util: Wrap CPU time the way C does
zackees commentedon Oct 14, 2026
Done in #746 (merged via the merge queue):
libobs/util/platform-cocoa.mis ported toobs-utilandENABLE_RUST_LIBOBSdrops the Objective-C file on macOS.rust: Port libobs/util/platform-cocoa.m to obs-util (obs-rust#746)