Skip to content

Ffi practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 12 of 12

Title Difficulty
A macro-generated FFI binding layer Hard
Calling C functions through safe Rust wrappers Medium
Compare Rust and C struct layouts Medium
C strings and ownership across FFI Medium
Decode bytes into enum variants Medium
Designing safe wrappers around unsafe FFI Hard
Edition 2024: unsafe extern blocks and safe declarations Medium
Export Rust functions with C-compatible names and signatures Hard
Nullable pointer optimization, callbacks and qsort Hard
Opaque handles and bounded C formatting Hard
repr(C): computing struct layout by hand Medium
The other reprs: transparent, packed, align, integer enums Hard