summaryrefslogtreecommitdiff
path: root/xmake/templates/rust/shared/src/foo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/templates/rust/shared/src/foo.rs')
-rw-r--r--xmake/templates/rust/shared/src/foo.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/templates/rust/shared/src/foo.rs b/xmake/templates/rust/shared/src/foo.rs
new file mode 100644
index 000000000..a3a3aa4a6
--- /dev/null
+++ b/xmake/templates/rust/shared/src/foo.rs
@@ -0,0 +1,4 @@
+pub fn add(a: i32, b: i32) -> i32 {
+ return a + b;
+}
+