async-rs / async-std

Async version of the Rust standard library

Home Page:https://async.rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compiling Fails on Ubuntu Only

colin99d opened this issue · comments

I am getting the following error when I try to compile on Ubuntu, but not Mac or Windows:

error[E0412]: cannot find type `Arc` in this scope
  --> /home/runner/.cargo/git/checkouts/wry-0ba07c7b81cd1a87/ca7c8e4/src/webview/webkitgtk/mod.rs:46:20
   |
46 |   pending_scripts: Arc<Mutex<Option<Vec<String>>>>,
   |                    ^^^ not found in this scope
   |
help: consider importing this struct
   |
5  | use std::sync::Arc;
   |


error[E0433]: failed to resolve: use of undeclared type `Arc`
   --> /home/runner/.cargo/git/checkouts/wry-0ba07c7b81cd1a87/ca7c8e4/src/webview/webkitgtk/mod.rs:328:24
    |
328 |       pending_scripts: Arc::new(Mutex::new(Some(Vec::new()))),
    |                        ^^^ not found in this scope
    |
help: consider importing this struct
    |
5   | use std::sync::Arc;
    |


error: aborting due to 2 previous errors


Some errors have detailed explanations: E0412, E0433.

For more information about an error, try `rustc --explain E0412`.

error: could not compile `wry` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

Here is the Github action:
https://github.com/OpenBB-finance/pywry/actions/runs/3717390380/jobs/6304888828

This appears to be an issue with wry instead of async-std.

I see, thank you for the help.