From 71d0352cc50a22e630ecdd4a862f884305df9307 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 2 Mar 2022 13:39:07 +0200 Subject: foo --- Cargo.lock | 14 ++++++++++++++ Cargo.toml | 3 +++ bar/Cargo.toml | 8 ++++++++ bar/src/lib.rs | 1 + tests/foo.rs | 4 ++++ 5 files changed, 30 insertions(+) create mode 100644 Cargo.lock create mode 100644 bar/Cargo.toml create mode 100644 bar/src/lib.rs create mode 100644 tests/foo.rs 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 -- cgit v1.2.1