@rustlang How do I embed my Rust library in Swift? I saw someone do it with having a header-file, but how would that work?
-
-
Replying to @lucasamuller
basically, swift thinks it's taking to C, and rust exposes a C interface
1 reply 0 retweets 1 like -
Replying to @lucasamuller
check out the FFI chapter of the book; TL;DR is you use #[no_mangle] and extern fn
12:06 PM - 27 Jan 2017
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.