perl-to-rust

This commit is contained in:
Hao Wu
2015-04-24 15:51:08 -07:00
parent 858886c0d1
commit 134007b116
4 changed files with 42 additions and 0 deletions

4
perl-to-rust/src/lib.rs Normal file
View File

@@ -0,0 +1,4 @@
#[no_mangle]
pub extern fn double_input(input: i32) -> i32 {
input * 2
}