From af20ebc69ba7b1415d32c47199064a8f937539c1 Mon Sep 17 00:00:00 2001 From: Jengamon Date: Wed, 7 Feb 2024 05:24:54 -0800 Subject: [PATCH 1/4] Try to make wgpu configurable Maybe web support. Maybe????? --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 222c2be..01f9816 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/grovesNL/glyphon" license = "MIT OR Apache-2.0 OR Zlib" [dependencies] -wgpu = "0.19" +wgpu = { version = "0.19", default-features = false } etagere = "0.2.10" cosmic-text = "0.10" lru = "0.12.1" @@ -16,3 +16,6 @@ lru = "0.12.1" [dev-dependencies] winit = { version = "0.29.10", features = ["rwh_05"] } pollster = "0.3.0" + +[features] +default = ["wgpu/default"] From 4a54f229351e7cf61eb99adabbcfe3821d21f955 Mon Sep 17 00:00:00 2001 From: Jengamon Date: Fri, 9 Feb 2024 17:35:27 -0500 Subject: [PATCH 2/4] Remove features --- Cargo.toml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 01f9816..f064273 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,3 @@ lru = "0.12.1" [dev-dependencies] winit = { version = "0.29.10", features = ["rwh_05"] } pollster = "0.3.0" - -[features] -default = ["wgpu/default"] From 10ecde82c998a943659b03f2b33c0ee7949c0b21 Mon Sep 17 00:00:00 2001 From: Jengamon Date: Sun, 11 Feb 2024 12:03:50 -0500 Subject: [PATCH 3/4] Enable default features for dev (testing) builds --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index f064273..a5a7b6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,4 +15,5 @@ lru = "0.12.1" [dev-dependencies] winit = { version = "0.29.10", features = ["rwh_05"] } +wgpu = { version = "0.19", default-features = true } pollster = "0.3.0" From 78411469cd767837269bf1dc1606c9f8e2ad6c4a Mon Sep 17 00:00:00 2001 From: Jengamon Date: Wed, 21 Feb 2024 14:28:10 -0800 Subject: [PATCH 4/4] Enable WGSL unconditionally --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a5a7b6a..4bea6a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,7 +8,7 @@ repository = "https://github.com/grovesNL/glyphon" license = "MIT OR Apache-2.0 OR Zlib" [dependencies] -wgpu = { version = "0.19", default-features = false } +wgpu = { version = "0.19", default-features = false, features = ["wgsl"] } etagere = "0.2.10" cosmic-text = "0.10" lru = "0.12.1"