tsloughter / beamup

Install and control active BEAM languages and components
https://tsloughter.github.io/beamup/
Apache License 2.0
40 stars 2 forks source link

Windows build #3

Closed tsloughter closed 3 weeks ago

tsloughter commented 1 month ago

Currently the build fails on Windows.

 Compiling beamup v0.1.0 (D:\a\beamup\beamup)
error[E0433]: failed to resolve: use of undeclared crate or module `windows_sys`
  --> src\run.rs:31:9
   |
31 |     use windows_sys::Win32::Foundation::{BOOL, FALSE, TRUE};
   |         ^^^^^^^^^^^ use of undeclared crate or module `windows_sys`

error[E0433]: failed to resolve: use of undeclared crate or module `windows_sys`
  --> src\run.rs:32:9
   |
32 |     use windows_sys::Win32::System::Console::SetConsoleCtrlHandler;
   |         ^^^^^^^^^^^ use of undeclared crate or module `windows_sys`

error[E0433]: failed to resolve: use of undeclared crate or module `io`
  --> src\run.rs:40:24
   |
40 |             return Err(io::Error::new(
   |                        ^^ use of undeclared crate or module `io`
   |
help: consider importing one of these items
   |
1  + use clap::Error;
   |
1  + use clap::error::Error;
   |
1  + use core::error::Error;
   |
1  + use core::fmt::Error;
   |
     and 13 other candidates
help: if you import `Error`, refer to it directly
   |
40 -             return Err(io::Error::new(
40 +             return Err(Error::new(
   |

error[E0433]: failed to resolve: use of undeclared crate or module `io`
  --> src\run.rs:41:17
   |
41 |                 io::ErrorKind::Other,
   |                 ^^ use of undeclared crate or module `io`
   |
help: consider importing one of these items
   |
1  + use clap::error::ErrorKind;
   |
1  + use std::io::ErrorKind;
   |
1  + use tokio::io::ErrorKind;
   |
1  + use ureq::ErrorKind;
   |
help: if you import `ErrorKind`, refer to it directly
   |
41 -                 io::ErrorKind::Other,
41 +                 ErrorKind::Other,
   |

error[E0308]: mismatched types
  --> src\run.rs:47:5
   |
30 | fn exec(cmd: &mut Command) -> Result<(), Report> {
   |                               ------------------ expected `Result<(), ErrReport>` because of return type
...
47 |     cmd.status()
   |     ^^^^^^^^^^^^ expected `Result<(), Report>`, found `Result<ExitStatus, Error>`
   |
   = note: expected enum `Result<(), ErrReport>`
              found enum `Result<ExitStatus, std::io::Error>`