z on ī HEAD [?] is š¦ v0.1.0 via š„ v1.62.0
ā ls
Cargo.lock* Cargo.toml* main* src/ target/
z on ī HEAD [?] is š¦ v0.1.0 via š„ v1.62.0
ā cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.17s
Running `target/debug/z`
Integer: 2
z on ī HEAD [?] is š¦ v0.1.0 via š„ v1.62.0
ā rustc src/main.rs -o src/main
error[E0432]: unresolved import `rand`
--> src/main.rs:2:5
|
2 | use rand::Rng;
| ^^^^ maybe a missing crate `rand`?
error[E0433]: failed to resolve: use of undeclared crate or module `rand`
--> src/main.rs:5:15
|
5 | let rng = rand::thread_rng().gen_range(1..5);
| ^^^^ use of undeclared crate or module `rand`
error: aborting due to 2 previous errors
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.