Skip to content

Commit

Permalink
Re-export public dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
cwfitzgerald committed Jan 15, 2024
1 parent c5a0b0b commit b76e6c1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@ pub use wgt::{
QUERY_SIZE, VERTEX_STRIDE_ALIGNMENT,
};

#[cfg(not(webgpu))]
#[doc(hidden)]
/// Re-export of our `wgpu-core` dependency.
#[cfg(wgpu_core)]
pub use ::wgc as core;
/// Re-export of our `wgpu-hal` dependency.
#[cfg(wgpu_core)]
pub use ::hal;
/// Re-export of our `naga` dependency.
#[cfg(feature = "naga")]
pub use ::naga;
#[cfg(not(webgpu))]
#[doc(hidden)]
pub use ::wgc as core;
/// Re-export of our `raw-window-handle` dependency.
pub use raw_window_handle as rwh;
/// Re-export of our `web-sys` dependency.
#[cfg(any(webgl, webgpu))]
pub use web_sys;

// wasm-only types, we try to keep as many types non-platform
// specific, but these need to depend on web-sys.
Expand Down

0 comments on commit b76e6c1

Please sign in to comment.