kakoc/birdy

Couldn't install via cargo

Closed this issue · 6 comments

I tried to install birdy via cargo, but it failed:

>> cargo install birdy
    Updating crates.io index
  Downloaded birdy v0.1.8
  Downloaded 1 crate (303.7 KB) in 1.54s
  Installing birdy v0.1.8
    Updating crates.io index
  Downloaded xcursor v0.3.5
  Downloaded arboard v3.3.0
  Downloaded wl-clipboard-rs v0.8.0
  Downloaded gpu-descriptor-types v0.1.2
  Downloaded derive-new v0.5.9
  Downloaded gpu-descriptor v0.2.4
  Downloaded gethostname v0.3.0
  Downloaded profiling v1.0.14
  Downloaded pixels v0.13.0
  Downloaded tree_magic_mini v3.0.3
  Downloaded ab_glyph v0.2.23
  Downloaded xml-rs v0.8.19
  Downloaded weezl v0.1.8
  Downloaded slotmap v1.0.7
  Downloaded dbus v0.9.7
  Downloaded ultraviolet v0.9.2
  Downloaded indexmap v2.2.2
  Downloaded safe_arch v0.7.1
  Downloaded wide v0.7.15
  Downloaded xcb v1.3.0
  Downloaded ttf-parser v0.15.2
  Downloaded fontdue v0.7.3
  Downloaded smithay-client-toolkit v0.16.1
  Downloaded owned_ttf_parser v0.20.0
  Downloaded quick-xml v0.30.0
  Downloaded glow v0.12.3
  Downloaded wgpu v0.16.3
  Downloaded ttf-parser v0.20.0
  Downloaded x11rb v0.12.0
  Downloaded winit v0.28.7
  Downloaded x11rb-protocol v0.12.0
  Downloaded winit_input_helper v0.14.1
  Downloaded error-iter v0.4.1
  Downloaded screenshots v0.8.8
  Downloaded libdbus-sys v0.2.5
  Downloaded fastblur v0.1.1
  Downloaded 36 crates (5.0 MB) in 2.12s (largest was `libdbus-sys` at 1.6 MB)
   Compiling cfg-if v1.0.0
   Compiling autocfg v1.1.0
   Compiling proc-macro2 v1.0.78
   Compiling unicode-ident v1.0.12
   Compiling libc v0.2.153
   Compiling pkg-config v0.3.29
   Compiling bitflags v1.3.2
   Compiling version_check v0.9.4
   Compiling smallvec v1.13.1
   Compiling once_cell v1.19.0
   Compiling quote v1.0.35
   Compiling libloading v0.8.1
   Compiling log v0.4.20
   Compiling syn v2.0.48
   Compiling bitflags v2.4.2
   Compiling dlib v0.5.2
   Compiling ahash v0.8.7
   Compiling thiserror v1.0.56
   Compiling simd-adler32 v0.3.7
   Compiling zerocopy v0.7.32
   Compiling xml-rs v0.8.19
   Compiling cc v1.0.83
   Compiling memoffset v0.6.5
   Compiling lock_api v0.4.11
   Compiling wayland-scanner v0.29.5
   Compiling bytemuck v1.14.1
   Compiling scoped-tls v1.0.1
   Compiling downcast-rs v1.2.0
   Compiling crc32fast v1.3.2
   Compiling memchr v2.7.1
   Compiling crossbeam-utils v0.8.19
   Compiling thiserror-impl v1.0.56
   Compiling scopeguard v1.2.0
   Compiling lazy_static v1.4.0
   Compiling adler v1.0.2
   Compiling miniz_oxide v0.7.1
   Compiling num-traits v0.2.17
   Compiling allocator-api2 v0.2.16
   Compiling rustix v0.38.31
   Compiling hashbrown v0.14.3
   Compiling wayland-sys v0.29.5
   Compiling linux-raw-sys v0.4.13
   Compiling flate2 v1.0.28
   Compiling crossbeam-epoch v0.9.18
   Compiling rayon-core v1.12.1
   Compiling crossbeam-deque v0.8.5
   Compiling nix v0.24.3
   Compiling wayland-client v0.29.5
   Compiling fdeflate v0.3.4
   Compiling wayland-sys v0.31.1
   Compiling parking_lot_core v0.9.9
   Compiling arrayvec v0.7.4
   Compiling wayland-commons v0.29.5
   Compiling png v0.17.11
   Compiling wayland-backend v0.3.3
   Compiling slotmap v1.0.7
   Compiling indexmap v1.9.3
   Compiling memoffset v0.7.1
   Compiling termcolor v1.4.1
   Compiling quick-xml v0.31.0
   Compiling wayland-protocols v0.29.5
   Compiling libloading v0.7.4
   Compiling khronos-egl v4.1.0
   Compiling ash v0.37.3+1.3.251
   Compiling bit-vec v0.6.3
   Compiling either v1.9.0
   Compiling raw-window-handle v0.5.2
   Compiling unicode-width v0.1.11
   Compiling hashbrown v0.12.3
   Compiling codespan-reporting v0.11.1
   Compiling rayon v1.8.1
   Compiling bit-set v0.5.3
   Compiling wayland-scanner v0.31.1
   Compiling parking_lot v0.12.1
   Compiling spirv v0.2.0+1.5.4
   Compiling nix v0.25.1
   Compiling spin v0.9.8
   Compiling gpu-descriptor-types v0.1.2
   Compiling smithay-client-toolkit v0.16.1
   Compiling gpu-alloc-types v0.2.0
   Compiling arrayref v0.3.7
   Compiling unicode-xid v0.2.4
   Compiling xcursor v0.3.5
   Compiling pin-utils v0.1.0
   Compiling syn v1.0.109
   Compiling hexf-parse v0.2.1
   Compiling weezl v0.1.8
   Compiling vec_map v0.8.2
   Compiling ttf-parser v0.20.0
   Compiling rustc-hash v1.1.0
   Compiling strict-num v0.1.1
   Compiling equivalent v1.0.1
   Compiling indexmap v2.2.2
   Compiling tiny-skia-path v0.8.4
   Compiling naga v0.12.3
   Compiling calloop v0.10.6
   Compiling owned_ttf_parser v0.20.0
   Compiling wayland-cursor v0.29.5
   Compiling nix v0.26.4
   Compiling gpu-alloc v0.5.4
   Compiling gpu-descriptor v0.2.4
   Compiling flume v0.11.0
   Compiling wayland-client v0.31.2
   Compiling jpeg-decoder v0.3.1
   Compiling quick-xml v0.30.0
   Compiling libdbus-sys v0.2.5
   Compiling zune-inflate v0.2.54
   Compiling memmap2 v0.5.10
   Compiling wgpu-types v0.16.1
   Compiling x11-dl v2.21.0
   Compiling half v2.2.1
   Compiling renderdoc-sys v1.0.0
   Compiling glow v0.12.3
   Compiling minimal-lexical v0.2.1
   Compiling profiling v1.0.14
   Compiling color_quant v1.1.0
   Compiling fixedbitset v0.4.2
   Compiling ab_glyph_rasterizer v0.1.8
   Compiling bit_field v0.10.2
   Compiling cfg_aliases v0.1.1
   Compiling lebe v0.5.2
   Compiling exr v1.71.0
   Compiling winit v0.28.7
   Compiling ab_glyph v0.2.23
   Compiling petgraph v0.6.4
   Compiling wgpu-hal v0.16.2
   Compiling gif v0.12.0
   Compiling nom v7.1.3
   Compiling xcb v1.3.0
   Compiling tiff v0.9.1
   Compiling wayland-protocols v0.31.2
   Compiling tiny-skia v0.8.4
   Compiling aho-corasick v1.1.2
   Compiling qoi v0.4.1
   Compiling safe_arch v0.7.1
   Compiling x11rb v0.12.0
   Compiling byteorder v1.5.0
   Compiling regex-syntax v0.8.2
   Compiling percent-encoding v2.3.1
   Compiling fnv v1.0.7
   Compiling serde v1.0.196
   Compiling bytecount v0.6.7
   Compiling fastrand v2.0.1
   Compiling tempfile v3.9.0
   Compiling tree_magic_mini v3.0.3
   Compiling regex-automata v0.4.5
   Compiling image v0.24.8
   Compiling sctk-adwaita v0.5.4
   Compiling wide v0.7.15
   Compiling derive-new v0.5.9
   Compiling wayland-protocols-wlr v0.2.0
   Compiling wgpu-core v0.16.1
   Compiling x11rb-protocol v0.12.0
   Compiling serde_derive v1.0.196
   Compiling mio v0.8.10
   Compiling os_pipe v1.1.5
   Compiling gethostname v0.3.0
   Compiling instant v0.1.12
   Compiling static_assertions v1.1.0
   Compiling serde_json v1.0.113
   Compiling wgpu v0.16.3
   Compiling wl-clipboard-rs v0.8.0
   Compiling dbus v0.9.7
   Compiling ultraviolet v0.9.2
   Compiling regex v1.10.3
   Compiling is-terminal v0.4.10
   Compiling hashbrown v0.13.2
   Compiling ryu v1.0.16
   Compiling humantime v2.1.0
   Compiling itoa v1.0.10
   Compiling pollster v0.3.0
   Compiling ttf-parser v0.15.2
   Compiling pixels v0.13.0
   Compiling fontdue v0.7.3
   Compiling env_logger v0.10.2
   Compiling screenshots v0.8.8
   Compiling arboard v3.3.0
   Compiling winit_input_helper v0.14.1
   Compiling fastblur v0.1.1
   Compiling error-iter v0.4.1
   Compiling birdy v0.1.8
