libadwaita-rs build fails with v1_3 feature
It seems that as soon as I add the v1_3
feature to libadwaita-rs, I cannot build the app anymore. You can easily reproduce this by creating a new rust project in Builder, update the gtk4-rs
and adw
crate versions and then change the adw feature to v1_3
. Build log:
Compiling libadwaita v0.3.0
error[E0308]: mismatched types
--> /var/home/melix/.var/app/org.gnome.Builder.Devel/cache/gnome-builder/projects/temptest/builds/org.gnome.Example.json-flatpak-org.gnome.Platform-master-x86_64-main/cargo-home/registry/src/github.com-1ecc6299db9ec823/libadwaita-0.3.0/src/auto/message_dialog.rs:658:22
|
658 | callback(result);
| -------- ^^^^^^ expected struct `glib::GString`, found `*const i8`
| |
| arguments to this function are incorrect
|
= note: expected struct `glib::GString`
found raw pointer `*const i8`
note: callable defined here
--> /var/home/melix/.var/app/org.gnome.Builder.Devel/cache/gnome-builder/projects/temptest/builds/org.gnome.Example.json-flatpak-org.gnome.Platform-master-x86_64-main/cargo-home/registry/src/github.com-1ecc6299db9ec823/libadwaita-0.3.0/src/auto/message_dialog.rs:649:51
|
649 | unsafe extern "C" fn choose_trampoline<P: FnOnce(glib::GString) + 'static>(
| ^^^^^^^^^^^^^^^^^^^^^
error[E0282]: type annotations needed for `&O`
--> /var/home/melix/.var/app/org.gnome.Builder.Devel/cache/gnome-builder/projects/temptest/builds/org.gnome.Example.json-flatpak-org.gnome.Platform-master-x86_64-main/cargo-home/registry/src/github.com-1ecc6299db9ec823/libadwaita-0.3.0/src/auto/message_dialog.rs:674:51
|
674 | Box_::pin(gio::GioFuture::new(self, move |obj, cancellable, send| {
| ^^^
675 | obj.choose(Some(cancellable), move |res| {
| ------ type must be known at this point
|
help: consider giving this closure parameter an explicit type, where the type for type parameter `O` is specified
|
674 | Box_::pin(gio::GioFuture::new(self, move |obj: &O, cancellable, send| {
| ++++
Some errors have detailed explanations: E0282, E0308.
For more information about an error, try `rustc --explain E0282`.