Package Details: hyprswitch 3.3.2-1

Git Clone URL: https://aur.archlinux.org/hyprswitch.git (read-only, click to copy)
Package Base: hyprswitch
Description: A CLI/GUI that allows switching between windows in Hyprland
Upstream URL: https://github.com/h3rmt/hyprswitch/
Keywords: hyprland
Licenses: MIT
Submitter: h3rmt
Maintainer: h3rmt
Last Packager: h3rmt
Votes: 4
Popularity: 0.77
First Submitted: 2024-02-25 22:24 (UTC)
Last Updated: 2025-02-06 07:43 (UTC)

Latest Comments

matejdro commented on 2025-02-10 19:21 (UTC)

Ah thanks for the explanation. I switched from to rust now, I had no idea about their differences.

h3rmt commented on 2025-02-10 19:11 (UTC)

The PKG BUILD uses makedepends=('cargo') to require cargo as a dependency.

Cargo is provided by rust, which contains the newest version of rust. It also is provided by rustup which is a version manager for rust.

If you use rustup to fulfill the dependency you must manually update the installed rust version using rustup as it itself doesn't ship cargo or rustc.

If you always want the newest rust tools install rust via the rust package

matejdro commented on 2025-02-10 15:34 (UTC)

Thank you!

That worked, although I kinda feel that this shouldn't be necessary? I'm not that familiar with rust ecosystem, is there a dependency here that cannot be versioned properly through PKGBUILD?

h3rmt commented on 2025-02-09 20:17 (UTC)

Rust 1.80 added support for exclusive range patterns. If you use rustup to update rust use rustup update to get the newest version of cargo and rustc

matejdro commented on 2025-02-09 06:03 (UTC)

Compiling 3.3.2 fails with experimental syntax error:

   Compiling hyprswitch v3.3.2 (/home/matej/.cache/yay/hyprswitch/src/hyprswitch-3.3.2)
error[E0658]: exclusive range pattern syntax is experimental
   --> src/daemon/gui/windows/init.rs:122:21
    |
122 |                     ..2.5 => false,
    |                     ^^^^^
    |
    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
    = help: use an inclusive range pattern, like N..=M

error[E0658]: exclusive range pattern syntax is experimental
   --> src/daemon/gui/windows/init.rs:123:21
    |
123 |                     2.5..3.9 => client.height > 800,
    |                     ^^^^^^^^
    |
    = note: see issue #37854 <https://github.com/rust-lang/rust/issues/37854> for more information
    = help: use an inclusive range pattern, like N..=M

For more information about this error, try `rustc --explain E0658`.
error: could not compile `hyprswitch` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...

My guess is that some flag needs to be enabled?