User bio
404 bio not found
Member since Nov 26, 2024
Posts:
Noah has not published any posts yet.
Replies:

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:

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

Certifications & Credly badges:
Noah has no Certifications & Credly badges yet.
Global Masters badges:
Noah has no Global Masters badges yet.
Followers:
Noah has no followers yet.
Following:
Noah has not followed anybody yet.