From 4700e54f1693bed265eac4f94fce276c7f5e77fe Mon Sep 17 00:00:00 2001 From: Jengamon Date: Wed, 21 Feb 2024 16:49:54 -0800 Subject: [PATCH] Do a little feature magic to allow to build for web (#83) * Remove default features * Enable default features for dev (testing) builds * Enable WGSL unconditionally --- Cargo.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 222c2be..4bea6a8 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,11 +8,12 @@ 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, features = ["wgsl"] } etagere = "0.2.10" cosmic-text = "0.10" 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"