diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 41f9e18..2c7a782 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,11 +44,22 @@ jobs: - run: cargo test --features debug - run: cargo test --features global - run: cargo test --release + env: + CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: true + - run: cargo test --release + env: + CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: false - run: cargo test --features debug --release + env: + CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: true - run: RUSTFLAGS='--cfg test_lots' cargo test --release shell: bash + env: + CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: true - run: RUSTFLAGS='--cfg test_lots' cargo test --release --features debug shell: bash + env: + CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS: true rustfmt: name: Rustfmt diff --git a/Cargo.toml b/Cargo.toml index 66abd58..5c5b3bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,7 +35,7 @@ compiler_builtins = { version = '0.1.0', optional = true } cfg-if = "1.0" [target.'cfg(target_os = "windows")'.dependencies.windows-sys] -version = "0.52.0" +version = ">=0.52.0, <=0.59.*" features = [ "Win32_Foundation", "Win32_System_Memory", diff --git a/build.rs b/build.rs deleted file mode 100644 index 20aaa4f..0000000 --- a/build.rs +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - #[cfg(feature = "debug")] - println!("cargo:rustc-cfg=debug_assertions"); -}