error[E0432]: unresolved import `screenshots::Screen`
  --> /home/censored/.cargo/registry/src/index.crates.io-6f17d22bba15001f/birdy-0.1.8/src/main.rs:20:5
   |
20 | use screenshots::Screen;
   |     ^^^^^^^^^^^^^^^^^^^ no `Screen` in the root

For more information about this error, try `rustc --explain E0432`.
error: could not compile `birdy` (bin "birdy") due to 1 previous error
error: failed to compile `birdy v0.1.8`, intermediate artifacts can be found at `/tmp/cargo-installNsfM2P`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Now I cloned the repo and build birdy locally (cargo build --release) and it builds successfully.

I'm a bit irritated, because these should be the same versions and I expected either both ways to fail or both run successfully.

same error here, cargo build .. works fine. thx for the tool, like it!

Hi @theCollectiv, @fgau,
I updated installation command in README.md:

cargo install birdy --locked

Please try to install with this command and confirm that it works

Can't confirm yet.

>> cargo instcargo install birdy --locked
   Updating crates.io index
 Downloaded birdy v0.1.10
 Downloaded 1 crate (304.8 KB) in 0.41s
 Installing birdy v0.1.10
   Updating crates.io index
warning: package `ahash v0.7.6` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `ahash v0.8.3` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
   Updating crates.io index
  Compiling autocfg v1.1.0
  Compiling cfg-if v1.0.0
  Compiling libc v0.2.147
  Compiling proc-macro2 v1.0.66
  Compiling unicode-ident v1.0.11
  Compiling bitflags v1.3.2
  Compiling pkg-config v0.3.27
  Compiling once_cell v1.18.0
  Compiling smallvec v1.11.0
  Compiling quote v1.0.33
  Compiling version_check v0.9.4
  Compiling syn v2.0.31
  Compiling libloading v0.8.0
  Compiling log v0.4.20
  Compiling scopeguard v1.2.0
  Compiling dlib v0.5.2
  Compiling memoffset v0.6.5
  Compiling thiserror v1.0.48
  Compiling getrandom v0.2.10
  Compiling xml-rs v0.8.17
  Compiling downcast-rs v1.2.0
  Compiling scoped-tls v1.0.1
  Compiling simd-adler32 v0.3.7
  Compiling wayland-scanner v0.29.5
  Compiling lock_api v0.4.10
  Compiling num-traits v0.2.16
  Compiling crossbeam-utils v0.8.16
  Compiling memchr v2.6.3
  Compiling bytemuck v1.13.1
  Compiling memoffset v0.9.0
  Compiling crc32fast v1.3.2
  Compiling adler v1.0.2
  Compiling miniz_oxide v0.7.1
  Compiling cc v1.0.83
  Compiling nix v0.24.3
  Compiling thiserror-impl v1.0.48
  Compiling wayland-sys v0.29.5
  Compiling crossbeam-epoch v0.9.15
  Compiling lazy_static v1.4.0
  Compiling bitflags v2.4.0
  Compiling quick-xml v0.28.2
  Compiling flate2 v1.0.27
  Compiling wayland-client v0.29.5
  Compiling ahash v0.7.6
  Compiling rayon-core v1.11.0
  Compiling minimal-lexical v0.2.1
  Compiling crossbeam-deque v0.8.3
  Compiling nom v7.1.3
  Compiling crossbeam-channel v0.5.8
  Compiling wayland-commons v0.29.5
  Compiling fdeflate v0.3.0
  Compiling num_cpus v1.16.0
  Compiling memoffset v0.7.1
  Compiling png v0.17.10
