louis030195 / screen-pipe

Turn your screen into actions (using LLMs). Inspired by adept.ai, rewind.ai, Apple Shortcut. Rust + WASM.
https://screenpi.pe
MIT License
81 stars 1 forks source link

WASM build #2

Open louis030195 opened 6 days ago

louis030195 commented 6 days ago

https://wasmedge.org/

louis030195 commented 6 days ago
error[E0432]: unresolved import `platform::Signal`
  --> /Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.4/src/lib.rs:53:9
   |
53 | pub use platform::Signal;
   |         ^^^^^^^^^^^^^^^^ no `Signal` in `platform`

error[E0412]: cannot find type `Error` in module `platform`
  --> /Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.4/src/error.rs:25:21
   |
25 | impl From<platform::Error> for Error {
   |                     ^^^^^ not found in `platform`
   |
help: consider importing one of these items
   |
1  + use core::error::Error;
   |
1  + use core::fmt::Error;
   |
1  + use crate::Error;
   |
1  + use crate::error::fmt::Error;
   |
     and 3 other candidates
help: if you import `Error`, refer to it directly
   |
25 - impl From<platform::Error> for Error {
25 + impl From<Error> for Error {
   |

error[E0412]: cannot find type `Error` in module `platform`
  --> /Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.4/src/error.rs:26:26
   |
26 |     fn from(e: platform::Error) -> Error {
   |                          ^^^^^ not found in `platform`
   |
help: consider importing one of these items
   |
1  + use core::error::Error;
   |
1  + use core::fmt::Error;
   |
1  + use crate::Error;
   |
1  + use crate::error::fmt::Error;
   |
     and 3 other candidates
help: if you import `Error`, refer to it directly
   |
26 -     fn from(e: platform::Error) -> Error {
26 +     fn from(e: Error) -> Error {
   |

error[E0433]: failed to resolve: could not find `Error` in `platform`
  --> /Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.4/src/error.rs:28:27
   |
28 |         if e == platform::Error::EEXIST {
   |                           ^^^^^ could not find `Error` in `platform`
   |
help: consider importing one of these items
   |
1  + use core::error::Error;
   |
1  + use core::fmt::Error;
   |
1  + use crate::Error;
   |
1  + use crate::error::fmt::Error;
   |
     and 3 other candidates
help: if you import `Error`, refer to it directly
   |
28 -         if e == platform::Error::EEXIST {
28 +         if e == Error::EEXIST {
   |

error[E0412]: cannot find type `Signal` in module `platform`
  --> /Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.4/src/signal.rs:22:21
   |
22 |     Other(platform::Signal),
   |                     ^^^^^^ not found in `platform`

error[E0425]: cannot find function `init_os_handler` in module `platform`
   --> /Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.4/src/lib.rs:134:25
    |
134 |         match platform::init_os_handler(overwrite) {
    |                         ^^^^^^^^^^^^^^^ not found in `platform`

error[E0425]: cannot find function `block_ctrl_c` in module `platform`
   --> /Users/louisbeaumont/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ctrlc-3.4.4/src/lib.rs:146:27
    |
146 |                 platform::block_ctrl_c().expect("Critical system error while waiting for Ctrl-C");
    |                           ^^^^^^^^^^^^ not found in `platform`

Some errors have detailed explanations: E0412, E0425, E0432, E0433.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `ctrlc` (lib) due to 7 previous errors
warning: build failed, waiting for other jobs to finish...
(base) louisbeaumont@louisbeaumontme-macbook:~/Documents/screen-pipe$ 
louis030195 commented 6 days ago

https://github.com/Detegr/rust-ctrlc

louis030195 commented 4 days ago

https://github.com/nashaofu/display-info/issues/17

louis030195 commented 4 days ago

most dependencies not wasm compatible :)