From 59d45a5440aaa46c7dc8f3dc70c8518167c10418 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 26 Feb 2020 12:34:34 +0100 Subject: Refactor texture atlas - Split into multiple modules - Rename some concepts - Change API details --- wgpu/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'wgpu/src/lib.rs') diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 4f2b732d..832da31d 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -19,13 +19,14 @@ //! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs //! [WebGPU API]: https://gpuweb.github.io/gpuweb/ //! [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph -#![deny(missing_docs)] +//#![deny(missing_docs)] #![deny(missing_debug_implementations)] #![deny(unused_results)] #![forbid(unsafe_code)] #![forbid(rust_2018_idioms)] pub mod defaults; pub mod settings; +pub mod texture; pub mod triangle; pub mod widget; pub mod window; -- cgit From deedf6e8b66c5564c020dd61b72fdc71d8dd1eae Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Wed, 26 Feb 2020 20:36:52 +0100 Subject: Make new `texture` module private for now --- wgpu/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wgpu/src/lib.rs') diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 832da31d..a807b44d 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -19,14 +19,13 @@ //! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs //! [WebGPU API]: https://gpuweb.github.io/gpuweb/ //! [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph -//#![deny(missing_docs)] +#![deny(missing_docs)] #![deny(missing_debug_implementations)] #![deny(unused_results)] #![forbid(unsafe_code)] #![forbid(rust_2018_idioms)] pub mod defaults; pub mod settings; -pub mod texture; pub mod triangle; pub mod widget; pub mod window; @@ -37,6 +36,7 @@ mod quad; mod renderer; mod target; mod text; +mod texture; mod transformation; mod viewport; -- cgit From 4e7159c22c6be90f61aa715d5eb6811f805cb597 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Feb 2020 14:38:42 +0100 Subject: Stop creating image pipeline when unnecessary --- wgpu/src/lib.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'wgpu/src/lib.rs') diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index a807b44d..1d63abbf 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -30,13 +30,11 @@ pub mod triangle; pub mod widget; pub mod window; -mod image; mod primitive; mod quad; mod renderer; mod target; mod text; -mod texture; mod transformation; mod viewport; @@ -52,6 +50,11 @@ pub use viewport::Viewport; #[doc(no_inline)] pub use widget::*; -pub(crate) use self::image::Image; pub(crate) use quad::Quad; pub(crate) use transformation::Transformation; + +#[cfg(any(feature = "image", feature = "svg"))] +mod image; + +#[cfg(any(feature = "image", feature = "svg"))] +pub(crate) use self::image::Image; -- cgit From 88d4cd097044077127e1b3aa8fcb04afed185491 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 28 Feb 2020 14:41:07 +0100 Subject: Remove unnecessary `pub(crate) use` --- wgpu/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) (limited to 'wgpu/src/lib.rs') diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index 1d63abbf..4e0cbc60 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -55,6 +55,3 @@ pub(crate) use transformation::Transformation; #[cfg(any(feature = "image", feature = "svg"))] mod image; - -#[cfg(any(feature = "image", feature = "svg"))] -pub(crate) use self::image::Image; -- cgit