From ca1067d41e14f510a47a9d5af3caef17ecda31f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nazari=CC=81=20Gonza=CC=81lez?= Date: Sat, 30 Sep 2023 20:53:25 +0100 Subject: [PATCH] fix color serialization --- Cargo.lock | 1 + Cargo.toml | 2 +- crates/notan_graphics/Cargo.toml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 7add8a31..1fc2d760 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1730,6 +1730,7 @@ dependencies = [ "notan_math", "notan_utils", "parking_lot", + "serde", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 7511196b..d2b6b320 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -93,7 +93,7 @@ texture_to_file = ["notan_graphics/texture_to_file"] random = ["notan_random"] glsl-to-spirv = ["notan_macro/glsl-to-spirv", "notan_glyph?/glsl-to-spirv", "notan_draw?/glsl-to-spirv", "notan_egui?/glsl-to-spirv", "notan_text?/glsl-to-spirv"] shaderc = ["notan_macro/shaderc", "notan_glyph?/shaderc", "notan_draw?/shaderc", "notan_egui?/shaderc", "notan_text?/shaderc"] -serde = ["notan_app/serde", "notan_math/serde", "notan_core/serde", "notan_input/serde"] +serde = ["notan_app/serde", "notan_math/serde", "notan_core/serde", "notan_input/serde", "notan_graphics/serde"] [dev-dependencies] egui_demo_lib = "0.22.0" diff --git a/crates/notan_graphics/Cargo.toml b/crates/notan_graphics/Cargo.toml index 91201d11..7ec4d5d8 100644 --- a/crates/notan_graphics/Cargo.toml +++ b/crates/notan_graphics/Cargo.toml @@ -21,6 +21,7 @@ parking_lot.workspace = true image = { workspace = true, optional = true } crevice_notan = { version = "0.13.0", features = ["glam"] } +serde = { workspace = true, optional = true } [features] texture_to_file = ["notan_utils/save_file", "image/png"]