figsoda / mmtc

Minimal mpd terminal client that aims to be simple yet highly configurable
https://crates.io/crates/mmtc
Mozilla Public License 2.0
95 stars 4 forks source link

cargo install mmtc fails with import scope errors #41

Open daveriedstra opened 2 years ago

daveriedstra commented 2 years ago

at the compiling mmtc v0.2.14 step, the cargo build fails with a bunch of errors like this:

error: cannot find derive macro `Parser` in this scope
 --> /home/dried/.cargo/registry/src/github.com-1ecc6299db9ec823/mmtc-0.2.14/src/cli.rs:8:10
  |
8 | #[derive(Parser)]
  |          ^^^^^^
  |
note: `Parser` is imported here, but it is only a trait, without a derive macro
 --> /home/dried/.cargo/registry/src/github.com-1ecc6299db9ec823/mmtc-0.2.14/src/cli.rs:1:5
  |
1 | use clap::Parser;
  |     ^^^^^^^^^^^^

error: cannot find attribute `clap` in this scope
 --> /home/dried/.cargo/registry/src/github.com-1ecc6299db9ec823/mmtc-0.2.14/src/cli.rs:9:3
  |
9 | #[clap(version)]
  |   ^^^^
  |
  = note: `clap` is in scope, but it is a crate, not an attribute
figsoda commented 2 years ago

0.2.15 was released, is this still an issue?