Hi, sorry for the late reply! (I did not receive a notification unfortunately)
Let's say you have a simple add function as follows:
#[rzf::rzf]
fn add(left: i64, right: i64) -> i64 {
left + right
}
and you call the initialize macro in your lib.rs:
rzf::init!();
After building the project with cargo, you should have, for example, a "libmyproj.dylib" file if your project is named "myproj" and you are on macOS (or .dll if on MS Windows). Then, in an IRIS terminal, you can call the function with:
Thanks so much for your question! We will make more information regarding installation/use of RZF available soon when the corresponding Rust crate is published.
Hi, sorry for the late reply! (I did not receive a notification unfortunately)
Let's say you have a simple add function as follows:
and you call the initialize macro in your lib.rs:
rzf::init!();After building the project with cargo, you should have, for example, a "libmyproj.dylib" file if your project is named "myproj" and you are on macOS (or .dll if on MS Windows). Then, in an IRIS terminal, you can call the function with:
write $zf(-3, "/path/to/libmyproj.dylib", "add", 1, 3)This will print 4 to the stdout of the terminal.
Thanks so much for your question! We will make more information regarding installation/use of RZF available soon when the corresponding Rust crate is published.
Best,
Noah