Barre / privaxy

Privaxy is the next generation tracker and advertisement blocker. It blocks ads and trackers by MITMing HTTP(s) traffic.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build in FreeBSD headless failed with `unresolved import wry::webview::WebviewExtUnix` and other misc error.

Trung0246 opened this issue · comments

I'm attempting to build privaxy on freebsd and encountered these error:

error[E0432]: unresolved import `wry::webview::WebviewExtUnix`
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:2267:23
     |
2267 |                   use wry::webview::WebviewExtUnix;
     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `WebviewExtUnix` in `webview`

   Compiling yew-router v0.16.0
error[E0046]: not all trait items implemented, missing: `skip_taskbar`
   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:693:1
    |
693 | 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 reference `&Arc<wry::webview::WebView>` in the current scope
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:2268:23
     |
2268 |                   f(w.webview());
     |                       ^^^^^^^ private field, not a method

error[E0599]: no method named `gtk_window` found for enum `WindowHandle` in the current scope
    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tauri-runtime-wry-0.12.2/src/lib.rs:2360:40
     |
1552 | enum WindowHandle {
     | ----------------- method `gtk_window` not found for this enum
...
2360 |               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;
     |

It looks like it some gtk and UI related stuff (maybe tauri webview thing) but I'm not sure. Is privaxy GUI run using gtk or with webpage dashboard? If it is the latter case then can I just build the server since my freebsd env is headless.

Maybe relevant: #74, #13

Edit: Checking the github action on how to build server only looks like I missed some flag (especially adding --bin privaxy).