summaryrefslogtreecommitdiff
path: root/xmake/templates/rust/shared/project/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/templates/rust/shared/project/xmake.lua')
-rw-r--r--xmake/templates/rust/shared/project/xmake.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/templates/rust/shared/project/xmake.lua b/xmake/templates/rust/shared/project/xmake.lua
new file mode 100644
index 000000000..d20b6f5d7
--- /dev/null
+++ b/xmake/templates/rust/shared/project/xmake.lua
@@ -0,0 +1,10 @@
+target("foo")
+ set_kind("shared")
+ add_files("src/foo.rs")
+
+target("${TARGETNAME}_demo")
+ set_kind("binary")
+ add_deps("foo")
+ add_files("src/main.rs")
+
+${FAQ}