Repository navigation
feat(rust): roadmap phase 2 — os_path, serializer, darray ports + Rust/Tier 2 CI (meta #4) - #9
Merged
Merged
Conversation
…core (#5) - path_extension: safe core + os_get_path_extension shim. NULL path returns NULL (C dereferences it); intentional, documented difference. - array_serializer: safe ArrayOutput core + C ABI shim for the three exported functions; write/seek/get_pos stay private callbacks. - darray: safe DArray + #[repr(C)] struct darray mirror under the header-inline exemption (layout is the contract, nothing exported). - Tier 1 1:1 ports of test_os_path/test_serializer/test_darray, layout tests for struct darray/serializer/array_output_data, and proptest parity against oracle_* builds of the original C (shim and safe core). - Test-only bmalloc/brealloc/bfree linked whole-archive into the oracle. - ENABLE_RUST_LIBOBS=ON drops util/array-serializer.c and util/path-extension.c; linux-validate checks both objects. Refs #5
- Windows: /EXPORT: options from libobs/cmake/rust-exports.txt so obs.dll
exports the Rust shims; export_list.rs keeps the list in sync with the
#[unsafe(no_mangle)] shims.
- macOS: ld64 -unexported_symbols_list hides Rust internals.
- rust/tools/tier2-validate/validate.{sh,ps1}: cmocka OFF/ON plus an
exported-symbol diff on macOS and Windows.
- build-project.yaml (existing workflow only): rust-tests on Linux,
macOS and Windows via setup-soldr + soldr cargo, rust-linux-tier2 and
rust-tier2 jobs.
Refs #5
…ork path on macOS (#5) - obs-c-oracle build.rs: drop canonicalize(), whose verbatim \\?\ path broke MSVC include resolution (C1083 on util/bitstream.c). - rust-linux-tier2: fetch-depth 0 so versionconfig.cmake finds a tag. - tier2-validate/validate.sh: set DYLD_FRAMEWORK_PATH for ctest so the cmocka tests load the built libobs.framework.
…tree (#5) A worktree's .git file and its submodules' gitdir links resolve only on the host, so git describe in versionconfig.cmake failed in the container.
…a tests (#5) ctest runs each test from its own directory, so the relative framework path did not resolve.
…test (#5) macOS: DYLD_LIBRARY_PATH to the obs-deps lib dir (libavcodec etc.). Windows: obs.dll, w32-pthreads.dll and obs-deps FFmpeg DLL dirs on PATH, since the cmocka executables are built apart from them.
…rts (#5) With ENABLE_RUST_LIBOBS=ON the Rust staticlib's compiler_builtins defines ___isOSVersionAtLeast and ___isPlatformVersionAtLeast, which libobs then exported, so nm -gU differed from the C build (Tier 2 macOS).
Phase 2: finish cmocka suite (os_path, serializer, darray) + CI + Windows/macOS Tier 2
Closed
5 tasks
zackees
marked this pull request as ready for review
October 9, 2026 00:37
This was referenced Oct 9, 2026
9 tasks done
Merged
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #4 (meta stays open: phases 3–5 not started; grind halted to optimize CI first)
Closes #5
Feature branch for the Rust port unit-testing roadmap (grind run 7c2e). Each phase lands here as its own goal PR; this PR merges into
masteronce every goal is green.