install failed

❯ cargo install cli-completion
Updating crates.io index
Installing cli-completion v0.4.0
Compiling libc v0.2.135
Compiling autocfg v1.1.0
Compiling os_str_bytes v6.3.0
Compiling hashbrown v0.12.3
Compiling linked-hash-map v0.5.6
Compiling bitflags v1.3.2
Compiling textwrap v0.15.1
Compiling termcolor v1.1.3
Compiling strsim v0.10.0
Compiling yaml-rust v0.4.5
Compiling clap_lex v0.2.4
Compiling indexmap v1.9.1
Compiling atty v0.2.14
Compiling clap v3.2.22
Compiling clap_complete v3.2.5
Compiling clap_generate v3.0.3
Compiling cli-completion v0.4.0
error[E0599]: no method named about found for struct Arg in the current scope
--> /Users/chengli.zou/.cargo/registry/src/github.com-1ecc6299db9ec823/cli-completion-0.4.0/src/app.rs:17:18
|
17 | .about("Zsh completion")
| ^^^^^ method not found in Arg<'_>
error[E0599]: no method named about found for struct Arg in the current scope
--> /Users/chengli.zou/.cargo/registry/src/github.com-1ecc6299db9ec823/cli-completion-0.4.0/src/app.rs:24:18
|
24 | .about("PowerShell completion")
| ^^^^^ method not found in Arg<'_>
error[E0599]: no method named about found for struct Arg in the current scope
--> /Users/chengli.zou/.cargo/registry/src/github.com-1ecc6299db9ec823/cli-completion-0.4.0/src/app.rs:31:18
|
31 | .about("Bash completion")
| ^^^^^ method not found in Arg<'_>
error[E0599]: no method named about found for struct Arg in the current scope
--> /Users/chengli.zou/.cargo/registry/src/github.com-1ecc6299db9ec823/cli-completion-0.4.0/src/app.rs:38:18
|
38 | .about("Fish completion")
| ^^^^^ method not found in Arg<'_>
error[E0599]: no method named about found for struct Arg in the current scope
--> /Users/chengli.zou/.cargo/registry/src/github.com-1ecc6299db9ec823/cli-completion-0.4.0/src/app.rs:47:18
|
47 | .about("CLI clap-rs yaml file"),
| ^^^^^ method not found in Arg<'_>
error[E0308]: mismatched types
--> /Users/chengli.zou/.cargo/registry/src/github.com-1ecc6299db9ec823/cli-completion-0.4.0/src/main.rs:28:25
|
28 | let app = App::from(yaml);
| --------- ^^^^ expected struct App, found &Yaml
| |
| arguments to this function are incorrect
|
note: associated function defined here
Some errors have detailed explanations: E0308, E0599.
For more information about an error, try rustc --explain E0308.
error: could not compile cli-completion due to 6 previous errors
error: failed to compile cli-completion v0.4.0, intermediate artifacts can be found at /var/folders/qt/lr33gfdj3v9g774j52w7gfsm0000gn/T/cargo-install7iDJUO
Your system cpu is apple m1?
Try substituting "about" with "help" in your app.rs file referenced above and then you'll likely get a further error (like me):
|
28 | let app = App::from(yaml);
| --------- ^^^^ expected struct `App`, found `&Yaml`
| |
| arguments to this function are incorrect
|
note: associated function defined here
--> /rustc/d5a82bbd26e1ad8b7401f6a718a9c57c96905483/library/core/src/convert/mod.rs:548:8
For more information about this error, try `rustc --explain E0308`.
error: could not compile `cli-completion` due to previous error
error: failed to compile `cli-completion v0.4.0`, intermediate artifacts can be found at `/tmp/cargo-installHkXe86`
This crate is obviously outdated (not updated in a while, at least) I don't know how to fix that one...yet, but I'll continue plugging away.
Cheers!
Brendan