error[E0635]: unknown feature `stdsimd`
 --> /home/censored/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.7.6/src/lib.rs:33:42
  |
33 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
  |                                          ^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `ahash` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `birdy v0.1.10`, intermediate artifacts can be found at `/tmp/cargo-installvd5Nyo`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Can't confirm yet.

>> cargo instcargo install birdy --locked
   Updating crates.io index
 Downloaded birdy v0.1.10
 Downloaded 1 crate (304.8 KB) in 0.41s
 Installing birdy v0.1.10
   Updating crates.io index
warning: package `ahash v0.7.6` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `ahash v0.8.3` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
   Updating crates.io index
  Compiling autocfg v1.1.0
  Compiling cfg-if v1.0.0
  Compiling libc v0.2.147
  Compiling proc-macro2 v1.0.66
  Compiling unicode-ident v1.0.11
  Compiling bitflags v1.3.2
  Compiling pkg-config v0.3.27
  Compiling once_cell v1.18.0
  Compiling smallvec v1.11.0
  Compiling quote v1.0.33
  Compiling version_check v0.9.4
  Compiling syn v2.0.31
  Compiling libloading v0.8.0
  Compiling log v0.4.20
  Compiling scopeguard v1.2.0
  Compiling dlib v0.5.2
  Compiling memoffset v0.6.5
  Compiling thiserror v1.0.48
  Compiling getrandom v0.2.10
  Compiling xml-rs v0.8.17
  Compiling downcast-rs v1.2.0
  Compiling scoped-tls v1.0.1
  Compiling simd-adler32 v0.3.7
  Compiling wayland-scanner v0.29.5
  Compiling lock_api v0.4.10
  Compiling num-traits v0.2.16
  Compiling crossbeam-utils v0.8.16
  Compiling memchr v2.6.3
  Compiling bytemuck v1.13.1
  Compiling memoffset v0.9.0
  Compiling crc32fast v1.3.2
  Compiling adler v1.0.2
  Compiling miniz_oxide v0.7.1
  Compiling cc v1.0.83
  Compiling nix v0.24.3
  Compiling thiserror-impl v1.0.48
  Compiling wayland-sys v0.29.5
  Compiling crossbeam-epoch v0.9.15
  Compiling lazy_static v1.4.0
  Compiling bitflags v2.4.0
  Compiling quick-xml v0.28.2
  Compiling flate2 v1.0.27
  Compiling wayland-client v0.29.5
  Compiling ahash v0.7.6
  Compiling rayon-core v1.11.0
  Compiling minimal-lexical v0.2.1
  Compiling crossbeam-deque v0.8.3
  Compiling nom v7.1.3
  Compiling crossbeam-channel v0.5.8
  Compiling wayland-commons v0.29.5
  Compiling fdeflate v0.3.0
  Compiling num_cpus v1.16.0
  Compiling memoffset v0.7.1
  Compiling png v0.17.10
error[E0635]: unknown feature `stdsimd`
 --> /home/censored/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.7.6/src/lib.rs:33:42
  |
33 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
  |                                          ^^^^^^^

For more information about this error, try `rustc --explain E0635`.
error: could not compile `ahash` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `birdy v0.1.10`, intermediate artifacts can be found at `/tmp/cargo-installvd5Nyo`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Even though I didn't reproduce that failure I eliminated the following warning:

warning: package `ahash v0.7.6` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked
warning: package `ahash v0.8.3` in Cargo.lock is yanked in registry `crates-io`, consider running without --locked

which apparently triggered:

error[E0635]: unknown feature `stdsimd`
 --> /home/censored/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ahash-0.7.6/src/lib.rs:33:42
  |
33 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]
  |                                          ^^^^^^^

So can you please try one more time?:

cargo install birdy --locked

Now it compiles and runs successfully 👍