jlrs 0.23.0

jlrs provides bindings to the Julia C API that enable Julia code to be called from Rust and more.
Documentation
mod util;
#[cfg(feature = "local-rt")]
mod tests {
    use jlrs::prelude::*;

    use super::util::JULIA;

    fn error_include_nonexistent() {
        JULIA.with(|j| unsafe {
            let jlrs = j.borrow();
            assert!(jlrs.include("nonexistent/path/").is_err());
        });
    }

    fn cannot_init_again() {
        JULIA.with(|_j| assert!(Builder::new().start_local().is_err()));
    }

    fn include_error() {
        JULIA.with(|j| unsafe {
            let jlrs = j.borrow();
            assert!(jlrs.include("Cargo.toml").is_err());
        });
    }

    #[test]
    fn runtime_test() {
        error_include_nonexistent();
        cannot_init_again();
        include_error();
    }
}