tauri-apps / tauri

Build smaller, faster, and more secure desktop applications with a web frontend.
https://tauri.app
Apache License 2.0
80.08k stars 2.38k forks source link

[bug] error[E0432]: unresolved import `wry::webview::WebviewExtUnix` #8522

Open yurivict opened 6 months ago

yurivict commented 6 months ago

Describe the bug

error[E0432]: unresolved import `wry::webview::WebviewExtUnix`
    --> core/tauri-runtime-wry/src/lib.rs:2193:23
     |
2193 |                   use wry::webview::WebviewExtUnix;
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `WebviewExtUnix` in `webview`
     |
note: found an item that was configured out
    --> /usr/ports/devel/tauri/work/tauri-1.0.5/cargo-crates/wry-0.19.0/src/webview/mod.rs:576:11
     |
576  | pub trait WebviewExtUnix {
     |           ^^^^^^^^^^^^^^
     = note: the item is gated behind the `linux` feature

error[E0046]: not all trait items implemented, missing: `skip_taskbar`
   --> core/tauri-runtime-wry/src/lib.rs:730:1
    |
730 | impl WindowBuilder for WindowBuilderWrapper {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `skip_taskbar` in implementation
    |
    = help: implement the missing item: `fn skip_taskbar(self, _: bool) -> Self { todo!() }`

error[E0599]: no method named `webview` found for struct `Arc<wry::webview::WebView>` in the current scope
    --> core/tauri-runtime-wry/src/lib.rs:2194:23
     |
2194 |                   f(w.webview());
     |                       ^^^^^^^ private field, not a method

error[E0599]: no method named `gtk_window` found for enum `WindowHandle` in the current scope
    --> core/tauri-runtime-wry/src/lib.rs:2286:40
     |
1545 | enum WindowHandle {
     | ----------------- method `gtk_window` not found for this enum
...
2286 |               tx.send(GtkWindow(window.gtk_window().clone())).unwrap()
     |                                        ^^^^^^^^^^ method not found in `WindowHandle`
     |
     = help: items from traits can only be used if the trait is in scope
help: the following trait is implemented but not in scope; perhaps add a `use` for it:
     |
7    + use wry::application::platform::unix::WindowExtUnix;
     |

Some errors have detailed explanations: E0046, E0432, E0599.
For more information about an error, try `rustc --explain E0046`.
error: could not compile `tauri-runtime-wry` (lib) due to 4 previous errors

Reproduction

No response

Expected behavior

n/a

Full tauri info output

n/a

Stack trace

No response

Additional context

Version: 1.0.5 rust-1.74.1 FreeBSD 14.0

FabianLars commented 6 months ago

Is using 1.0.5 a requirement? If not i'd suggest to simply upgrade to latest 1.5.

If you have to use 1.0.5, could you share your Cargo.toml and Cargo.lock files? Or even better a full reproduction example.