We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Ffi practice problems in Rust
Difficulty:
Category:
Tag:
Showing 12 of 12
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| A macro-generated FFI binding layer | Hard | End-to-End |
|
|
| Calling C from Rust: libc is already linked | Medium | Framework |
|
|
| C strings, ownership across the boundary, and FFI-safe types | Medium | Framework |
|
|
| Designing safe wrappers around unsafe FFI | Hard | End-to-End |
|
|
| Discriminants, #[repr(u8)], as casts and mem::discriminant | Medium | Primitives |
|
|
| Edition 2024: unsafe extern blocks and safe declarations | Medium | Framework |
|
|
| Edition 2024: #[unsafe(no_mangle)] and calling Rust from C in one file | Hard | Framework |
|
|
| Nullable pointer optimization, callbacks and qsort | Hard | Framework |
|
|
| Opaque pointers, variadics, and the FFI hazard catalogue | Hard | Framework |
|
|
| repr(C): computing struct layout by hand | Medium | Primitives |
|
|
| repr(Rust) reorders your fields — and that's the point | Medium | Primitives |
|
|
| The other reprs: transparent, packed, align, integer enums | Hard | Primitives |
|