From 517995d49d99debe5a473a9a08b7b6ee4aa68468 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Fri, 1 Nov 2024 16:51:37 -0400 Subject: [PATCH] Switch Physis version to git to support WebAssembly This is not in a released version of Physis yet. --- Cargo.lock | 36 ++++++++++++++---------------------- Cargo.toml | 2 +- 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 1849485..911984b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,9 +106,9 @@ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "binrw" -version = "0.13.3" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "173901312e9850391d4d7c1318c4e099fdc037d61870fca427429830efdb4e5f" +checksum = "7d4bca59c20d6f40c2cc0802afbe1e788b89096f61bdf7aeea6bf00f10c2909b" dependencies = [ "array-init", "binrw_derive", @@ -117,9 +117,9 @@ dependencies = [ [[package]] name = "binrw_derive" -version = "0.13.3" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb515fdd6f8d3a357c8e19b8ec59ef53880807864329b1cb1cba5c53bf76557e" +checksum = "d8ba42866ce5bced2645bfa15e97eef2c62d2bdb530510538de8dd3d04efff3c" dependencies = [ "either", "proc-macro2", @@ -199,15 +199,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "cmake" -version = "0.1.51" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb1e43aa7fd152b1f968787f7dbcdeb306d1867ff373c69955211876c053f91a" -dependencies = [ - "cc", -] - [[package]] name = "codespan-reporting" version = "0.11.1" @@ -866,13 +857,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" [[package]] -name = "libz-ng-sys" +name = "libz-sys" version = "1.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f0f7295a34685977acb2e8cc8b08ee4a8dffd6cf278eeccddbe1ed55ba815d5" +checksum = "d2d16453e800a8cf6dd2fc3eb4bc99b786a9b90c663b8559a5b1a041bf89e472" dependencies = [ - "cmake", + "cc", "libc", + "pkg-config", + "vcpkg", ] [[package]] @@ -1214,14 +1207,13 @@ dependencies = [ [[package]] name = "physis" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53ea3f3a8d52b4dd21bfe3a3e0730cfdacbfa6f75ab002b60c2164fbb350c1d3" +version = "0.4.0" +source = "git+https://github.com/redstrate/Physis#f83b2013fac2c3f4c3f27fda9eb4b0a05cab8ec6" dependencies = [ "binrw", "bitflags 1.3.2", "half", - "libz-ng-sys", + "libz-sys", "modular-bitfield", "system-deps", "texture2ddecoder", @@ -1803,9 +1795,9 @@ dependencies = [ [[package]] name = "texture2ddecoder" -version = "0.0.5" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54f0e5ca5dceb9b44d0f376de51782277c25fb42ffe1dad08d847f3a156d26d9" +checksum = "3d82f195862d86c369d24dfcaaad28334b374be46590375113ad74aeb4e1184c" dependencies = [ "paste", ] diff --git a/Cargo.toml b/Cargo.toml index 023a705..ecb1414 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -33,7 +33,7 @@ reqwest = { version = "0.12" } zip = { version = "2.2", default-features = false } # Exporting propietary game data -physis = { version = "0.3" } +physis = { git = "https://github.com/redstrate/Physis" } # Encoding the character archive to base64 so the browser can download it and decoding the base64 images from the c lient base64 = { version = "0.22", default-features = false }