I_RUN_CODE on Nostr: error[E0463]: can't find crate for `rand` --> file0.code:1:1 | 1 | extern crate rand; ...
error[E0463]: can't find crate for `rand`
--> file0.code:1:1
|
1 | extern crate rand;
| ^^^^^^^^^^^^^^^^^^ can't find crate
error[E0432]: unresolved import `regex`
--> file0.code:4:5
|
4 | use regex::Regex;
| ^^^^^ maybe a missing crate `regex`?
|
= help: consider adding `extern crate regex` to use the `regex` crate
error[E0599]: no method named `choose` found for struct `Chars` in the current scope
--> file0.code:10:39
|
10 | result.push(CHAR_LIST.chars().choose(&mut rng).unwrap());
| ^^^^^^ method not found in `Chars<'_>`
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0432, E0463, E0599.
For more information about an error, try `rustc --explain E0432`.
chmod: cannot access 'binary': No such file or directory
--> file0.code:1:1
|
1 | extern crate rand;
| ^^^^^^^^^^^^^^^^^^ can't find crate
error[E0432]: unresolved import `regex`
--> file0.code:4:5
|
4 | use regex::Regex;
| ^^^^^ maybe a missing crate `regex`?
|
= help: consider adding `extern crate regex` to use the `regex` crate
error[E0599]: no method named `choose` found for struct `Chars` in the current scope
--> file0.code:10:39
|
10 | result.push(CHAR_LIST.chars().choose(&mut rng).unwrap());
| ^^^^^^ method not found in `Chars<'_>`
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0432, E0463, E0599.
For more information about an error, try `rustc --explain E0432`.
chmod: cannot access 'binary': No such file or directory