From dbca7464bd38c87ba607c728bce5607bb5773d70 Mon Sep 17 00:00:00 2001 From: ice_iix Date: Sun, 5 Jul 2020 11:20:34 -0700 Subject: [PATCH] Enable static CRT (in git), closes #318 --- .cargo/config | 8 ++++++++ .github/workflows/build.yaml | 6 ------ README.md | 2 -- 3 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 .cargo/config diff --git a/.cargo/config b/.cargo/config new file mode 100644 index 0000000..b59522c --- /dev/null +++ b/.cargo/config @@ -0,0 +1,8 @@ +[target.x86_64-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] + +[target.i686-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] + +[target.i586-pc-windows-msvc] +rustflags = ["-Ctarget-feature=+crt-static"] diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5323758..e89aeae 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -19,12 +19,6 @@ jobs: with: toolchain: stable default: true - - name: (Windows) Enable static CRT linkage # https://stackoverflow.com/a/44387312/7653274 - if: matrix.os == 'windows-latest' - run: | - mkdir .cargo - echo '[target.x86_64-pc-windows-msvc]' >> .cargo/config - echo 'rustflags = ["-Ctarget-feature=+crt-static"]' >> .cargo/config - name: (Linux) Install libxcb-composite if: matrix.os == 'ubuntu-latest' run: | diff --git a/README.md b/README.md index 44a7db1..5df806c 100644 --- a/README.md +++ b/README.md @@ -59,8 +59,6 @@ Support for older protocols will _not_ be dropped as newer protocols are added. Windows users can download pre-compiled builds from here: https://ci.appveyor.com/project/iceiix/stevenarella (Select your platform, Click the artifacts tab and download Steven.zip) -The Visual Studio 2017 Redistributable is required to run these builds. - ## Building Requires Rust stable version 1.44.1 or newer to build.