tauri-hotkey-rs icon indicating copy to clipboard operation
tauri-hotkey-rs copied to clipboard

Can not build on ARM 32 bit (Raspberry Pi 4)

Open lephuongbg opened this issue 4 years ago • 1 comments
trafficstars

Building this crate (during npm run tauri:build) throws following error:

error[E0308]: mismatched types
   --> /home/pi/.cargo/registry/src/github.com-1285ae84e5963aae/tauri-hotkey-sys-0.1.1/src/linux.rs:186:62
    |
186 |               let keycode = (xlib.XKeysymToKeycode)(display, key as u64) as i32;
    |                                                              ^^^^^^^^^^ expected `u32`, found `u64`
    |
help: you can convert a `u64` to a `u32` and panic if the converted value doesn't fit
    |
186 |               let keycode = (xlib.XKeysymToKeycode)(display, (key as u64).try_into().unwrap()) as i32;
    |

lephuongbg avatar Apr 27 '21 06:04 lephuongbg

Thankyou for the report!

nothingismagick avatar Apr 27 '21 06:04 nothingismagick