From eb20ff0ecc03931d0bd1e08bc46716e8a60905b9 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sun, 3 Apr 2022 13:12:18 -0700 Subject: [PATCH] wgpu-hal: Work around cbindgen bug: ignore `gles::egl` module. The definition of `EglInstance` trips eqrion/cbindgen#286. Since the `wgpu_hal::gles::egl` module is an implementation detail anyway, it should be harmless to ask cbindgen to just ignore it. Fixes #2575. --- wgpu-hal/src/gles/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/wgpu-hal/src/gles/mod.rs b/wgpu-hal/src/gles/mod.rs index 8c7dde0da2..eb62f70d22 100644 --- a/wgpu-hal/src/gles/mod.rs +++ b/wgpu-hal/src/gles/mod.rs @@ -56,6 +56,7 @@ To address this, we invalidate the vertex buffers based on: */ +///cbindgen:ignore #[cfg(any(not(target_arch = "wasm32"), feature = "emscripten"))] mod egl; #[cfg(all(target_arch = "wasm32", not(feature = "emscripten")))]