Closed timvisee closed 1 year ago
When building skim without the cli feature, building fails:
cli
$ cargo check --no-default-features Checking skim v0.10.2 (/home/timvisee/git/skim) error[E0463]: can't find crate for `clap` --> src/bin/main.rs:1:1 | 1 | extern crate clap; | ^^^^^^^^^^^^^^^^^^ can't find crate error[E0463]: can't find crate for `env_logger` --> src/bin/main.rs:2:1 | 2 | extern crate env_logger; | ^^^^^^^^^^^^^^^^^^^^^^^^ can't find crate error[E0463]: can't find crate for `atty` --> src/bin/main.rs:5:1 | 5 | extern crate atty; | ^^^^^^^^^^^^^^^^^^ can't find crate error[E0463]: can't find crate for `shlex` --> src/bin/main.rs:6:1 | 6 | extern crate shlex; | ^^^^^^^^^^^^^^^^^^^ can't find crate error: cannot determine resolution for the macro `crate_version` --> src/bin/main.rs:172:18 | 172 | .version(crate_version!()) | ^^^^^^^^^^^^^ | = note: import resolution is stuck, try simplifying macro imports For more information about this error, try `rustc --explain E0463`. error: could not compile `skim` due to 5 previous errors
Oops. This is obviously intended behavior as these failures come from src/bin/main.rs.
src/bin/main.rs
Building just the library works fine: cargo check --lib --no-default-features
cargo check --lib --no-default-features
When building skim without the
cli
feature, building fails: