mod args; use libc::{c_void, c_int}; extern { fn nmseffect_set_autodecrypt(_: c_int) -> c_void; } #[no_mangle] pub extern "C" fn rust_main() { println!("Hello from rust"); let args = args::parse_arguments().unwrap(); if args.autodecrypt { unsafe { nmseffect_set_autodecrypt(1); } } println!("{:?}", args); }