From 1623bf4188c35095991ae26a877613b0ae5a4399 Mon Sep 17 00:00:00 2001 From: richerfu Date: Tue, 24 Sep 2024 11:49:38 +0800 Subject: [PATCH 01/11] feat(ci): add OpenHarmony ci support --- .github/workflows/ci.yml | 60 +++++++++++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d24ef46c1c..94000d9187 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,20 +43,22 @@ jobs: matrix: rust_version: [1.70.0, stable, nightly] platform: - - { target: x86_64-pc-windows-msvc, os: windows-latest, } - - { target: i686-pc-windows-msvc, os: windows-latest, } - - { target: i686-pc-windows-msvc, os: windows-latest, options: --no-default-features, features: wgl } - - { target: i686-pc-windows-msvc, os: windows-latest, options: --no-default-features, features: egl } - - { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu } - - { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu } - - { target: i686-unknown-linux-gnu, os: ubuntu-latest, } - - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, } - - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland,x11" } - - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland" } - - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,x11" } - - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: glx } - - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - - { target: x86_64-apple-darwin, os: macos-latest, } + - { target: x86_64-pc-windows-msvc, os: windows-latest, } + - { target: i686-pc-windows-msvc, os: windows-latest, } + - { target: i686-pc-windows-msvc, os: windows-latest, options: --no-default-features, features: wgl } + - { target: i686-pc-windows-msvc, os: windows-latest, options: --no-default-features, features: egl } + - { target: x86_64-pc-windows-gnu, os: windows-latest, host: -x86_64-pc-windows-gnu } + - { target: i686-pc-windows-gnu, os: windows-latest, host: -i686-pc-windows-gnu } + - { target: i686-unknown-linux-gnu, os: ubuntu-latest, } + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, } + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland,x11" } + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland" } + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,x11" } + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: glx } + - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } + - { target: x86_64-apple-darwin, os: macos-latest, } exclude: # Android is tested on stable-3 - rust_version: '1.70.0' @@ -100,15 +102,38 @@ jobs: if: contains(matrix.platform.target, 'android') run: cargo +stable install cargo-apk + - name: Setup OpenHarmony SDK + id: setup_sdk + if: contains(matrix.platform.target, 'ohos') + uses: openharmony-rs/setup-ohos-sdk@v0.1 + with: + version: "4.1" + components: "native;toolchains;ets;js;previewer" + fixup-path: true + + - name: Install ohrs + if: contains(matrix.platform.target, 'ohos') + run: cargo +stable install ohrs + - name: Build tests shell: bash + if: ${{ !contains(matrix.platform.target, 'ohos') }} run: cargo $CMD test -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES + + - name: Build ohos tests + shell: bash + if: contains(matrix.platform.target, 'ohos') + run: ohrs cargo test -- -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES + env: + OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.ohos_sdk_native }} + - name: Run tests shell: bash if: ( !contains(matrix.platform.target, 'android') && !contains(matrix.platform.target, 'ios') && - !contains(matrix.platform.target, 'wasm32')) + !contains(matrix.platform.target, 'wasm32') && + !contains(matrix.platform.target, 'ohos')) run: cargo test --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES - name: Check documentation @@ -117,6 +142,9 @@ jobs: - name: Lint with clippy shell: bash - if: (matrix.rust_version == '1.70.0') && !contains(matrix.platform.options, '--no-default-features') + if: ( + (matrix.rust_version == '1.70.0') && + !contains(matrix.platform.options, '--no-default-features') && + !contains(matrix.platform.target, 'ohos')) run: cargo clippy --workspace --all-targets --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES -- -Dwarnings From 09aa037a462422841cff4f4deac63e980ff856a3 Mon Sep 17 00:00:00 2001 From: richerfu Date: Tue, 24 Sep 2024 11:54:23 +0800 Subject: [PATCH 02/11] skip ohos for 1.70.0 --- .github/workflows/ci.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 94000d9187..b1d2d4d809 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,10 +62,16 @@ jobs: exclude: # Android is tested on stable-3 - rust_version: '1.70.0' - platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } + platform: + - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } + - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } include: - rust_version: '1.70.0' - platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } + platform: + - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } + - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } env: From b053aa9d8a77d8d3130e28c5adfbe667b361a88c Mon Sep 17 00:00:00 2001 From: richerfu Date: Tue, 24 Sep 2024 12:00:58 +0800 Subject: [PATCH 03/11] update ci --- .github/workflows/ci.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1d2d4d809..6d44ad048e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,10 +68,7 @@ jobs: - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } include: - rust_version: '1.70.0' - platform: - - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } - - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } env: From 59af57de9bd502ad2cc4972482c3583bef8677a9 Mon Sep 17 00:00:00 2001 From: richerfu Date: Tue, 24 Sep 2024 14:14:19 +0800 Subject: [PATCH 04/11] update ci --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6d44ad048e..45450d5342 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -62,10 +62,11 @@ jobs: exclude: # Android is tested on stable-3 - rust_version: '1.70.0' - platform: - - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } - - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } + - rust_version: '1.70.0' + platform: { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - rust_version: '1.70.0' + platform: { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } include: - rust_version: '1.70.0' platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } @@ -112,7 +113,6 @@ jobs: with: version: "4.1" components: "native;toolchains;ets;js;previewer" - fixup-path: true - name: Install ohrs if: contains(matrix.platform.target, 'ohos') @@ -128,7 +128,7 @@ jobs: if: contains(matrix.platform.target, 'ohos') run: ohrs cargo test -- -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES env: - OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.ohos_sdk_native }} + OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.OHOS_BASE_SDK_HOME }} - name: Run tests shell: bash From 50d58b26804090bb588c58a766185b0d3019e9be Mon Sep 17 00:00:00 2001 From: richerfu Date: Tue, 24 Sep 2024 14:14:43 +0800 Subject: [PATCH 05/11] update ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45450d5342..327cee922b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -128,7 +128,7 @@ jobs: if: contains(matrix.platform.target, 'ohos') run: ohrs cargo test -- -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES env: - OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.OHOS_BASE_SDK_HOME }} + OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.ohos-base-sdk-home }} - name: Run tests shell: bash From 5b6579ed6fe8facc99b97b89d84135bc7dd0d572 Mon Sep 17 00:00:00 2001 From: richerfu Date: Tue, 24 Sep 2024 14:36:42 +0800 Subject: [PATCH 06/11] fix: support test --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 327cee922b..b04fab7061 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,8 +55,8 @@ jobs: - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,x11" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: glx } - - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } - - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: aarch } + - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: x64 } - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - { target: x86_64-apple-darwin, os: macos-latest, } exclude: @@ -64,9 +64,9 @@ jobs: - rust_version: '1.70.0' platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - rust_version: '1.70.0' - platform: { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + platform: { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: aarch } - rust_version: '1.70.0' - platform: { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + platform: { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: x64 } include: - rust_version: '1.70.0' platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } @@ -126,7 +126,7 @@ jobs: - name: Build ohos tests shell: bash if: contains(matrix.platform.target, 'ohos') - run: ohrs cargo test -- -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES + run: ohrs cargo test --arch=${{ matrix.platform.arch }} -- -p glutin --no-run --verbose $OPTIONS --features $FEATURES env: OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.ohos-base-sdk-home }} From 8c758bf349799e842c2dbe5664b30ae9b28b5d69 Mon Sep 17 00:00:00 2001 From: richerfu Date: Wed, 25 Sep 2024 15:26:08 +0800 Subject: [PATCH 07/11] update ci --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b04fab7061..5b040c90ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,8 +55,8 @@ jobs: - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,x11" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: glx } - - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: aarch } - - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: x64 } + - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - { target: x86_64-apple-darwin, os: macos-latest, } exclude: @@ -64,9 +64,9 @@ jobs: - rust_version: '1.70.0' platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - rust_version: '1.70.0' - platform: { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: aarch } + platform: { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } - rust_version: '1.70.0' - platform: { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl, arch: x64 } + platform: { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } include: - rust_version: '1.70.0' platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } @@ -126,7 +126,7 @@ jobs: - name: Build ohos tests shell: bash if: contains(matrix.platform.target, 'ohos') - run: ohrs cargo test --arch=${{ matrix.platform.arch }} -- -p glutin --no-run --verbose $OPTIONS --features $FEATURES + run: ohrs cargo test --disable-target -- -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES env: OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.ohos-base-sdk-home }} From 107e13c60e10ef6d612410ee0bdbf39e241edb92 Mon Sep 17 00:00:00 2001 From: richerfu Date: Wed, 25 Sep 2024 15:58:23 +0800 Subject: [PATCH 08/11] docs: add docs --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f613522474..29344aefd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ - Properly set up OpenGL-specific stuff on the `NSView`, instead of relying on Winit to do it. - Added `OpenHarmony` platform support with EGL. - Added support for `Display::create_pbuffer_surface()` in WGL via `WGL_ARB_pbuffer`. +- Added `OpenHarmony` platform some logic for CI. # Version 0.32.0 From 91b5321bf7d1b978a29e200593f702a5500caf85 Mon Sep 17 00:00:00 2001 From: richerfu Date: Thu, 26 Sep 2024 11:06:31 +0800 Subject: [PATCH 09/11] upgrade ci --- .github/workflows/ci.yml | 43 ++++++---------------------------------- glutin-winit/build.rs | 3 ++- 2 files changed, 8 insertions(+), 38 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b040c90ce..6252d1cfac 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: strategy: fail-fast: false matrix: - rust_version: [1.70.0, stable, nightly] + rust_version: [1.78.0, stable, nightly] platform: - { target: x86_64-pc-windows-msvc, os: windows-latest, } - { target: i686-pc-windows-msvc, os: windows-latest, } @@ -55,20 +55,16 @@ jobs: - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,wayland" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: "egl,x11" } - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, options: --no-default-features, features: glx } - - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } - - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } + - { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, } + - { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, } - { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - { target: x86_64-apple-darwin, os: macos-latest, } exclude: # Android is tested on stable-3 - - rust_version: '1.70.0' + - rust_version: '1.78.0' platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } - - rust_version: '1.70.0' - platform: { target: aarch64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } - - rust_version: '1.70.0' - platform: { target: x86_64-unknown-linux-ohos, os: ubuntu-latest, options: --no-default-features, features: egl } include: - - rust_version: '1.70.0' + - rust_version: '1.78.0' platform: { target: aarch64-linux-android, os: ubuntu-latest, cmd: 'apk --' } @@ -106,30 +102,6 @@ jobs: if: contains(matrix.platform.target, 'android') run: cargo +stable install cargo-apk - - name: Setup OpenHarmony SDK - id: setup_sdk - if: contains(matrix.platform.target, 'ohos') - uses: openharmony-rs/setup-ohos-sdk@v0.1 - with: - version: "4.1" - components: "native;toolchains;ets;js;previewer" - - - name: Install ohrs - if: contains(matrix.platform.target, 'ohos') - run: cargo +stable install ohrs - - - name: Build tests - shell: bash - if: ${{ !contains(matrix.platform.target, 'ohos') }} - run: cargo $CMD test -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES - - - name: Build ohos tests - shell: bash - if: contains(matrix.platform.target, 'ohos') - run: ohrs cargo test --disable-target -- -p glutin --no-run --verbose --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES - env: - OHOS_NDK_HOME: ${{ steps.setup_sdk.outputs.ohos-base-sdk-home }} - - name: Run tests shell: bash if: ( @@ -145,9 +117,6 @@ jobs: - name: Lint with clippy shell: bash - if: ( - (matrix.rust_version == '1.70.0') && - !contains(matrix.platform.options, '--no-default-features') && - !contains(matrix.platform.target, 'ohos')) + if: matrix.rust_version == '1.70.0' && !contains(matrix.platform.options, '--no-default-features') run: cargo clippy --workspace --all-targets --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES -- -Dwarnings diff --git a/glutin-winit/build.rs b/glutin-winit/build.rs index 32078de541..8c94c6d73f 100644 --- a/glutin-winit/build.rs +++ b/glutin-winit/build.rs @@ -7,11 +7,12 @@ fn main() { cfg_aliases! { // Systems. android_platform: { target_os = "android" }, + ohos_platform: { target_env = "ohos" }, wasm_platform: { target_family = "wasm" }, macos_platform: { target_os = "macos" }, ios_platform: { target_os = "ios" }, apple: { any(ios_platform, macos_platform) }, - free_unix: { all(unix, not(apple), not(android_platform)) }, + free_unix: { all(unix, not(apple), not(android_platform), not(ohos_platform)) }, // Native displays. x11_platform: { all(feature = "x11", free_unix, not(wasm_platform)) }, From a2672cb08ee68084f4e2f28208d2b7de52455302 Mon Sep 17 00:00:00 2001 From: richerfu Date: Thu, 26 Sep 2024 11:08:58 +0800 Subject: [PATCH 10/11] upgrade ci --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6252d1cfac..22cc7d02e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,6 +117,6 @@ jobs: - name: Lint with clippy shell: bash - if: matrix.rust_version == '1.70.0' && !contains(matrix.platform.options, '--no-default-features') + if: matrix.rust_version == '1.78.0' && !contains(matrix.platform.options, '--no-default-features') run: cargo clippy --workspace --all-targets --target ${{ matrix.platform.target }} $OPTIONS --features $FEATURES -- -Dwarnings From b37b4522620210da40c14313712482bf4386e134 Mon Sep 17 00:00:00 2001 From: richerfu Date: Thu, 26 Sep 2024 11:15:08 +0800 Subject: [PATCH 11/11] fix: windows clippy warning --- glutin_wgl_sys/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/glutin_wgl_sys/src/lib.rs b/glutin_wgl_sys/src/lib.rs index c9d8048b77..3606fea6fb 100644 --- a/glutin_wgl_sys/src/lib.rs +++ b/glutin_wgl_sys/src/lib.rs @@ -3,6 +3,7 @@ #![allow(clippy::missing_safety_doc)] #![allow(clippy::manual_non_exhaustive)] #![allow(clippy::unnecessary_cast)] +#![allow(unused_imports)] /// WGL bindings pub mod wgl {