jlrs 0.23.0

jlrs provides bindings to the Julia C API that enable Julia code to be called from Rust and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![cfg(feature = "local-rt")]
mod tests {
    use jlrs::runtime::builder::Builder;

    #[test]
    fn init_with_image() {
        if let Ok(julia_dir) = std::env::var("JLRS_JULIA_DIR") {
            let bindir = format!("{}/bin", julia_dir);
            let image_path = format!("{}/lib/julia/system.so", julia_dir);

            unsafe { assert!(Builder::new().image(bindir, image_path).is_err()) }
        } else {
            println!("Skipping image test because JLRS_JULIA_DIR environment variable is not set.");
        }
    }
}