tauri-apps / tauri-hotkey-rs

17 stars 4 forks source link

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

Open lephuongbg opened 3 years ago

lephuongbg commented 3 years ago

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;
    |
nothingismagick commented 3 years ago

Thankyou for the report!