I used to use quicli crate to create console apps and it works great until recently.
With edition = "2018"
in Cargo.toml, I cannot anymore use the StructOpt
trait. For example, this piece of code
#[macro_use] extern crate quicli;
use quicli::prelude::*;
#[derive(StructOpt, Debug)]
struct Args {
...
}
...
no longer works. The compiler complains:
|
10 | #[derive(StructOpt, Debug)]
| ^^^^^^^^^ Could not find `structopt` in `{{root}}`
It seems that there are some changes with edition 2018, I've tried some, e.g.
use quicli::prelude::structopt::StructOpt;
but it still does not work.
Many thanks for any response.