ruchy 3.4.1

A systems scripting language that transpiles to idiomatic Rust with extreme quality engineering
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Test if SharedSession compiles correctly
use std::sync::{Arc, Mutex};

mod shared_session {
    include!("src/wasm/shared_session.rs");
}

fn main() {
    let session = Arc::new(Mutex::new(shared_session::SharedSession::new()));
    let mut guard = session.lock().unwrap();
    // This should work if create_checkpoint exists
    let _ = guard.create_checkpoint("test");
    println!("SharedSession has create_checkpoint method!");
}