summaryrefslogtreecommitdiff
path: root/rusty-haskell/rust/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--rusty-haskell/rust/src/lib.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/rusty-haskell/rust/src/lib.rs b/rusty-haskell/rust/src/lib.rs
new file mode 100644
index 0000000..d954f2b
--- /dev/null
+++ b/rusty-haskell/rust/src/lib.rs
@@ -0,0 +1,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!");
+}