load/
load.rs

1extern crate modinsert;
2
3use std::env;
4use std::ffi::CString;
5
6fn main() {
7    let modname = env::args().nth(1).expect("missing module name");
8    modinsert::try_load(&CString::new(modname).unwrap());
9}