Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If Rust has a stable ABI on where the data* is in the function arguments (presumably first?), you don't need to do anything if it matches the C code's expected function signature including the user context arg.

Unfortunately a lot of existing C APIs won't have the user arg in the place you need it, it's a mix of first, last, and sometimes even middle.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: