From ff7b2c399301cca9bcbc5b19a869feb3c29ef785 Mon Sep 17 00:00:00 2001 From: Nicolas Silva Date: Thu, 7 Dec 2023 11:34:08 +0100 Subject: [PATCH] Work around cbindgen issue cbindgen spins out of control if wgpu_hal reexports a wgpu_types type using pub type in stead of pub use while keeping the same name. --- wgpu-hal/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wgpu-hal/src/lib.rs b/wgpu-hal/src/lib.rs index 1da760f50c..d312566e52 100644 --- a/wgpu-hal/src/lib.rs +++ b/wgpu-hal/src/lib.rs @@ -1572,8 +1572,8 @@ pub struct AccelerationStructureTriangleTransform<'a, A: Api> { pub offset: u32, } -pub type AccelerationStructureBuildFlags = wgt::AccelerationStructureFlags; -pub type AccelerationStructureGeometryFlags = wgt::AccelerationStructureGeometryFlags; +pub use wgt::AccelerationStructureFlags as AccelerationStructureBuildFlags; +pub use wgt::AccelerationStructureGeometryFlags; bitflags::bitflags! { #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]