Skip to content

feat(rust): roadmap phases 3–5 (meta #4) - #33

Merged
zackees merged 14 commits into
masterfrom
grind/meta-4-9b41
Oct 9, 2026
Merged

zackees merged 14 commits into
masterfrom
grind/meta-4-9b41

Conversation

@zackees

@zackees zackees commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

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 master once every goal is green.

Goal Goal PR Status
#6 Phase 3: pure leaf utilities #34 landed
#7 Phase 4: stateful, I/O and platform utilities #38 landed
#8 Phase 5: graphics math, media-io, parsers, obs-websocket Tier 4 #39 landed

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)
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)
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)
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>
@zackees
zackees deleted the grind/meta-4-9b41 branch October 16, 2026 00:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

1 participant