From b9a9576207ddfc7afd89da30b7cfc7ca0d7e335c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Fri, 6 Jan 2023 23:29:38 +0100 Subject: [PATCH 001/163] Remove `iced_glow`, `glyph-brush`, and `wgpu_glyph` dependencies --- Cargo.toml | 11 +- .../.gitignore | 0 .../Cargo.toml | 2 +- .../README.md | 0 .../index.html | 4 +- .../src/controls.rs | 0 .../src/main.rs | 0 .../src/scene.rs | 0 .../src/shader/frag.wgsl | 0 .../src/shader/vert.wgsl | 0 examples/integration_opengl/Cargo.toml | 12 - examples/integration_opengl/README.md | 16 - examples/integration_opengl/src/controls.rs | 101 --- examples/integration_opengl/src/main.rs | 187 ------ examples/integration_opengl/src/scene.rs | 102 --- glow/Cargo.toml | 51 -- glow/README.md | 51 -- glow/src/backend.rs | 280 --------- glow/src/image.rs | 254 -------- glow/src/image/storage.rs | 78 --- glow/src/lib.rs | 53 -- glow/src/program.rs | 133 ---- glow/src/quad.rs | 74 --- glow/src/quad/compatibility.rs | 349 ---------- glow/src/quad/core.rs | 244 ------- glow/src/settings.rs | 61 -- glow/src/shader/common/gradient.frag | 59 -- glow/src/shader/common/gradient.vert | 9 - glow/src/shader/common/image.frag | 22 - glow/src/shader/common/image.vert | 9 - glow/src/shader/common/solid.frag | 18 - glow/src/shader/common/solid.vert | 11 - glow/src/shader/compatibility/quad.frag | 83 --- glow/src/shader/compatibility/quad.vert | 46 -- glow/src/shader/core/quad.frag | 95 --- glow/src/shader/core/quad.vert | 52 -- glow/src/text.rs | 257 -------- glow/src/triangle.rs | 595 ------------------ glow/src/window.rs | 4 - glow/src/window/compositor.rs | 111 ---- graphics/Cargo.toml | 7 - graphics/src/font.rs | 35 -- graphics/src/font/source.rs | 45 -- graphics/src/lib.rs | 1 - wgpu/Cargo.toml | 4 - wgpu/src/backend.rs | 86 +-- wgpu/src/text.rs | 264 +------- 47 files changed, 30 insertions(+), 3846 deletions(-) rename examples/{integration_wgpu => integration}/.gitignore (100%) rename examples/{integration_wgpu => integration}/Cargo.toml (96%) rename examples/{integration_wgpu => integration}/README.md (100%) rename examples/{integration_wgpu => integration}/index.html (81%) rename examples/{integration_wgpu => integration}/src/controls.rs (100%) rename examples/{integration_wgpu => integration}/src/main.rs (100%) rename examples/{integration_wgpu => integration}/src/scene.rs (100%) rename examples/{integration_wgpu => integration}/src/shader/frag.wgsl (100%) rename examples/{integration_wgpu => integration}/src/shader/vert.wgsl (100%) delete mode 100644 examples/integration_opengl/Cargo.toml delete mode 100644 examples/integration_opengl/README.md delete mode 100644 examples/integration_opengl/src/controls.rs delete mode 100644 examples/integration_opengl/src/main.rs delete mode 100644 examples/integration_opengl/src/scene.rs delete mode 100644 glow/Cargo.toml delete mode 100644 glow/README.md delete mode 100644 glow/src/backend.rs delete mode 100644 glow/src/image.rs delete mode 100644 glow/src/image/storage.rs delete mode 100644 glow/src/lib.rs delete mode 100644 glow/src/program.rs delete mode 100644 glow/src/quad.rs delete mode 100644 glow/src/quad/compatibility.rs delete mode 100644 glow/src/quad/core.rs delete mode 100644 glow/src/settings.rs delete mode 100644 glow/src/shader/common/gradient.frag delete mode 100644 glow/src/shader/common/gradient.vert delete mode 100644 glow/src/shader/common/image.frag delete mode 100644 glow/src/shader/common/image.vert delete mode 100644 glow/src/shader/common/solid.frag delete mode 100644 glow/src/shader/common/solid.vert delete mode 100644 glow/src/shader/compatibility/quad.frag delete mode 100644 glow/src/shader/compatibility/quad.vert delete mode 100644 glow/src/shader/core/quad.frag delete mode 100644 glow/src/shader/core/quad.vert delete mode 100644 glow/src/text.rs delete mode 100644 glow/src/triangle.rs delete mode 100644 glow/src/window.rs delete mode 100644 glow/src/window/compositor.rs delete mode 100644 graphics/src/font.rs delete mode 100644 graphics/src/font/source.rs diff --git a/Cargo.toml b/Cargo.toml index d26ec2b6b8..42c9488cb6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,19 +14,15 @@ categories = ["gui"] [features] default = ["wgpu"] # Enables the `Image` widget -image = ["iced_wgpu?/image", "iced_glow?/image", "image_rs"] +image = ["iced_wgpu?/image", "image_rs"] # Enables the `Svg` widget -svg = ["iced_wgpu?/svg", "iced_glow?/svg"] +svg = ["iced_wgpu?/svg"] # Enables the `Canvas` widget canvas = ["iced_graphics/canvas"] # Enables the `QRCode` widget qr_code = ["iced_graphics/qr_code"] # Enables the `iced_wgpu` renderer wgpu = ["iced_wgpu"] -# Enables using system fonts -default_system_font = ["iced_wgpu?/default_system_font", "iced_glow?/default_system_font"] -# Enables the `iced_glow` renderer. Overrides `iced_wgpu` -glow = ["iced_glow", "iced_glutin"] # Enables a debug view in native platforms (press F12) debug = ["iced_winit/debug"] # Enables `tokio` as the `executor::Default` on native platforms @@ -44,7 +40,6 @@ chrome-trace = [ "iced_winit/chrome-trace", "iced_glutin?/trace", "iced_wgpu?/tracing", - "iced_glow?/tracing", ] [badges] @@ -55,7 +50,6 @@ members = [ "core", "futures", "graphics", - "glow", "glutin", "lazy", "native", @@ -72,7 +66,6 @@ iced_native = { version = "0.9", path = "native" } iced_graphics = { version = "0.7", path = "graphics" } iced_winit = { version = "0.8", path = "winit", features = ["application"] } iced_glutin = { version = "0.7", path = "glutin", optional = true } -iced_glow = { version = "0.7", path = "glow", optional = true } thiserror = "1.0" [dependencies.image_rs] diff --git a/examples/integration_wgpu/.gitignore b/examples/integration/.gitignore similarity index 100% rename from examples/integration_wgpu/.gitignore rename to examples/integration/.gitignore diff --git a/examples/integration_wgpu/Cargo.toml b/examples/integration/Cargo.toml similarity index 96% rename from examples/integration_wgpu/Cargo.toml rename to examples/integration/Cargo.toml index eaa1df7e17..200306aaa9 100644 --- a/examples/integration_wgpu/Cargo.toml +++ b/examples/integration/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "integration_wgpu" +name = "integration" version = "0.1.0" authors = ["Héctor Ramón Jiménez "] edition = "2021" diff --git a/examples/integration_wgpu/README.md b/examples/integration/README.md similarity index 100% rename from examples/integration_wgpu/README.md rename to examples/integration/README.md diff --git a/examples/integration_wgpu/index.html b/examples/integration/index.html similarity index 81% rename from examples/integration_wgpu/index.html rename to examples/integration/index.html index 461e67a41c..920bc4a063 100644 --- a/examples/integration_wgpu/index.html +++ b/examples/integration/index.html @@ -8,8 +8,8 @@

integration_wgpu