diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 27ab336..0a431b3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,6 +24,10 @@ jobs: steps: - uses: actions/checkout@v3 - name: Build - run: cargo build --verbose --all-features - - name: Run tests - run: cargo test --verbose --all-features + run: cargo build --verbose + - name: Run tests - frida + run: cargo test --verbose + + # - name: Run tests - frida + # if: matrix.os == 'windows-latest' + # run: cargo test --verbose --no-default-features --features managed_lib diff --git a/Cargo.toml b/Cargo.toml index 8210136..9d184e4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,7 +12,7 @@ path = "src/main.rs" [features] default = ["frida"] -dll_proxy = [] +# dll_proxy = [] managed_lib = ["dep:windows-sys"] # unmanaged_lib = [], frida = ["dep:frida", "dep:lazy_static", "dep:serde", "dep:serde_json"] diff --git a/build.rs b/build.rs index 8d9a5b8..7eca58d 100644 --- a/build.rs +++ b/build.rs @@ -28,9 +28,8 @@ fn main() { }; for e in exports.iter() { - // println!("cargo:warning=Exported function: {} => {}-orig.{}", e, lib_name, e); + println!("cargo:warning=Exported function: {} => {}-orig.{}", e, lib_name, e); println!("cargo:rustc-link-arg=/export:{}={}-orig.{}", e, lib_name, e); - // println!("cargo:rustc-link-lib=dylib={}-orig", lib_name); } println!("cargo:warning=Expected library name: {}-orig.dll", lib_name); println!("cargo:rustc-env=LIB_NAME={}-orig.dll", lib_name); diff --git a/src/lib.rs b/src/lib.rs index 7f16f71..cd1c1d5 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -51,6 +51,7 @@ extern "system" fn DllMain(dll_module: *mut c_void, call_reason: u32, _: *mut () mod tests { use pretty_assertions::assert_eq; use std::process::Command; + #[cfg(all(windows, feature = "frida"))] use std::fs; #[test]