Hacker News new | ask | show | jobs
by ajbt200128 703 days ago
> // SAFETY: do you trust me?

No.

Have you seen the safer-ffi crate? Then you won't have to commit the deadly sin of writing unsafe Rust

2 comments

But this is an entry point to assembly code. It's inherently unsafe.
> safer-ffi crate

It looks to me like that crate is supposed to help with exposing rust functions to C safely, not calling foreign functions in foreign code safely. Am I missing something?