Mehdi Akiki

Posts tagged "unsafe-rust"

  • Published on
    With Rust 1.99 you can define C variadic functions like printf, not only call them. I called a small Rust library from C and from Rust: the compiler checks the C promotion rules, but the number and the types of the arguments stay a promise between the caller and the function.
  • Published on
    A fence orders surrounding operations only through an atomic carrier and a reads-from relation. Trace release-fence/acquire-fence synchronization and the final-reference-count pattern.
  • Published on

    Article · Through the layers

    A Rust FFI Boundary Is More Than repr(C)

    A tested Rust-and-C FFI boundary covering ABI layout, pointer validation, ownership, panics, error reporting, callbacks, versioning, and cross-language harnesses.