by viraptor · 5y ago · 0 comments
You can translate most C to Rust automatically (https://c2rust.com/) and there's nothing that I'm aware of that can't be done in Rust via unsafe and transmute. (technically some things like specific label jumps can't be translated, but all of those can be rewritten to other constructs) Do you have some specific cases in mind?
But yeah bottom line, nowhere does Rustc "stop" you from doing things. Just strongly discourage :)