summaryrefslogtreecommitdiff
path: root/tests/projects/rust/cargo_deps_without_std/xmake.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/rust/cargo_deps_without_std/xmake.lua')
-rw-r--r--tests/projects/rust/cargo_deps_without_std/xmake.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/projects/rust/cargo_deps_without_std/xmake.lua b/tests/projects/rust/cargo_deps_without_std/xmake.lua
new file mode 100644
index 000000000..b9f878c13
--- /dev/null
+++ b/tests/projects/rust/cargo_deps_without_std/xmake.lua
@@ -0,0 +1,7 @@
+add_rules("mode.release", "mode.debug")
+add_requires("cargo::test", {configs = {cargo_toml = path.join(os.projectdir(), "Cargo.toml")}})
+
+target("test")
+ set_kind("binary")
+ add_files("src/main.rs")
+ add_packages("cargo::test")