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-windows.c to obs-util #703
claimedAn agent or person has claimed this; check the claim comment before startingenhancementNew feature or requestportPort a C unit to Rust (four-tier policy)
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.c is still #262. Tracking issue #153.
Dependencies and existing tests
Depends on the Windows utf8_to_wchar / wchar_to_utf8 port, bmem, and the header-inline util_mul_div64 already in obs-util. test/cmocka/test_platform.c already characterizes the filesystem helpers this file implements (os_file_exists, os_mkdir, os_rename, os_safe_replace, os_opendir, os_get_abs_path_ptr). No new cmocka test. This is a per-OS file: the port is done when Windows Tier 2 passes in CI.
Notes
Windows only. ENABLE_RUST_LIBOBS drops util/platform-windows.c. The same file also defines get_win_ver, get_win_ver_int, get_win_release_id (not EXPORT), get_dll_ver, is_64_bit_windows, is_arm64_windows, get_reg_dword, get_plugin_info (not EXPORT), and DllMain (timeBeginPeriod(1)). The SEH around the mapped-image plugin scan stays in a small C helper, because Rust cannot write __try. Header-inline win_version_compare stays C. os_request_high_performance is a stub in the C file. The PTW32_STATIC_LIB pthread hooks in DllMain are not compiled into libobs.
RED: Tier 1 ports of the test_platform cases this file implements (file_exists, unlink, mkdir, rename, safe_replace, opendir, abs_path) against empty stubs (false, -1, None).
GREEN: Win32 core in platform/windows, C shims, layout test, Tier 3 against platform-windows.c, ENABLE_RUST_LIBOBS drops util/platform-windows.c, export fragment. The SEH plugin scan stays in a small C helper. DllMain keeps timeBeginPeriod(1).
Windows Tier 2 is CI. This machine has no Docker, so the local-gate stamp cannot be run.
First commit today. Please add the claimed label; I cannot.
Done in #707 (merged via the merge queue): libobs/util/platform-windows.c is ported to obs-util::platform::windows::host, and ENABLE_RUST_LIBOBS drops the C file on Windows. The #153 checklist item can be ticked.
claimedAn agent or person has claimed this; check the claim comment before startingenhancementNew feature or requestportPort a C unit to Rust (four-tier policy)
Activity
nathan-v commentedon Oct 14, 2026
Claiming: libobs/util/platform-windows.c
test_platformcases this file implements (file_exists,unlink,mkdir,rename,safe_replace,opendir,abs_path) against empty stubs (false,-1,None).platform/windows, C shims, layout test, Tier 3 againstplatform-windows.c,ENABLE_RUST_LIBOBSdropsutil/platform-windows.c, export fragment. The SEH plugin scan stays in a small C helper.DllMainkeepstimeBeginPeriod(1).First commit today. Please add the
claimedlabel; I cannot.Refs #153
zackees commentedon Oct 14, 2026
Done in #707 (merged via the merge queue):
libobs/util/platform-windows.cis ported toobs-util::platform::windows::host, andENABLE_RUST_LIBOBSdrops the C file on Windows. The #153 checklist item can be ticked.