Build failure on Rust/Cargo 1.67.0
I'm trying to build from source, but I'm getting a rather confusing build error:
Compiling gsk4-sys v0.5.0 (https://github.com/gtk-rs/gtk4-rs#fcf8682b)
Compiling gtk4-sys v0.5.0 (https://github.com/gtk-rs/gtk4-rs#fcf8682b)
Compiling libadwaita-sys v0.2.0 (https://gitlab.gnome.org/World/Rust/libadwaita-rs#01881b0c)
Compiling zvariant v3.6.0
Compiling hyper v0.14.20
error[E0308]: mismatched types
--> /home/hugo/.local/state/cargo/registry/src/github.com-1ecc6299db9ec823/bluer-0.15.0/src/sys.rs:188:38
|
188 | pub const RFCOMMCREATEDEV: c_ulong = request_code_write!('R', 200, size_of::<c_int>());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32`
|
= note: this error originates in the macro `ioc` which comes from the expansion of the macro `request_code_write` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0308]: mismatched types
--> /home/hugo/.local/state/cargo/registry/src/github.com-1ecc6299db9ec823/bluer-0.15.0/src/sys.rs:189:39
|
189 | pub const RFCOMMRELEASEDEV: c_ulong = request_code_write!('R', 201, size_of::<c_int>());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `u64`, found `i32`
|
= note: this error originates in the macro `ioc` which comes from the expansion of the macro `request_code_write` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0308`.
I tried cloning the bluer
library and running cargo build
for it and it works -- so I don't see anything obviously broken that would impede it building.
Any ideas on what might be off?