summaryrefslogtreecommitdiff
path: root/xmake/templates/rust/shared/src
diff options
context:
space:
mode:
authorruki <[email protected]>2026-03-04 00:40:11 +0800
committerruki <[email protected]>2026-03-04 00:40:11 +0800
commit078b2ee0b6087a70bae05d3fa86d01078786513c (patch)
tree6f28e600fd9dcfb11bebb7abf02d36ebf1b7a685 /xmake/templates/rust/shared/src
parente0e20ef6ddbd0fc62fbaa00d195ce95f22a86fdf (diff)
move templates to repository
Diffstat (limited to 'xmake/templates/rust/shared/src')
-rw-r--r--xmake/templates/rust/shared/src/foo.rs4
-rw-r--r--xmake/templates/rust/shared/src/main.rs6
2 files changed, 0 insertions, 10 deletions
diff --git a/xmake/templates/rust/shared/src/foo.rs b/xmake/templates/rust/shared/src/foo.rs
deleted file mode 100644
index a3a3aa4a6..000000000
--- a/xmake/templates/rust/shared/src/foo.rs
+++ /dev/null
@@ -1,4 +0,0 @@
-pub fn add(a: i32, b: i32) -> i32 {
- return a + b;
-}
-
diff --git a/xmake/templates/rust/shared/src/main.rs b/xmake/templates/rust/shared/src/main.rs
deleted file mode 100644
index 205d23da3..000000000
--- a/xmake/templates/rust/shared/src/main.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-extern crate foo;
-
-fn main() {
- println!("hello xmake!");
- println!("add: {}", foo::add(1, 1));
-}