summaryrefslogtreecommitdiff
path: root/rusty-haskell/rust/src/lib.rs
blob: d954f2bb624b7839faa2004f2559664131e30086 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[no_mangle]
pub extern fn double_input(x: i32) -> i32 {
    2 * x
}

#[no_mangle]
pub extern fn print_hello() {
    println!("hello, world, from rust!");
}