mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
- Remove unnecessary `.to_vec()` allocations; use `std::str::from_utf8` on slices directly - Replace null pointer assertions with early returns to avoid process aborts - Handle embedded null bytes in `CString::new` instead of panicking via `.unwrap()` - Use `ptr.write()` instead of mutable reference dereferencing for output pointers Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Read more about the Rust integration in the blog: