So lately I've been having obscene amounts of fun during absolutely hair-brained and -raising FFI crimes between Rust and C++. "Look ma, no C ABI!" Just going in raw, binding to C++ ABIs, inheriting C++ classes, creating C++ template instances like std::function's, all that good jazz direct in Rust.
Post
It's quite the thrill, I say. I already started a library to make std:: function creation cross-platform, and now I'm honestly thinking I might need a library that auto-mangles function signatures into link_name attributes. Now that'd be fun!
github.comGitHub - aapoalas/cxxfn: Infect your Rust with C++'s `std::function`!Infect your Rust with C++'s `std::function`! Contribute to aapoalas/cxxfn development by creating an account on GitHub.
0 reposts2 likes
No replies yet.