From f34b01519e16e554fa3bfce9858fbe57fddce021 Mon Sep 17 00:00:00 2001 From: Takashi Kitao Date: Sat, 15 Apr 2023 12:12:30 +0900 Subject: [PATCH] Changed how platforms are specified in Rust --- CHANGELOG.md | 4 ++++ crates/pyxel-core/Cargo.toml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d05598ac5..2ab38d40ad 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +# 1.9.15 + +- Changed how platforms are specified in Rust + # 1.9.14 - Modified the layout of the example #13 diff --git a/crates/pyxel-core/Cargo.toml b/crates/pyxel-core/Cargo.toml index eff54628d4..f3d5f46c76 100755 --- a/crates/pyxel-core/Cargo.toml +++ b/crates/pyxel-core/Cargo.toml @@ -32,7 +32,7 @@ rand = "0.8" rand_xoshiro = "0.6" zip = { version = "0.6", default-features = false, features = ["deflate"] } -[target.'cfg(any(target_os = "windows", target_os = "macos", target_os = "linux"))'.dependencies] +[target.'cfg(not(target_os = "emscripten"))'.dependencies] chrono = "0.4" [target.'cfg(any(target_os = "windows", target_os = "macos"))'.dependencies] @@ -42,7 +42,7 @@ sdl2 = { version = "0.35", default-features = false, features = [ "unsafe_textures", ] } -[target.'cfg(any(target_os = "linux", target_os = "emscripten"))'.dependencies] +[target.'cfg(not(any(target_os = "windows", target_os="macos")))'.dependencies] sdl2 = { version = "0.35", default-features = false, features = [ "unsafe_textures", ] }