-
Notifications
You must be signed in to change notification settings - Fork 1
Description
error[E0432]: unresolved import clap::Clap
--> src/main.rs:3:5
|
3 | use clap::Clap;
| ^^^^^^^^^^ no Clap in the root
error: cannot determine resolution for the derive macro Clap
--> src/main.rs:5:10
|
5 | #[derive(Clap)]
| ^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot find attribute clap in this scope
--> src/main.rs:6:3
|
6 | #[clap(version = "2.0", author = "Aldas <aldas.me>")]
| ^^^^
|
= note: clap is in scope, but it is a crate, not an attribute
error: cannot find attribute clap in this scope
--> src/main.rs:8:7
|
8 | #[clap(short, long)]
| ^^^^
|
= note: clap is in scope, but it is a crate, not an attribute
error: cannot find attribute clap in this scope
--> src/main.rs:10:7
|
10 | #[clap(short, long)]
| ^^^^
|
= note: clap is in scope, but it is a crate, not an attribute
error: cannot find attribute clap in this scope
--> src/main.rs:12:7
|
12 | #[clap(long, default_value = "10")]
| ^^^^
|
= note: clap is in scope, but it is a crate, not an attribute
error[E0599]: no function or associated item named parse found for struct Opts in the current scope
--> src/main.rs:18:45
|
7 | struct Opts {
| ----------- function or associated item parse not found for this struct
...
18 | let options: Arc = Arc::new(Opts::parse());
| ^^^^^ function or associated item not found in Opts
|
= help: items from traits can only be used if the trait is implemented and in scope
= note: the following traits define an item parse, perhaps you need to implement one of them:
candidate #1: Parser
candidate #2: TypedValueParser
Some errors have detailed explanations: E0432, E0599.
For more information about an error, try rustc --explain E0432.
error: could not compile DisCrasher (bin "DisCrasher") due to 7 previous errors