diff options
-rw-r--r-- | Cargo.lock | 14 | ||||
-rw-r--r-- | Cargo.toml | 3 | ||||
-rw-r--r-- | bar/Cargo.toml | 8 | ||||
-rw-r--r-- | bar/src/lib.rs | 1 | ||||
-rw-r--r-- | tests/foo.rs | 4 |
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", +] @@ -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 |