pub 0.1.13

publish anything to the open web
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use libc::c_char;
use std::ffi::CString;

#[link(name = "pub")]
extern "C" {
    fn Run(cstrs: *const c_char) -> libc::c_int;
}

fn main() {
    let strs = CString::new("https://k0s.io").unwrap();
    let result = unsafe { Run(strs.as_ptr()) };
    println!("Result: {}", result);
}