README
Trials to practice Rust code.
Curernt Status
Linking itself is working well.
a1--- Calling Rust function from C program works for simple signatures.a2--- Spawning a new Rust task doesn't work. It crashes.a3---a2with noprintlnorprintf!calling.
It seems to be better to use Rust as the driver program compiler, and linking any other C/C++ libraries into there.
-
b1--- Compiling a host program for iOS. Doesn't work. It needs cross-compiler, and the cross-compiler is not shipped with default Homebrew distribution. -
c1--- Link Rust library into C and calls AppKit. This works. Do not run using Xcode. Just runall.bash. Take care your current directory must bec1. You can check print log by running the app inlldb.