summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-03-02 13:39:07 +0200
committerLars Wirzenius <liw@liw.fi>2022-03-02 13:39:07 +0200
commit71d0352cc50a22e630ecdd4a862f884305df9307 (patch)
tree282817c3303b6052722bcde7328df93849422be4
parent3b2615a3ef7b174d263aecc06d4d1259b6f9260d (diff)
downloadtest-deps-71d0352cc50a22e630ecdd4a862f884305df9307.tar.gz
foomain
-rw-r--r--Cargo.lock14
-rw-r--r--Cargo.toml3
-rw-r--r--bar/Cargo.toml8
-rw-r--r--bar/src/lib.rs1
-rw-r--r--tests/foo.rs4
5 files changed, 30 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..8b4c22b
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,14 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "bar"
+version = "0.1.0"
+
+[[package]]
+name = "test-deps"
+version = "0.1.0"
+dependencies = [
+ "bar",
+]
diff --git a/Cargo.toml b/Cargo.toml
index a576693..00e6485 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,3 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
+
+[dev-dependencies]
+bar = { path = "bar" }
diff --git a/bar/Cargo.toml b/bar/Cargo.toml
new file mode 100644
index 0000000..825efac
--- /dev/null
+++ b/bar/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "bar"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]
diff --git a/bar/src/lib.rs b/bar/src/lib.rs
new file mode 100644
index 0000000..ee6dd86
--- /dev/null
+++ b/bar/src/lib.rs
@@ -0,0 +1 @@
+pub fn bar() {} \ No newline at end of file
diff --git a/tests/foo.rs b/tests/foo.rs
new file mode 100644
index 0000000..ae37024
--- /dev/null
+++ b/tests/foo.rs
@@ -0,0 +1,4 @@
+#[test]
+fn test() {
+ bar::bar();
+} \ No newline at end of file