Repository navigation
feat(rust): roadmap phases 3–5 (meta #4) - #33
Merged
Merged
Conversation
Pin current C behavior of crc32, utf8, dstr, lexer, cf-lexer/cf-parser, text-lookup, base and bmem before porting, and document the characterization-test rule and Phase 3 port order in testing-policy.md. Refs #6
Adds the calc_crc32 shim, oracle wrapper, ENABLE_RUST_LIBOBS guard, rust-exports.txt entry and Tier 1/Tier 3 tests. The safe core body is todo!(), so soldr cargo test -p obs-util --test crc32 fails 0/6. Refs #6
Table-driven reflected CRC-32 with a const fn table, matching libobs/util/crc32.c. GREEN for the Tier 1 and Tier 3 crc32 tests. Refs #6
… link (#6) fail_msg() expands to cm_print_error(), which the Windows cmocka library does not export (LNK2019). Report via fprintf and call fail().
Phase 3: characterize leaf utilities and port crc32 (#6)
This was referenced Oct 9, 2026
…atform utilities (#7)
Local-Gate: v1 tree=b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f secs=21 lanes=lint:run,rust-test:run,tier2-linux:run
Ci-Attestation: {"at":1791542615,"gate":"rust/all/fmt","host":"linux-x86_64","key":"8285294dc5212242511f6fae09b21b5d3c10c4eb676c0cbc0ce48f4afc0c5866","lane":"lint","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":8,"stamp":"f72754bcf571b549fa713789d8d827f7","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
Ci-Attestation: {"at":1791542615,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"8285294dc5212242511f6fae09b21b5d3c10c4eb676c0cbc0ce48f4afc0c5866","lane":"lint","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":8,"stamp":"44ee84eba040e80d955df3654f980fcb","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
Ci-Attestation: {"at":1791542615,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"89eeeb7b68e2208392ae8255531e362ddbcd4fc3fae510114996e01062e7197b","lane":"rust-test","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":3,"stamp":"205ee328c9e2e0041e66a384090ff943","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
Ci-Attestation: {"at":1791542615,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"fb563e2ddd55f357e72475058a283442dd8472f48644d2eb588de32d65312897","lane":"tier2-linux","parents":["9a4eee467454f54a17656f8e2fd8d5df8e430fb3"],"secs":9,"stamp":"497b787acd1208a75ca19d4d5cc15af6","tree":"b6be1cd0f3aecb66603e4676eb6dff324a3e7f7f","v":1,"via":"run"}
test(libobs): Phase 4 characterization tests (#7)
4 tasks
Adds the obs-graphics crate with Vec2 abs/floor/ceil/len/close/norm, no_mangle vec2_* shims swapped in under ENABLE_RUST_LIBOBS, a C oracle for bit-exact parity, a cmocka test_vec2 characterization test, and export-list coverage of every crate. Refs #8
feat(graphics): port vec2 math to Rust obs-graphics crate (#8)
Closed
3 tasks
zackees
marked this pull request as ready for review
October 9, 2026 11:17
This was referenced Oct 9, 2026
Closed
This was referenced Oct 9, 2026
zackees
pushed a commit
that referenced
this pull request
Oct 11, 2026
PR #33 review: mutating sem_t through &self without UnsafeCell relied on raw-pointer casts that do not satisfy the aliasing rule, and a plain Box<Sem> did not stop safe code from moving the initialized pointee. - sem_t now lives in UnsafeCell; init uses UnsafeCell::raw_get so no reference to the uninit object is ever formed; ops use .get() - Sem gains PhantomPinned and new() returns Pin<Box<Sem>>, so safe code cannot move the initialized native object; documented unsafe impl Sync - Sem moved to ffi/native_sem.rs per the testing policy's FFI-location rule for unsafe, re-exported as threading::Sem unchanged - tests: sem_native_object_never_moves address-stability check and a compile-fail doctest proving a pinned Sem cannot be moved out Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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 closes when every phase lands)
Closes #6
Closes #7
Closes #8
Feature branch for roadmap phases 3–5 (grind run 9b41). Each goal lands here as its own goal PR; this PR merges into
masteronce every goal is green.