ngrs 0.1.3

A New Rust bindings for GNU Guile Scheme
// SPDX-License-Identifier: MIT OR Apache-2.0
// SPDX-FileCopyrightText: 2024 MinkieYume <minkieyume@yumieko.com>
use ngrs::*;
use std::sync::Once;

static INIT: Once = Once::new();

#[ctor::ctor]
fn global_init() {
    INIT.call_once(|| {
        Runtime::initialize();
    });
}

#[test]
fn use_with_guile() {
    with_guile(|_| {
        println!("Hello guile from Rust!");
        without_guile(|| {
            println!("Hello guile from Rust!");
        });
    });
}
    
#[test]
fn can_init_twice() {
    let _runtime = Runtime::new();
    let _runtime2 = Runtime::new();
    assert!(true, "Initialized twice successfully");
}