diff --git a/.github/workflows/low-priority-targets.yml b/.github/workflows/low-priority-targets.yml index 505bc7a..b7a44c1 100644 --- a/.github/workflows/low-priority-targets.yml +++ b/.github/workflows/low-priority-targets.yml @@ -27,6 +27,15 @@ jobs: - name: check run: cargo check --target wasm32-wasip1 + windows: + name: check windows + runs-on: windows-latest + steps: + - uses: actions/checkout@v6 + - name: check + run: cargo check + + # some unix specific crates might reject windows while it supports this... cygwin: name: check cygwin runs-on: windows-latest diff --git a/Cargo.lock b/Cargo.lock index 722b574..7ee2017 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1254,7 +1254,6 @@ dependencies = [ "interpreter", "memchr", "parser", - "rustix", "thiserror", "tracing", "tracing-error", diff --git a/Cargo.toml b/Cargo.toml index ff19895..7bf82c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,6 @@ memchr.workspace = true thiserror.workspace = true tracing.workspace = true bumpalo.workspace = true -rustix = { version = "1.1.4", default-features = false, features = ["process"]} tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } tracing-error = "0.2.1" clap = { version = "4.6.1", features = ["derive"] } diff --git a/src/utils.rs b/src/utils.rs index ae92746..092f064 100644 --- a/src/utils.rs +++ b/src/utils.rs @@ -9,13 +9,14 @@ use std::panic::{UnwindSafe, catch_unwind, set_hook, take_hook}; use std::process::exit; use color_eyre::config::HookBuilder; -use rustix::process::{EXIT_FAILURE, EXIT_SUCCESS}; use tracing_error::ErrorLayer; use tracing_subscriber::prelude::*; type ExitCode = i32; const AWK_PANIC_CODE: ExitCode = 2; +const EXIT_FAILURE: ExitCode = 1; +const EXIT_SUCCESS: ExitCode = 0; fn install_abort_hook() { let run_hook = take_hook();