summaryrefslogtreecommitdiff
path: root/test-project
diff options
context:
space:
mode:
authoryanchith <yanchi.toth@gmail.com>2022-08-25 14:35:58 +0200
committeryanchith <yanchi.toth@gmail.com>2022-08-25 14:35:58 +0200
commit49709dceb64897f7ecff4d53abfceb2f60eb83d4 (patch)
tree4830854f2623e3c5e3566903c9e53b9aeb69dae2 /test-project
parentfaf6d98b3e2a386f3f37079f9bb6de11a7bce6cc (diff)
downloadrust-mode-49709dceb64897f7ecff4d53abfceb2f60eb83d4.tar.gz
Fulfil requirements of cargo locate-project --workspace
Diffstat (limited to 'test-project')
-rw-r--r--test-project/Cargo.toml11
-rw-r--r--test-project/src/lib.rs4
2 files changed, 14 insertions, 1 deletions
diff --git a/test-project/Cargo.toml b/test-project/Cargo.toml
index f741b14..7e9bea9 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 0000000..cdc8599
--- /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.
+}