Add dependency in multiple packages

This commit is contained in:
Manuel Thalmann 2025-03-28 21:39:46 +01:00
parent 7aae63f635
commit f444fc9406
Signed by: manuth
SSH key fingerprint: SHA256:HsMLC+7kJWALP6YCYCoopxNbUnghwSGLVcG76SECT5c
3 changed files with 3 additions and 0 deletions

1
add/Cargo.lock generated
View file

@ -14,6 +14,7 @@ name = "adder"
version = "0.1.0"
dependencies = [
"add_one",
"rand",
]
[[package]]

View file

@ -5,3 +5,4 @@ edition = "2024"
[dependencies]
add_one = { path = "../add_one" }
rand = "0.8.5"

View file

@ -1,4 +1,5 @@
use add_one;
use rand;
fn main() {
let num = 10;