diff options
| author | ruki <[email protected]> | 2023-08-08 23:40:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-08-08 23:40:49 +0800 |
| commit | 75e7ddd9d604fc4c762dbc0e187c4a0d0ae231cc (patch) | |
| tree | 51e979a9672b505285343a0ef91ad52a363d3ca5 /tests/projects/rust/cargo_deps_without_std/xmake.lua | |
| parent | b30f8296b46a14f4ba4cec9fb0b81a6876d40d0c (diff) | |
add cargo without std example
Diffstat (limited to 'tests/projects/rust/cargo_deps_without_std/xmake.lua')
| -rw-r--r-- | tests/projects/rust/cargo_deps_without_std/xmake.lua | 7 |
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") |
