You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use clap::*;/// NEAR Indexer Example/// Watches for stream of blocks from the chain#[derive(Debug,Clap)]#[clap(version = "0.1", author = "Near Inc. <hello@nearprotocol.com>")]pub(crate)structOpts{/// Sets a custom config dir. Defaults to ~/.near/#[clap(short, long)]pubhome_dir:Option<std::path::PathBuf>,}fnmain(){println!("Hello, world!");}
Steps to reproduce the bug with the above code
cargo run --release
Actual Behaviour
error: cannot find derive macro `Clap` in this scope
--> src/main.rs:5:16
|
5 | #[derive(Debug,Clap)]
| ^^^^
error: cannot find attribute `clap` in this scope
--> src/main.rs:6:3
|
6 | #[clap(version = "0.1", author = "Near Inc. <hello@nearprotocol.com>")]
| ^^^^
error: cannot find attribute `clap` in this scope
--> src/main.rs:9:7
|
9 | #[clap(short, long)]
| ^^^^
warning: unused import: `clap::*`
--> src/main.rs:1:5
|
1 | use clap::*;
| ^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
error: aborting due to 3 previous errors; 1 warning emitted
Please complete the following tasks
Rust Version
1.55
Clap Version
3.0-beta.5
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run --release
Actual Behaviour
Expected Behaviour
Hello world
Additional Context
The answer here doesn't make sense #2910
3.0.0-beta.2 does not compile now
3.0.0-beta.4 does not compile now
3.0.0-beta.5 does not compile now
3.0.0-beta.2 compiled last month
Debug Output
No response
The text was updated successfully, but these errors were encountered: