News for hackers. Stuff that matters.
Re:The Dark Arts of Advanced and Unsafe Rust Programming by swgillespie on Friday August 24, 2018 @12:50PM (#17836082)
There are a couple of projects that do this for Rust, depending on what your inputs and outputs are:

* https://github.com/rust-lang-nursery/rust-bindgen - Inputs are C/C++ headers, outputs are Rust type definitions and extern functions to interoperate with the type and functions in the headers

* https://github.com/immunant/c2rust - Inputs are C headers and source, outputs Rust code that is semantically equivalent to the C (modulo bugs, etc.)

* https://github.com/eqrion/cbindgen/ - Inputs are Rust source, outputs C/C++ headers that can be used to interoperate with the types and functions exposed by Rust

Re:The Dark Arts of Advanced and Unsafe Rust Programming by Immortalin on Friday August 24, 2018 @05:12PM (#17837918)
None of these are able to handle dynamic header templating properly, e.g. try embedding Guile Scheme in a non-C/C++ language through FFI alone.