[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/rust-mode 49709dceb6 2/4: Fulfil requirements of cargo loc
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/rust-mode 49709dceb6 2/4: Fulfil requirements of cargo locate-project --workspace |
Date: |
Thu, 25 Aug 2022 09:59:15 -0400 (EDT) |
branch: elpa/rust-mode
commit 49709dceb64897f7ecff4d53abfceb2f60eb83d4
Author: yanchith <yanchi.toth@gmail.com>
Commit: yanchith <yanchi.toth@gmail.com>
Fulfil requirements of cargo locate-project --workspace
---
test-project/Cargo.toml | 11 ++++++++++-
test-project/src/lib.rs | 4 ++++
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/test-project/Cargo.toml b/test-project/Cargo.toml
index f741b14a34..7e9bea9f70 100644
--- a/test-project/Cargo.toml
+++ b/test-project/Cargo.toml
@@ -1 +1,10 @@
-# Dummy file needed for test
+# Dummy file needed for test.
+#
+# Needs to have at least a few fields set up, because
+#
+# cargo locate-project --workspace
+#
+# will attempt to parse it and fail, if the file is empty.
+[package]
+name = "test-project"
+version = "0.1.0"
diff --git a/test-project/src/lib.rs b/test-project/src/lib.rs
new file mode 100644
index 0000000000..cdc8599312
--- /dev/null
+++ b/test-project/src/lib.rs
@@ -0,0 +1,4 @@
+pub fn test_project() {
+ // This is only present, because cargo locate-project --workspace actually
+ // validates the rust project and fails if there is no target.
+}