diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..e7324fc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,179 @@ +name: CI + +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: read + +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + +jobs: + flake: + name: Nix flake + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v6 + + - uses: DeterminateSystems/determinate-nix-action@v3 + + - name: Evaluate flake + run: nix flake check --no-build + + native: + name: Native C++ + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v6 + + - uses: DeterminateSystems/determinate-nix-action@v3 + + - name: Configure and build + run: | + nix develop .#native --command bash -c ' + set -euo pipefail + cmake --preset linux-release + cmake --build --preset linux-release --parallel + cmake --install out/build/linux-release --prefix out/install/linux-release + ' + + - name: Upload native artifact + uses: actions/upload-artifact@v7 + with: + name: ysmparser-linux-native + path: out/install/linux-release/ + if-no-files-found: error + + web: + name: Browser WASM + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v6 + + - uses: DeterminateSystems/determinate-nix-action@v3 + + - name: Build browser app + run: nix develop .#wasm --command bash public/scripts/build-web.sh + + - name: Upload web artifact + uses: actions/upload-artifact@v7 + with: + name: ysmparser-web + path: public/dist/ + if-no-files-found: error + + tauri: + name: Tauri desktop + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v6 + + - uses: DeterminateSystems/determinate-nix-action@v3 + + - name: Build sidecar and Tauri shell + run: | + nix develop .#tauri --command bash -c ' + set -euo pipefail + cmake -S . -B build-cpp -G Ninja -DCMAKE_BUILD_TYPE=Release -DYSM_TARGET_JNI=OFF + cmake --build build-cpp --parallel + mkdir -p public/src-tauri/binaries + cp build-cpp/YSMParser/YSMParser public/src-tauri/binaries/YSMParser-x86_64-unknown-linux-gnu + chmod +x public/src-tauri/binaries/YSMParser-x86_64-unknown-linux-gnu + cd public + pnpm install --frozen-lockfile + pnpm build + cargo build --manifest-path src-tauri/Cargo.toml --locked --release + ' + + - name: Upload Tauri artifact + uses: actions/upload-artifact@v7 + with: + name: ysmparser-tauri-linux + path: public/src-tauri/target/release/ysm-parser + if-no-files-found: error + + tauri-windows-macos: + name: Tauri desktop (${{ matrix.label }}) + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + include: + - label: Windows x64 + os: windows-2022 + msvc_arch: x64 + sidecar_source: build-cpp/YSMParser/YSMParser.exe + sidecar_name: YSMParser-x86_64-pc-windows-msvc.exe + bundles: nsis + artifact_name: ysmparser-tauri-windows-x64 + - label: macOS arm64 + os: macos-14 + sidecar_source: build-cpp/YSMParser/YSMParser + sidecar_name: YSMParser-aarch64-apple-darwin + bundles: dmg + artifact_name: ysmparser-tauri-macos-arm64 + steps: + - uses: actions/checkout@v6 + + - uses: seanmiddleditch/gha-setup-ninja@v5 + + - name: Setup MSVC environment + if: runner.os == 'Windows' + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.msvc_arch }} + + - name: Configure Rust MSVC linker + if: runner.os == 'Windows' + shell: pwsh + run: | + $linker = Join-Path $env:VCToolsInstallDir 'bin\Hostx64\x64\link.exe' + if (-not (Test-Path $linker)) { + throw "MSVC linker not found: $linker" + } + "CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER=$linker" | Out-File -FilePath $env:GITHUB_ENV -Append -Encoding utf8 + Write-Host "Using Rust MSVC linker: $linker" + + - name: Setup Rust + uses: dtolnay/rust-toolchain@stable + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 11 + + - name: Setup Node.js + uses: actions/setup-node@v6 + with: + node-version: 24 + cache: pnpm + cache-dependency-path: public/pnpm-lock.yaml + + - name: Build sidecar and Tauri bundle + shell: bash + run: | + set -euo pipefail + cmake -S . -B build-cpp -G Ninja -DCMAKE_BUILD_TYPE=Release -DYSM_TARGET_JNI=OFF + cmake --build build-cpp --parallel + mkdir -p public/src-tauri/binaries + cp "${{ matrix.sidecar_source }}" "public/src-tauri/binaries/${{ matrix.sidecar_name }}" + if [[ "${{ runner.os }}" != "Windows" ]]; then + chmod +x "public/src-tauri/binaries/${{ matrix.sidecar_name }}" + fi + cd public + pnpm install --frozen-lockfile + pnpm tauri build --bundles "${{ matrix.bundles }}" + + - name: Upload Tauri bundle + uses: actions/upload-artifact@v7 + with: + name: ${{ matrix.artifact_name }} + path: | + public/src-tauri/target/release/bundle/nsis/*.exe + public/src-tauri/target/release/bundle/dmg/*.dmg + if-no-files-found: error diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..c0f3c55 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,10 @@ +{ + "cSpell.words": [ + "BLOCKBENCH", + "Blockbench's", + "initialised", + "openysm", + "tauri", + "ysmparser" + ] +} diff --git a/CMakeLists.txt b/CMakeLists.txt index e25c011..0466337 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ string(STRIP "${YSM_PARSER_VERSION_RAW}" YSM_PARSER_VERSION) project("YSMParser" VERSION ${YSM_PARSER_VERSION}) option(YSM_TARGET_WASM "Build a WebAssembly/Node.js target with Emscripten" OFF) +option(YSM_WASM_SIMD "Enable WebAssembly SIMD code generation" OFF) set(YSM_WASM_ENV "node" CACHE STRING "Emscripten runtime environment (node or web)") set_property(CACHE YSM_WASM_ENV PROPERTY STRINGS node web) diff --git a/CMakePresets.json b/CMakePresets.json index 2291f8b..77cde24 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -38,7 +38,9 @@ "cacheVariables": { "CMAKE_BUILD_TYPE": "Release", "CMAKE_TOOLCHAIN_FILE": "$env{EMSDK}/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake", - "YSM_TARGET_WASM": "ON" + "CMAKE_CXX_SCAN_FOR_MODULES": "OFF", + "YSM_TARGET_WASM": "ON", + "YSM_WASM_SIMD": "OFF" } }, { diff --git a/README.md b/README.md index b2044bc..a51fe31 100644 --- a/README.md +++ b/README.md @@ -143,6 +143,24 @@ WASM构建需要EMSDK环境变量指向Emscripten安装目录。 | `json` | | `CLI11` | +### 新前端构建(/public) + +```bash +# 安装依赖 +cd public && pnpm install + +# 网页端(静态文件) +pnpm build +# 构建输出在 public/dist/,将 YSMParser.js 和 YSMParser.wasm (wasm-web-release 构建产物) 一起放入即可使用 + +# Tauri 桌面应用(开发模式) +pnpm tauri dev + +# Tauri 桌面应用(发行构建) +# 先将 YSMParser 可执行文件放入 public/src-tauri/binaries/YSMParser- +pnpm tauri build +``` + ## English @@ -269,3 +287,22 @@ All dependencies are vendored in source form under `external`. | `fpng` | | `json` | | `CLI11` | + +### New Frontend Build (/public) + +```bash +# Install dependencies +cd public && pnpm install + +# Web service (static files) +pnpm build +# Output is in public/dist/ — place YSMParser.js and YSMParser.wasm +# (from the wasm-web-release build) alongside it before serving + +# Tauri desktop app (development) +pnpm tauri dev + +# Tauri desktop app (release build) +# First copy the YSMParser binary to public/src-tauri/binaries/YSMParser- +pnpm tauri build +``` diff --git a/YSMParser/CMakeLists.txt b/YSMParser/CMakeLists.txt index c347d33..6341957 100644 --- a/YSMParser/CMakeLists.txt +++ b/YSMParser/CMakeLists.txt @@ -33,6 +33,12 @@ if (YSM_TARGET_WASM) "-fexceptions" ) + if (YSM_WASM_SIMD) + target_compile_options(YSMParser PRIVATE + "-msimd128" + ) + endif() + target_link_options(YSMParser PRIVATE "-fexceptions" "-sFORCE_FILESYSTEM=1" @@ -40,6 +46,12 @@ if (YSM_TARGET_WASM) "-sEXIT_RUNTIME=0" ) + if (YSM_WASM_SIMD) + target_link_options(YSMParser PRIVATE + "-msimd128" + ) + endif() + if (YSM_WASM_ENV STREQUAL "node") target_link_options(YSMParser PRIVATE "-sENVIRONMENT=node" diff --git a/YSMParser/algorithms/CryptoAlgorithms.cpp b/YSMParser/algorithms/CryptoAlgorithms.cpp index 1c7e176..5c52370 100644 --- a/YSMParser/algorithms/CryptoAlgorithms.cpp +++ b/YSMParser/algorithms/CryptoAlgorithms.cpp @@ -4,6 +4,8 @@ #include #include "../parsers/YSMParser.hpp" #include +#include +#include #include #include "YsmZstd.hpp" @@ -71,7 +73,7 @@ std::vector ModifiedChaChaEncrypt(const std::vector& data, con return result; } -std::vector ModifiedChaChaDecrypt(const std::vector& data, const uint8_t* key, const uint8_t* iv, const uint64_t seed) { +std::vector ModifiedChaChaDecrypt(std::span data, const uint8_t* key, const uint8_t* iv, const uint64_t seed) { std::vector key_iv(56); std::memcpy(key_iv.data(), key, 32); std::memcpy(key_iv.data() + 32, iv, 24); @@ -85,31 +87,32 @@ std::vector ModifiedChaChaDecrypt(const std::vector& data, con ctx.rounds = 10 * (hash2 % 3) + 10; xchacha_keysetup(&ctx, key, iv); - std::vector result; - result.reserve(data.size()); + std::vector result(data.size()); while (blockPointer < data.size()) { if (blockPointer + next_round_size > data.size()) { next_round_size = data.size() - blockPointer; } - std::vector enc1(data.begin() + blockPointer, data.begin() + blockPointer + next_round_size); + const uint8_t* enc1 = data.data() + blockPointer; + uint8_t* dec1 = result.data() + blockPointer; blockPointer += next_round_size; - std::vector dec1(next_round_size); - xchacha_decrypt_bytes(&ctx, enc1.data(), dec1.data(), (uint32_t)next_round_size); + xchacha_decrypt_bytes(&ctx, enc1, dec1, (uint32_t)next_round_size); - uint64_t res_hash = CityHash64WithSeed(reinterpret_cast(dec1.data()), next_round_size, seed); + uint64_t res_hash = CityHash64WithSeed(reinterpret_cast(dec1), next_round_size, seed); next_round_size = xchacha_update_state(&ctx, res_hash); - - result.insert(result.end(), dec1.begin(), dec1.end()); } return result; } -std::vector MT19937Xor_Decrypt(const std::vector& data, const uint8_t* key, const uint8_t* iv) { +std::vector ModifiedChaChaDecrypt(const std::vector& data, const uint8_t* key, const uint8_t* iv, const uint64_t seed) { + return ModifiedChaChaDecrypt(std::span(data.data(), data.size()), key, iv, seed); +} + +void MT19937XorInPlace(std::span data, const uint8_t* key, const uint8_t* iv) { std::vector key_iv(56); std::memcpy(key_iv.data(), key, 32); std::memcpy(key_iv.data() + 32, iv, 24); @@ -117,29 +120,58 @@ std::vector MT19937Xor_Decrypt(const std::vector& data, const uint64_t seed = CityHash64WithSeed(reinterpret_cast(key_iv.data()), key_iv.size(), SEED_KEY_DERIVATION); std::mt19937_64 mt(seed); - std::vector result(data.size()); size_t i = 0; while (i < data.size()) { uint64_t rnd = mt(); for (int j = 0; j < 8 && i < data.size(); ++j) { uint8_t keystream_byte = static_cast((rnd >> (j * 8)) & 0xFF); - result[i] = data[i] ^ keystream_byte; + data[i] ^= keystream_byte; ++i; } } +} + +std::vector MT19937Xor_Decrypt(const std::vector& data, const uint8_t* key, const uint8_t* iv) { + std::vector result = data; + MT19937XorInPlace(std::span(result.data(), result.size()), key, iv); return result; } -std::vector DecompressZstd(const std::vector& compressed_data) { +std::vector DecompressZstd(std::span compressed_data) { auto washed_data = YsmZstd::wash(compressed_data); + unsigned long long const known_size = ZSTD_getFrameContentSize(washed_data.data(), washed_data.size()); + if (known_size == ZSTD_CONTENTSIZE_ERROR) { + throw std::runtime_error("ZSTD decompression failed: invalid frame content size"); + } + if (known_size != ZSTD_CONTENTSIZE_UNKNOWN) { + if (known_size > static_cast(std::numeric_limits::max())) { + throw std::runtime_error("ZSTD decompression failed: output is too large"); + } + std::vector decompressed_data(static_cast(known_size)); + size_t const ret = ZSTD_decompress( + decompressed_data.data(), + decompressed_data.size(), + washed_data.data(), + washed_data.size() + ); + if (ZSTD_isError(ret)) { + throw std::runtime_error(std::string("ZSTD decompression failed: ") + ZSTD_getErrorName(ret)); + } + decompressed_data.resize(ret); + return decompressed_data; + } + ZSTD_DCtx* dctx = ZSTD_createDCtx(); if (dctx == nullptr) { throw std::runtime_error("Failed to create ZSTD decompression context!"); } std::vector decompressed_data; + if (washed_data.size() <= std::numeric_limits::max() / 3) { + decompressed_data.reserve(washed_data.size() * 3); + } ZSTD_inBuffer input = { washed_data.data(), washed_data.size(), 0 }; @@ -164,6 +196,10 @@ std::vector DecompressZstd(const std::vector& compressed_data) return decompressed_data; } +std::vector DecompressZstd(const std::vector& compressed_data) { + return DecompressZstd(std::span(compressed_data.data(), compressed_data.size())); +} + std::vector CompressZstd(const std::vector& data, int level) { // 获取压缩后所需的最大缓冲大小 size_t const dstBound = ZSTD_compressBound(data.size()); diff --git a/YSMParser/algorithms/CryptoAlgorithms.hpp b/YSMParser/algorithms/CryptoAlgorithms.hpp index 39e287e..d8732d1 100644 --- a/YSMParser/algorithms/CryptoAlgorithms.hpp +++ b/YSMParser/algorithms/CryptoAlgorithms.hpp @@ -1,5 +1,6 @@ #pragma once #include +#include #include #include #include @@ -17,12 +18,18 @@ namespace CryptoUtils { size_t xchacha_update_state(XChaCha_ctx* ctx, uint64_t hash_v); +std::vector ModifiedChaChaDecrypt(std::span data, const uint8_t* key, const uint8_t* iv, uint64_t seed); + std::vector ModifiedChaChaDecrypt(const std::vector& data, const uint8_t* key, const uint8_t* iv, uint64_t seed); std::vector ModifiedChaChaEncrypt(const std::vector& data, const uint8_t* key, const uint8_t* iv, const uint64_t seed); +void MT19937XorInPlace(std::span data, const uint8_t* key, const uint8_t* iv); + std::vector MT19937Xor_Decrypt(const std::vector& data, const uint8_t* key, const uint8_t* iv); +std::vector DecompressZstd(std::span compressed_data); + std::vector DecompressZstd(const std::vector& compressed_data); std::vector CompressZstd(const std::vector& data, int level); diff --git a/YSMParser/algorithms/YsmZstd.hpp b/YSMParser/algorithms/YsmZstd.hpp index 09bcee8..d8ba5f0 100644 --- a/YSMParser/algorithms/YsmZstd.hpp +++ b/YSMParser/algorithms/YsmZstd.hpp @@ -1,6 +1,7 @@ #include #include #include +#include class YsmZstd { private: @@ -40,13 +41,13 @@ class YsmZstd { /** * 洗白操作:将 YSM 魔改的 ZSTD 恢复为标准格式 */ - static std::vector wash(const std::vector& compressed_data) { + static std::vector wash(std::span compressed_data) { if (compressed_data.size() < 5) { throw std::invalid_argument("Invalid data length"); } // 拷贝一份数据用于原地修改并返回 - std::vector data = compressed_data; + std::vector data(compressed_data.begin(), compressed_data.end()); // 1. 验证 ZSTD Magic Number (0xFD2FB528) - 小端读取 uint32_t magic = data[0] | (data[1] << 8) | (data[2] << 16) | (data[3] << 24); @@ -104,6 +105,10 @@ class YsmZstd { return data; } + static std::vector wash(const std::vector& compressed_data) { + return wash(std::span(compressed_data.data(), compressed_data.size())); + } + /** * 将标准 ZSTD 数据“弄脏”为 YSM 魔改格式 */ @@ -173,4 +178,4 @@ class YsmZstd { return data; } -}; \ No newline at end of file +}; diff --git a/YSMParser/main.cpp b/YSMParser/main.cpp index 0c6a151..0f20bf7 100644 --- a/YSMParser/main.cpp +++ b/YSMParser/main.cpp @@ -108,6 +108,42 @@ std::string format_seconds(double seconds) { return oss.str(); } +std::string escape_profile_field(const std::string& value) { + std::string escaped; + escaped.reserve(value.size()); + for (char ch : value) { + switch (ch) { + case '\\': + escaped += "\\\\"; + break; + case '\t': + escaped += "\\t"; + break; + case '\n': + escaped += "\\n"; + break; + case '\r': + escaped += "\\r"; + break; + default: + escaped.push_back(ch); + break; + } + } + return escaped; +} + +void emit_profile_line(const std::string& file_name, int version, const std::string& stage, double milliseconds) { + std::ostringstream ms; + ms << std::fixed << std::setprecision(3) << milliseconds; + std::cerr << "YSM_PROFILE" + << "\tfile=" << escape_profile_field(file_name) + << "\tversion=" << version + << "\tstage=" << escape_profile_field(stage) + << "\tms=" << ms.str() + << '\n'; +} + std::string make_relative_utf8(const fs::path& path, const fs::path& base) { std::error_code ec; const fs::path relative_path = fs::relative(path, base, ec); @@ -477,6 +513,12 @@ int main(int argc, char** argv) { PlatformCompat::enable_virtual_terminal(stderr); CLI::App app{ "YSM File Decryptor" }; + // On Windows, argv from main() is encoded in the system ANSI code page, + // so paths containing characters outside that code page (common with + // CJK usernames in the Tauri sidecar's temp dir) get mangled before + // std::filesystem ever sees them. ensure_utf8 re-reads the original + // UTF-16 command line via GetCommandLineW and re-encodes as UTF-8. + argv = app.ensure_utf8(argv); app.set_version_flag("--version", YSM_PARSER_VERSION, "Show version information and exit."); std::string input_dir_path; @@ -484,6 +526,7 @@ int main(int argc, char** argv) { bool verbose = false; bool debug = false; bool formatJson = false; + bool profile = false; unsigned int requested_threads = 0; app.add_option("-i,--input", input_dir_path, "Path to the input directory.") @@ -493,6 +536,7 @@ int main(int argc, char** argv) { app.add_flag("-v,--verbose", verbose, "Show detailed per-file banners and parser logs."); app.add_flag("-d,--debug", debug, "Export all binary products (Only for V3)."); app.add_flag("-f,--format", formatJson, "Format all json (Only for V3)."); + app.add_flag("--profile", profile, "Emit machine-readable per-file timing lines to stderr."); app.add_option("-j,--threads", requested_threads, "Number of files to process in parallel. 0 = auto."); #if YSM_WASM_TARGET @@ -574,15 +618,17 @@ int main(int argc, char** argv) { std::cout << theme.dim() << "[ YSMParser ] Preparing parser..." << theme.reset() << '\n'; } + std::unique_ptr parser; try { if (!fs::exists(task.target_output_dir)) { fs::create_directories(task.target_output_dir); } - auto parser = YSMParserFactory::Create(utf8_input); + parser = YSMParserFactory::Create(utf8_input); parser->setVerbose(verbose); parser->setDebug(debug); - parser->setFormatJson(formatJson); + parser->setFormatJson(formatJson); + parser->setProfile(profile); const int version = parser->getYSGPVersion(); if (verbose) { @@ -591,20 +637,51 @@ int main(int argc, char** argv) { std::cout << theme.dim() << "[ YSMParser ] Parsing payload..." << theme.reset() << '\n'; } + auto stage_start = std::chrono::steady_clock::now(); parser->parse(); + const double parse_ms = std::chrono::duration( + std::chrono::steady_clock::now() - stage_start + ).count(); + if (profile) { + emit_profile_line(result.file_name, version, "parse_total", parse_ms); + for (const auto& entry : parser->profileEntries()) { + emit_profile_line(result.file_name, version, entry.stage, entry.milliseconds); + } + } if (verbose) { std::cout << theme.dim() << "[ YSMParser ] Exporting resources..." << theme.reset() << '\n'; } + stage_start = std::chrono::steady_clock::now(); parser->saveToDirectory(result.output_dir); + const double export_ms = std::chrono::duration( + std::chrono::steady_clock::now() - stage_start + ).count(); + if (profile) { + emit_profile_line(result.file_name, version, "export", export_ms); + } result.success = true; } catch (const std::exception& e) { result.error_message = e.what(); + if (debug && parser) { + try { + parser->saveToDirectory(result.output_dir); + } + catch (...) { + } + } } catch (...) { result.error_message = "Caught an unknown or cross-boundary exception."; + if (debug && parser) { + try { + parser->saveToDirectory(result.output_dir); + } + catch (...) { + } + } } result.elapsed_seconds = std::chrono::duration(std::chrono::steady_clock::now() - file_start).count(); diff --git a/YSMParser/parsers/BufferReader.hpp b/YSMParser/parsers/BufferReader.hpp index 64f4ace..77f917a 100644 --- a/YSMParser/parsers/BufferReader.hpp +++ b/YSMParser/parsers/BufferReader.hpp @@ -29,6 +29,8 @@ struct BufferReader { const uint8_t* data; size_t size; size_t offset = 0; + const char* context = nullptr; + void setContext(const char* value) { context = value; } uint8_t seeByte() { if (offset >= size) { @@ -99,12 +101,20 @@ struct BufferReader { } std::string readString() { + const size_t len_offset = offset; uint32_t len = readVarint(); if (len == 0) return ""; if (offset + len > size) { - throw std::runtime_error("Buffer overflow while reading string"); + const std::string contextText = context == nullptr ? "" : (" in " + std::string(context)); + throw std::runtime_error( + "Buffer overflow while reading string" + contextText + + " at offset " + std::to_string(offset) + + ", length_offset " + std::to_string(len_offset) + + ", length " + std::to_string(len) + + ", size " + std::to_string(size) + ); } std::string s((const char*)&data[offset], len); @@ -114,33 +124,28 @@ struct BufferReader { std::vector readByteSequence() { uint32_t len = readVarint(); - printf("len=%i\n", len); - if (offset + len > size) { + if (len > size - offset) { throw ParserIndexOutOfBoundException(); } if (len == 0) return {}; - std::vector s(len, 0); - std::copy(data + offset, data + offset + len, s.begin()); + std::vector s(len); + std::memcpy(s.data(), data + offset, len); offset += len; - printf("Last element: 0x%02X\n", s.back()); - return s; } std::vector readBytesExactly(uint64_t len) { - if (offset + len > size) { + if (len > size - offset) { throw ParserIndexOutOfBoundException(); } if (len == 0) return {}; - std::vector s(len, 0); - std::copy(data + offset, data + offset + len, s.begin()); + std::vector s(static_cast(len)); + std::memcpy(s.data(), data + offset, static_cast(len)); offset += len; - printf("Last element: 0x%02X\n", s.back()); - return s; } diff --git a/YSMParser/parsers/YSMParser.hpp b/YSMParser/parsers/YSMParser.hpp index 7f2c8d4..d71b063 100644 --- a/YSMParser/parsers/YSMParser.hpp +++ b/YSMParser/parsers/YSMParser.hpp @@ -4,6 +4,11 @@ #include #include +struct YSMProfileEntry { + std::string stage; + double milliseconds = 0.0; +}; + class YSMParser { public: // Disable copy and move semantics @@ -15,15 +20,26 @@ class YSMParser { void setVerbose(bool verbose) { m_verbose = verbose; } void setDebug(bool debug) { m_debug = debug; } void setFormatJson(bool formatJson) { m_formatJson = formatJson; } + void setProfile(bool profile) { m_profile = profile; } + const std::vector& profileEntries() const { return m_profileEntries; } virtual ~YSMParser() = default; protected: bool isVerbose() const { return m_verbose; } bool isDebug() const { return m_debug; } bool isFormatJson() const { return m_formatJson; } + bool isProfile() const { return m_profile; } + void clearProfileEntries() { m_profileEntries.clear(); } + void recordProfileStage(const std::string& stage, double milliseconds) { + if (m_profile) { + m_profileEntries.push_back({ stage, milliseconds }); + } + } private: bool m_verbose = false; bool m_debug = false; bool m_formatJson = false; + bool m_profile = false; + std::vector m_profileEntries; }; namespace YSMParserFactory { diff --git a/YSMParser/parsers/v3/YSMParserV3.cpp b/YSMParser/parsers/v3/YSMParserV3.cpp index 775dd40..2e79c71 100644 --- a/YSMParser/parsers/v3/YSMParserV3.cpp +++ b/YSMParser/parsers/v3/YSMParserV3.cpp @@ -1,6 +1,7 @@ #include "YSMParserV3.hpp" #include "../exceptions/ParserException.hpp" #include +#include #include #include #include "../YSMParser.hpp" @@ -22,6 +23,7 @@ #include #include #include +#include #include #include @@ -39,6 +41,32 @@ #define M_PI 3.14159265358979323846 #endif +#ifndef YSM_ENABLE_V3_TRACE_PRINTF +static int ysm_trace_printf(const char*, ...) { return 0; } +#define printf(...) ysm_trace_printf(__VA_ARGS__) +#endif + +class ScopedOstreamStateSilencer { +public: + ScopedOstreamStateSilencer(std::ostream& stream, bool enabled) + : stream_(stream), oldState_(stream.rdstate()), enabled_(enabled) { + if (enabled_) { + stream_.setstate(std::ios_base::badbit); + } + } + + ~ScopedOstreamStateSilencer() { + if (enabled_) { + stream_.clear(oldState_); + } + } + +private: + std::ostream& stream_; + std::ios::iostate oldState_; + bool enabled_; +}; + template static void clean_json_floats(JsonType& j) { if (j.is_number_float()) { @@ -133,6 +161,54 @@ std::vector YSMParserV3::getDecryptedData() return pngBytes; } +[[nodiscard]] static std::vector bytesFromString(const std::string& text) { + return std::vector(text.begin(), text.end()); +} + +static void appendFile(std::vector>>& files, std::string name, std::vector data) { + files.emplace_back(std::move(name), std::move(data)); +} + +[[nodiscard]] static const char* animationNameForModelId(uint32_t modelId, bool useExpandedNames) { + switch (modelId) { + case 1: return "main"; + case 2: return "arm"; + case 3: return "extra"; + case 4: return "tac"; + case 5: return "arrow"; + case 6: return "carryon"; + case 7: return "parcool"; + case 8: return "swem"; + case 9: return "slashblade"; + case 10: return "tlm"; + case 11: return useExpandedNames ? "fp_arm" : "fp.arm"; + case 12: return "immersive_melodies"; + case 13: return useExpandedNames ? "irons_spell_books" : "iss"; + default: throw ParserUnknownField(); + } +} + +[[nodiscard]] static std::string formatKeyframeTime(float time) { + if (std::abs(time) < 1e-6f) { + return "0.0"; + } + + char buffer[64]; + const int written = std::snprintf(buffer, sizeof(buffer), "%.6f", static_cast(time)); + if (written <= 0) { + return "0.0"; + } + + std::string result(buffer, static_cast(std::min(written, sizeof(buffer) - 1))); + while (!result.empty() && result.back() == '0') { + result.pop_back(); + } + if (!result.empty() && result.back() == '.') { + result.push_back('0'); + } + return result; +} + static int extractFormatFromHeader(const std::string& headerData) { size_t pos = headerData.find(""); @@ -240,12 +316,12 @@ static std::optional parseChannel(BufferReader& reader) { } BonesKeyFrame kf; - kf.bone.assign(molangs, { 0, {} }); + kf.bone.reserve(molangs); for (uint32_t i = 0; i < molangs; i++) { + Keyframe frame; float time = reader.readFloat() / 20; - kf.bone[i].second.lerp_mode = static_cast(reader.readVarint()); - kf.bone[i].first = time; + frame.lerp_mode = static_cast(reader.readVarint()); // 先读取第一组数据 MolangPair first_data; @@ -286,14 +362,15 @@ static std::optional parseChannel(BufferReader& reader) { } // 在这里进行反转,将先读的设为 pre,后读的设为 post - kf.bone[i].second.pre = first_data; - kf.bone[i].second.post = second_data; + frame.pre = std::move(first_data); + frame.post = std::move(second_data); } else { // 如果没有额外数据,第一组数据即为 post - kf.bone[i].second.post = first_data; + frame.post = std::move(first_data); } + kf.bone.emplace_back(time, std::move(frame)); } return kf; @@ -308,12 +385,12 @@ static std::optional parseEffect(BufferReader& reader) { } Effects eff; - eff.effects.assign(header, { 0, {} }); + eff.effects.reserve(header); for (uint32_t i = 0; i < header; i++) { std::string effect = reader.readString(); - eff.effects[i].second = effect; - eff.effects[i].first = reader.readFloat() / 20; + float time = reader.readFloat() / 20; + eff.effects.emplace_back(time, std::move(effect)); } return eff; @@ -328,16 +405,18 @@ static std::optional parseTimeLine(BufferReader& reader) { } TimeLine timeline; - timeline.times.assign(header, { 0, {} }); + timeline.times.reserve(header); for (uint32_t i = 0; i < header; i++) { uint32_t tl_inside = reader.readVarint(); - timeline.times[i].second.assign(tl_inside, ""); + std::vector events; + events.reserve(tl_inside); for (uint32_t j = 0; j < tl_inside; j++) { - timeline.times[i].second[j] = reader.readString(); + events.emplace_back(reader.readString()); } - timeline.times[i].first = reader.readFloat() / 20; + float time = reader.readFloat() / 20; + timeline.times.emplace_back(time, std::move(events)); } return timeline; @@ -747,6 +826,7 @@ static std::vector clean_vector(const Vector3D& vec) { std::vector YSMParserV3::ParseModels(BufferReader& reader) { + reader.setContext("ParseModels"); ParsedModel model; // Parse main.json @@ -754,6 +834,7 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) model.sha256 = reader.readString(); } uint32_t sizeOfBones = reader.readVarint(); + model.bones.reserve(sizeOfBones); for (uint32_t i = 0; i < sizeOfBones; i++) { @@ -762,11 +843,13 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) std::cout << "====\nparent: " << bone.parent << std::endl; //printf("read bone: 0x%08zX\n", reader.offset); uint32_t cubesSize = reader.readVarint(); + bone.cubes.reserve(cubesSize); for (uint32_t j = 0; j < cubesSize; j++) { ParsedCube cube; uint32_t uvSize = reader.readVarint(); + cube.faces.reserve(uvSize); for (uint32_t k = 0; k < uvSize; k++) { Face face{}; @@ -777,10 +860,10 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) face.vertices[v].u = reader.readFloat(); face.vertices[v].v = reader.readFloat(); } - cube.faces.push_back(face); + cube.faces.emplace_back(face); } - bone.cubes.push_back(cube); + bone.cubes.emplace_back(std::move(cube)); if (false) { for (size_t idx = 0; idx < cube.faces.size(); ++idx) { const Face& face = cube.faces[idx]; @@ -828,7 +911,7 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) << " ,rotationY:" << bone.rotation.y * (180.0 / M_PI) << " ,rotationZ:" << bone.rotation.z * (180.0 / M_PI) << std::endl; - model.bones.push_back(bone); + model.bones.emplace_back(std::move(bone)); } @@ -838,7 +921,8 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) model.description.visible_bounds_height = reader.readFloat(); model.description.visible_bounds_width = reader.readFloat(); - float visible_bounds_offset_size = static_cast(reader.readVarint()); + uint32_t visible_bounds_offset_size = reader.readVarint(); + model.description.visible_bounds_offset.reserve(visible_bounds_offset_size); for (uint32_t i = 0; i < visible_bounds_offset_size; i++) { model.description.visible_bounds_offset.push_back(reader.readFloat()); @@ -870,6 +954,7 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) description["visible_bounds_height"] = clean_number(model.description.visible_bounds_height); json offset_arr = json::array(); + offset_arr.get_ref().reserve(model.description.visible_bounds_offset.size()); for (float v : model.description.visible_bounds_offset) { offset_arr.push_back(clean_number(v)); } @@ -878,6 +963,7 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) out_geom["description"] = description; json bones_arr = json::array(); + bones_arr.get_ref().reserve(model.bones.size()); for (const auto& parsedBone : model.bones) { json b_json = json::object(); b_json["name"] = parsedBone.name; @@ -893,6 +979,7 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) } json cubes_arr = json::array(); + cubes_arr.get_ref().reserve(parsedBone.cubes.size()); for (const auto& parsedCube : parsedBone.cubes) { try { BlockbenchCube bbCube = restore_blockbench_cube(parsedCube.faces, 0.0f, static_cast(model.description.texture_width), static_cast(model.description.texture_height)); @@ -903,14 +990,15 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) c_json["rotation"] = clean_vector(bbCube.rotation); json uv_json = json::object(); + uv_json.get_ref().reserve(bbCube.uv.size()); for (const auto& uv_pair : bbCube.uv) { uv_json[uv_pair.first] = { {"uv", { clean_number(uv_pair.second.u), clean_number(uv_pair.second.v) }}, {"uv_size", { clean_number(uv_pair.second.u_size), clean_number(uv_pair.second.v_size) }} }; } - c_json["uv"] = uv_json; - cubes_arr.push_back(c_json); + c_json["uv"] = std::move(uv_json); + cubes_arr.push_back(std::move(c_json)); } catch (...) { // TODO: @@ -918,19 +1006,21 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) } if (!cubes_arr.empty()) { - b_json["cubes"] = cubes_arr; + b_json["cubes"] = std::move(cubes_arr); } - bones_arr.push_back(b_json); + bones_arr.push_back(std::move(b_json)); } - out_geom["bones"] = bones_arr; + out_geom["bones"] = std::move(bones_arr); json final_output = json::object(); // Format Version Inference std::string format_version = "1.12.0"; final_output["format_version"] = format_version; - final_output["minecraft:geometry"] = json::array({ out_geom }); + json geometries = json::array(); + geometries.push_back(std::move(out_geom)); + final_output["minecraft:geometry"] = std::move(geometries); std::string result; if (this->isFormatJson()) @@ -941,15 +1031,15 @@ std::vector YSMParserV3::ParseModels(BufferReader& reader) { result = final_output.dump(-1); } - std::vector data(result.begin(), result.end()); - - return data; + return bytesFromString(result); } void YSMParserV3::ParseYSMJson(BufferReader& reader) { + reader.setContext("ParseYSMJson"); using json = nlohmann::ordered_json; + reader.setContext("ParseYSMJson.sha256"); std::string sha256 = reader.readString(); json root = json::object(); @@ -969,13 +1059,17 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) printf("NUM=%llu\n", reader.readVarint()); } + reader.setContext("ParseYSMJson.metadata.name"); m_metadata["name"] = reader.readString(); printf("TEST2 0x%08zX\n", reader.offset); + reader.setContext("ParseYSMJson.metadata.tips"); m_metadata["tips"] = reader.readString(); printf("TEST3 0x%08zX\n", reader.offset); m_metadata["license"] = json::object(); + reader.setContext("ParseYSMJson.license.type"); m_metadata["license"]["type"] = reader.readString(); + reader.setContext("ParseYSMJson.license.desc"); m_metadata["license"]["desc"] = reader.readString(); printf("TEST4 0x%08zX\n", reader.offset); uint32_t authorsCount = reader.readVarint(); @@ -983,21 +1077,26 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) json authorsArr = json::array(); for (uint32_t j = 0; j < authorsCount; j++) { json authorObj = json::object(); + reader.setContext("ParseYSMJson.authors.name"); std::string authorName = reader.readString(); authorObj["name"] = authorName; + reader.setContext("ParseYSMJson.authors.role"); authorObj["role"] = reader.readString(); uint32_t authorContact = reader.readVarint(); if (authorContact > 0) { json contactsObj = json::object(); for (uint32_t k = 0; k < authorContact; k++) { + reader.setContext("ParseYSMJson.authors.contact.name"); std::string contactName = reader.readString(); + reader.setContext("ParseYSMJson.authors.contact.site"); std::string contactSite = reader.readString(); contactsObj[contactName] = contactSite; } authorObj["contact"] = contactsObj; } + reader.setContext("ParseYSMJson.authors.comment"); authorObj["comment"] = reader.readString(); authorObj["avatar"] = "avatar/" + sanitizeWindowsFilename(authorName + ".png"); authorsArr.push_back(authorObj); @@ -1010,7 +1109,9 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) if (linksCount > 0) { json linksObj = json::object(); for (uint32_t j = 0; j < linksCount; j++) { + reader.setContext("ParseYSMJson.links.name"); std::string linkName = reader.readString(); + reader.setContext("ParseYSMJson.links.site"); std::string linkSite = reader.readString(); linksObj[linkName] = linkSite; } @@ -1026,7 +1127,9 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) if (extra_animations > 0) { json extraAnimObj = json::object(); for (uint32_t j = 0; j < extra_animations; j++) { + reader.setContext("ParseYSMJson.extra_animation.name"); std::string extraName = reader.readString(); + reader.setContext("ParseYSMJson.extra_animation.value"); std::string extraValue = reader.readString(); extraAnimObj[extraName] = extraValue; printf("pushing %s -> %s\n", extraName.c_str(), extraValue.c_str()); @@ -1043,9 +1146,11 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) json buttonsArr = json::array(); for (uint32_t j = 0; j < extra_animation_buttons; j++) { json buttonObj = json::object(); + reader.setContext("ParseYSMJson.extra_animation_buttons.id"); std::string id = reader.readString(); std::cout << "[properties.extra_animation_buttons.id]" << id << std::endl; buttonObj["id"] = id; + reader.setContext("ParseYSMJson.extra_animation_buttons.name"); buttonObj["name"] = reader.readString(); if (reader.readVarint() != 0) throw ParserUnknownField(); @@ -1055,10 +1160,14 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) json configArr = json::array(); for (uint32_t k = 0; k < config_forms; k++) { json formObj = json::object(); + reader.setContext("ParseYSMJson.config_forms.type"); std::string type = reader.readString(); formObj["type"] = type; + reader.setContext("ParseYSMJson.config_forms.title"); formObj["title"] = reader.readString(); + reader.setContext("ParseYSMJson.config_forms.description"); formObj["description"] = reader.readString(); + reader.setContext("ParseYSMJson.config_forms.value"); formObj["value"] = reader.readString(); float step = reader.readFloat(); @@ -1076,7 +1185,9 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) if (labelsSize > 0) { json labelsObj = json::object(); for (uint32_t l = 0; l < labelsSize; l++) { + reader.setContext("ParseYSMJson.config_forms.labels.name"); std::string labelName = reader.readString(); + reader.setContext("ParseYSMJson.config_forms.labels.molang"); std::string labelMolang = reader.readString(); labelsObj[labelName] = labelMolang; } @@ -1096,13 +1207,16 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) for (uint32_t i = 0; i < cnt; i++) { json sigObj = json::object(); + reader.setContext("ParseYSMJson.extra_animation_classify.id"); std::string id = reader.readString(); sigObj["id"] = id; uint32_t extras = reader.readVarint(); json labelsObj = json::object(); for (uint32_t j = 0; j < extras; j++) { + reader.setContext("ParseYSMJson.extra_animation_classify.key"); std::string ext_key = reader.readString(); + reader.setContext("ParseYSMJson.extra_animation_classify.value"); std::string ext_v = reader.readString(); labelsObj[ext_key] = ext_v; } @@ -1113,10 +1227,12 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) } + reader.setContext("ParseYSMJson.default_texture"); if (auto val = reader.readString(); !val.empty()) { properties["default_texture"] = std::move(val); } + reader.setContext("ParseYSMJson.preview_animation"); if (auto val = reader.readString(); !val.empty()) { properties["preview_animation"] = std::move(val); } @@ -1169,8 +1285,7 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) std::string avatarName = reader.readString(); avatarInfo["name"] = avatarName; - std::vector data(reader.readByteSequence()); - m_avatarFiles.push_back({ avatarName, data }); + std::vector data = reader.readByteSequence(); avatarInfo["width"] = reader.readVarint(); avatarInfo["height"] = reader.readVarint(); @@ -1178,6 +1293,7 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) uint32_t image_format = reader.readVarint(); uint32_t unk_flag = reader.readVarint(); Images::validateImageMetadata(avatarName, reader.offset, image_format, unk_flag); + appendFile(m_avatarFiles, std::move(avatarName), std::move(data)); avatarsMeta.push_back(avatarInfo); } @@ -1202,8 +1318,7 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) result = root.dump(-1); } - std::vector data(result.begin(), result.end()); - m_ysmJsonFile = data; + m_ysmJsonFile = bytesFromString(result); if (m_format <= 15) return; @@ -1226,8 +1341,6 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) relativePath = "background/" + sanitizeWindowsFilename(name + ".png"); } - m_backgroundFiles.push_back({ relativePath, fileData }); - printf("Finish background at: 0x%08zX\n", reader.offset); uint32_t width = reader.readVarint(); uint32_t height = reader.readVarint(); @@ -1236,6 +1349,7 @@ void YSMParserV3::ParseYSMJson(BufferReader& reader) uint32_t image_format = reader.readVarint(); uint32_t unk_flag = reader.readVarint(); Images::validateImageMetadata(name, reader.offset, image_format, unk_flag); + appendFile(m_backgroundFiles, std::move(relativePath), std::move(fileData)); } } } @@ -1462,6 +1576,7 @@ void YSMParserV3::ParseLegacyYSMInfo(BufferReader& reader) std::vector YSMParserV3::ParseAnimations(BufferReader& reader) { + reader.setContext("ParseAnimations"); using json = nlohmann::ordered_json; auto log_animation_header = [&](const std::string& animName, float animLen, LoopMode loop, uint32_t boneCount) { if (!isVerbose()) { @@ -1544,6 +1659,7 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) hash = reader.readString(); } uint32_t animCount = reader.readVarint(); + animationsDesc.get_ref().reserve(animCount); for (uint32_t anim = 0; anim < animCount; ++anim) { // 读取动画名称 (使用 Varint 长度) std::string animName = reader.readString(); @@ -1595,6 +1711,7 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) uint32_t boneCount = reader.readVarint(); log_animation_header(animName, animLen, loop, boneCount); json bonesObj = json::object(); + bonesObj.get_ref().reserve(boneCount); auto molangToJson = [](const MolangPair& mp) -> json { // 检查三个元素是否类型相同且值一致 @@ -1658,15 +1775,7 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) t_str = "0.0"; } else { - std::ostringstream time_stream; - time_stream << std::fixed << std::setprecision(6) << time; - t_str = time_stream.str(); - while (!t_str.empty() && t_str.back() == '0') { - t_str.pop_back(); - } - if (!t_str.empty() && t_str.back() == '.') { - t_str.push_back('0'); - } + t_str = formatKeyframeTime(time); } @@ -1727,22 +1836,24 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) } if (!bonesObj.empty()) { - animObj["bones"] = bonesObj; + animObj["bones"] = std::move(bonesObj); } auto tl = parseTimeLine(reader); if (tl.has_value() && !tl->times.empty()) { json tlObj = json::object(); + tlObj.get_ref().reserve(tl->times.size()); for (const auto& item : tl->times) { std::ostringstream time_ss; time_ss << item.first; json eventArr = json::array(); + eventArr.get_ref().reserve(item.second.size()); for (const auto& str : item.second) { eventArr.push_back(str); } - tlObj[time_ss.str()] = eventArr; + tlObj[time_ss.str()] = std::move(eventArr); } - animObj["timeline"] = tlObj; + animObj["timeline"] = std::move(tlObj); } if (m_format > 9) { @@ -1750,6 +1861,7 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) if (sound_effects.has_value() && !sound_effects->effects.empty()) { json efObj = json::object(); + efObj.get_ref().reserve(sound_effects->effects.size()); for (const auto& item : sound_effects->effects) { std::ostringstream time_ss; if (std::abs(item.first) < 1e-6f) time_ss << "0.0"; @@ -1758,9 +1870,9 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) json effItem = json::object(); effItem["effect"] = item.second; - efObj[time_ss.str()] = effItem; + efObj[time_ss.str()] = std::move(effItem); } - animObj["sound_effects"] = efObj; + animObj["sound_effects"] = std::move(efObj); } log_animation_footer(animName, tl, sound_effects); } @@ -1768,13 +1880,13 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) log_animation_footer(animName, tl, std::nullopt); } - animationsDesc[animName] = animObj; + animationsDesc[animName] = std::move(animObj); } if (!animationsDesc.empty()) { - root["animations"] = animationsDesc; + root["animations"] = std::move(animationsDesc); } std::string result; @@ -1787,20 +1899,21 @@ std::vector YSMParserV3::ParseAnimations(BufferReader& reader) result = root.dump(-1); } - std::vector animData(result.begin(), result.end()); - return animData; + return bytesFromString(result); } std::vector YSMParserV3::ParseSpecialImage(BufferReader& reader) { + reader.setContext("ParseSpecialImage"); std::string hash = reader.readString(); - std::vector fileData = reader.readByteSequence(); - return fileData; + return reader.readByteSequence(); } void YSMParserV3::ParseSoundFiles(BufferReader& reader) { + reader.setContext("ParseSoundFiles"); uint32_t cnt = reader.readVarint(); + m_soundFiles.reserve(m_soundFiles.size() + cnt); for (uint32_t i = 0; i < cnt; i++) { std::string name = reader.readString(); @@ -1808,26 +1921,30 @@ void YSMParserV3::ParseSoundFiles(BufferReader& reader) std::string hash = reader.readString(); } std::vector fileData = reader.readByteSequence(); - m_soundFiles.push_back({ name, fileData }); + appendFile(m_soundFiles, std::move(name), std::move(fileData)); } } void YSMParserV3::ParseFunctionFiles(BufferReader& reader) { + reader.setContext("ParseFunctionFiles"); uint32_t cnt = reader.readVarint(); + m_functionFiles.reserve(m_functionFiles.size() + cnt); for (uint32_t i = 0; i < cnt; i++) { std::string name = reader.readString(); std::string hash = reader.readString(); std::vector fileData = reader.readByteSequence(); - m_functionFiles.push_back({ name, fileData }); + appendFile(m_functionFiles, std::move(name), std::move(fileData)); } } void YSMParserV3::ParseLanguageFiles(BufferReader& reader) { + reader.setContext("ParseLanguageFiles"); using json = nlohmann::ordered_json; uint32_t cnt = reader.readVarint(); + m_languageFiles.reserve(m_languageFiles.size() + cnt); // 创建根 JSON 数组,用于存放多个语言文件对象 for (uint32_t i = 0; i < cnt; i++) { std::string name = reader.readString(); @@ -1837,12 +1954,13 @@ void YSMParserV3::ParseLanguageFiles(BufferReader& reader) json nodesData = json::object(); uint32_t nodes = reader.readVarint(); + nodesData.get_ref().reserve(nodes); for (uint32_t j = 0; j < nodes; j++) { std::string nodeName = reader.readString(); std::string nodeValue = reader.readString(); // 将节点存入 nodes 对象 - nodesData[nodeName] = nodeValue; + nodesData[std::move(nodeName)] = std::move(nodeValue); } std::string result; if (this->isFormatJson()) @@ -1853,13 +1971,13 @@ void YSMParserV3::ParseLanguageFiles(BufferReader& reader) { result = nodesData.dump(-1); } - std::vector data(result.begin(), result.end()); - m_languageFiles.push_back({ name ,data }); + appendFile(m_languageFiles, std::move(name), bytesFromString(result)); } } std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader) { + reader.setContext("ParseAnimationControllers"); auto log_controller_header = [&](const std::string& controllerName, const std::string& animName, uint32_t statesCount, const std::string& initialState) { if (!isVerbose()) { return; @@ -1913,6 +2031,7 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader using namespace nlohmann; + const bool verbose = isVerbose(); // 创建根 JSON 对象 json root = json::object(); root["format_version"] = "1.19.0"; @@ -1942,11 +2061,11 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader std::string stateName = reader.readString(); // 例如 "default", "挥剑1" //printf("stateName=%s, 0x%08zX\n", stateName.c_str(), reader.offset); json stateObj = json::object(); - json debugAnimations = json::array(); - json debugTransitions = json::array(); - json debugOnEntry = json::array(); - json debugOnExit = json::array(); - json debugBlendTransitions = json::object(); + json debugAnimations; + json debugTransitions; + json debugOnEntry; + json debugOnExit; + json debugBlendTransitions; std::optional debugBlendValue; bool debugShortestPath = false; @@ -1955,37 +2074,43 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader //printf("animationsSize=%i, 0x%08zX\n", animationsSize, reader.offset); if (animationsSize > 0) { json animArray = json::array(); + animArray.get_ref().reserve(animationsSize); for (uint32_t j = 0; j < animationsSize; j++) { std::string ak = reader.readString(); std::string av = reader.readString(); //printf("ak=%s, av=%s, 0x%08zX\n", ak.c_str(), av.c_str(), reader.offset); if (av.empty()) { - animArray.push_back(ak); + animArray.push_back(std::move(ak)); } else { json animItem = json::object(); - animItem[ak] = av; - animArray.push_back(animItem); + animItem[std::move(ak)] = std::move(av); + animArray.push_back(std::move(animItem)); } } - debugAnimations = animArray; - stateObj["animations"] = animArray; + if (verbose) { + debugAnimations = animArray; + } + stateObj["animations"] = std::move(animArray); } // Transitions uint32_t transitionsSize = reader.readVarint(); if (transitionsSize > 0) { json transArray = json::array(); + transArray.get_ref().reserve(transitionsSize); for (uint32_t j = 0; j < transitionsSize; j++) { std::string tk = reader.readString(); std::string tv = reader.readString(); json transItem = json::object(); - transItem[tk] = tv; - transArray.push_back(transItem); + transItem[std::move(tk)] = std::move(tv); + transArray.push_back(std::move(transItem)); } - debugTransitions = transArray; - stateObj["transitions"] = transArray; + if (verbose) { + debugTransitions = transArray; + } + stateObj["transitions"] = std::move(transArray); } printf("unk flag1 at: 0x%08zX\n", reader.offset); @@ -1993,22 +2118,28 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader uint32_t onEntryCount = reader.readVarint(); if (onEntryCount > 0) { json entryArray = json::array(); + entryArray.get_ref().reserve(onEntryCount); for (uint32_t j = 0; j < onEntryCount; j++) { entryArray.push_back(reader.readString()); } - debugOnEntry = entryArray; - stateObj["on_entry"] = entryArray; + if (verbose) { + debugOnEntry = entryArray; + } + stateObj["on_entry"] = std::move(entryArray); } // on_exit uint32_t onExitCount = reader.readVarint(); if (onExitCount > 0) { json exitArray = json::array(); + exitArray.get_ref().reserve(onExitCount); for (uint32_t j = 0; j < onExitCount; j++) { exitArray.push_back(reader.readString()); } - stateObj["on_exit"] = exitArray; - debugOnExit = exitArray; + if (verbose) { + debugOnExit = exitArray; + } + stateObj["on_exit"] = std::move(exitArray); } // blend_transitions @@ -2027,8 +2158,10 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader // 因为 JSON 对象键只能是字符串,所以将 float 转换为 string blendObj[std::to_string(bk)] = bv; } - debugBlendTransitions = blendObj; - stateObj["blend_transitions"] = blendObj; + if (verbose) { + debugBlendTransitions = blendObj; + } + stateObj["blend_transitions"] = std::move(blendObj); } } @@ -2044,13 +2177,14 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader uint32_t soundEffectsCount = reader.readVarint(); if (soundEffectsCount > 0) { json soundEffectsArray = json::array(); + soundEffectsArray.get_ref().reserve(soundEffectsCount); for (uint32_t j = 0; j < soundEffectsCount; j++) { std::string effectName = reader.readString(); json effectItem = json::object(); - effectItem["effect"] = effectName; - soundEffectsArray.push_back(effectItem); + effectItem["effect"] = std::move(effectName); + soundEffectsArray.push_back(std::move(effectItem)); } - stateObj["sound_effects"] = soundEffectsArray; + stateObj["sound_effects"] = std::move(soundEffectsArray); } } @@ -2059,24 +2193,24 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader printf("end at: 0x%08zX\n", reader.offset); log_state_block(stateName, - debugAnimations.empty() ? nullptr : &debugAnimations, - debugTransitions.empty() ? nullptr : &debugTransitions, - debugOnEntry.empty() ? nullptr : &debugOnEntry, - debugOnExit.empty() ? nullptr : &debugOnExit, + verbose && !debugAnimations.empty() ? &debugAnimations : nullptr, + verbose && !debugTransitions.empty() ? &debugTransitions : nullptr, + verbose && !debugOnEntry.empty() ? &debugOnEntry : nullptr, + verbose && !debugOnExit.empty() ? &debugOnExit : nullptr, debugBlendValue, - debugBlendTransitions.empty() ? nullptr : &debugBlendTransitions, + verbose && !debugBlendTransitions.empty() ? &debugBlendTransitions : nullptr, debugShortestPath); // 将当前 state 添加到 states 列表 - statesData[stateName] = stateObj; + statesData[stateName] = std::move(stateObj); } // 挂载 states 并存入 controller 列表 - controllerData["states"] = statesData; - controllers[animName] = controllerData; + controllerData["states"] = std::move(statesData); + controllers[animName] = std::move(controllerData); } - root["animation_controllers"] = controllers; + root["animation_controllers"] = std::move(controllers); std::string result; if (this->isFormatJson()) @@ -2087,14 +2221,14 @@ std::vector YSMParserV3::ParseAnimationControllers(BufferReader& reader { result = root.dump(-1); } - std::vector data(result.begin(), result.end()); - - return data; + return bytesFromString(result); } void YSMParserV3::ParseTextureFiles(BufferReader& reader) { + reader.setContext("ParseTextureFiles"); uint32_t cnt = reader.readVarint(); + m_textureFiles.reserve(m_textureFiles.size() + cnt); for (uint32_t i = 0; i < cnt; i++) { std::string name = reader.readString(); @@ -2115,7 +2249,7 @@ void YSMParserV3::ParseTextureFiles(BufferReader& reader) uint32_t specular_type = reader.readVarint(); // 1为NORMAL,2为高光 auto specialImageData = ParseSpecialImage(reader); std::string suffix = (specular_type == 1) ? "_normal" : (specular_type == 2 ? "_specular" : "_special"); - m_specialImageFiles.push_back({ name + suffix, specialImageData }); + appendFile(m_specialImageFiles, name + suffix, std::move(specialImageData)); uint32_t sp_w = reader.readVarint(); uint32_t sp_h = reader.readVarint(); @@ -2124,7 +2258,7 @@ void YSMParserV3::ParseTextureFiles(BufferReader& reader) Images::validateImageMetadata(name + suffix, reader.offset, sp_format, sp_flag); } - m_textureFiles.push_back({ name, fileData }); + appendFile(m_textureFiles, std::move(name), std::move(fileData)); } } @@ -2144,11 +2278,14 @@ void YSMParserV3::deserialize(const uint8_t* bufferData, size_t size) { } void YSMParserV3::deserializeLegacyV1(BufferReader& reader) { + reader.setContext("deserializeLegacyV1"); uint32_t unk_needSkipBytes = reader.readVarint(); reader.offset += unk_needSkipBytes; uint32_t modelCount = reader.readVarint(); std::vector modelIds; + modelIds.reserve(modelCount); + m_modelFiles.reserve(m_modelFiles.size() + modelCount); for (uint32_t i = 0; i < modelCount; ++i) { uint32_t modelId = reader.readVarint(); modelIds.push_back(modelId); @@ -2160,7 +2297,7 @@ void YSMParserV3::deserializeLegacyV1(BufferReader& reader) { else if (modelId == 2) modelName = "arm"; else if (modelId == 3) modelName = "arrow"; else throw ParserUnknownField(); - m_modelFiles.push_back({ modelName, model }); + appendFile(m_modelFiles, std::move(modelName), std::move(model)); printf("Parse Models finish. 0x%08zX\n", reader.offset); @@ -2169,31 +2306,21 @@ void YSMParserV3::deserializeLegacyV1(BufferReader& reader) { uint32_t animationBlobCount = reader.readVarint(); std::vector animIds; + animIds.reserve(animationBlobCount); + m_animationFiles.reserve(m_animationFiles.size() + animationBlobCount); for (uint32_t i = 0; i < animationBlobCount; ++i) { uint32_t modelId = reader.readVarint(); animIds.push_back(modelId); reader.readVarint(); auto anim = ParseAnimations(reader); - if (modelId == 1) m_animationFiles.push_back({ "main", anim }); - else if (modelId == 2) m_animationFiles.push_back({ "arm", anim }); - else if (modelId == 3) m_animationFiles.push_back({ "extra", anim }); - else if (modelId == 4) m_animationFiles.push_back({ "tac", anim }); - else if (modelId == 5) m_animationFiles.push_back({ "arrow", anim }); - else if (modelId == 6) m_animationFiles.push_back({ "carryon", anim }); - else if (modelId == 7) m_animationFiles.push_back({ "parcool", anim }); - else if (modelId == 8) m_animationFiles.push_back({ "swem", anim }); - else if (modelId == 9) m_animationFiles.push_back({ "slashblade", anim }); - else if (modelId == 10) m_animationFiles.push_back({ "tlm", anim }); - else if (modelId == 11) m_animationFiles.push_back({ "fp.arm", anim }); - else if (modelId == 12) m_animationFiles.push_back({ "immersive_melodies", anim }); - else if (modelId == 13) m_animationFiles.push_back({ "iss", anim }); // irons_spell_books - else throw ParserUnknownField(); + appendFile(m_animationFiles, animationNameForModelId(modelId, false), std::move(anim)); } printf("Parse Animations finish. 0x%08zX\n", reader.offset); uint32_t customTextureCount = reader.readVarint(); + m_textureFiles.reserve(m_textureFiles.size() + customTextureCount); for (uint32_t i = 0; i < customTextureCount; ++i) { std::string textureName = reader.readString(); printf("texture %s at 0x%08zX\n", textureName.c_str(), reader.offset); @@ -2212,7 +2339,7 @@ void YSMParserV3::deserializeLegacyV1(BufferReader& reader) { if (pngBytes.empty()) { throw ParserUnknownField(); } - m_textureFiles.push_back({ textureName, pngBytes }); + appendFile(m_textureFiles, std::move(textureName), std::move(pngBytes)); } printf("Parse Textures finish. 0x%08zX\n", reader.offset); @@ -2267,11 +2394,14 @@ void YSMParserV3::deserializeLegacyV1(BufferReader& reader) { } void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { + reader.setContext("deserializeLegacyV15"); uint32_t unk_needSkipBytes = reader.readVarint(); reader.offset += unk_needSkipBytes; uint32_t modelCount = reader.readVarint(); std::vector modelIds; + modelIds.reserve(modelCount); + m_modelFiles.reserve(m_modelFiles.size() + modelCount); for (uint32_t i = 0; i < modelCount; ++i) { uint32_t modelId = reader.readVarint(); modelIds.push_back(modelId); @@ -2284,36 +2414,26 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { else if (modelId == 2) modelName = "arm"; else if (modelId == 3) modelName = "arrow"; else throw ParserUnknownField(); - m_modelFiles.push_back({ modelName, model }); + appendFile(m_modelFiles, std::move(modelName), std::move(model)); } uint32_t animationBlobCount = reader.readVarint(); std::vector animIds; + animIds.reserve(animationBlobCount); + m_animationFiles.reserve(m_animationFiles.size() + animationBlobCount); for (uint32_t i = 0; i < animationBlobCount; ++i) { uint32_t modelId = reader.readVarint(); animIds.push_back(modelId); reader.readVarint(); auto anim = ParseAnimations(reader); - if (modelId == 1) m_animationFiles.push_back({ "main", anim }); - else if (modelId == 2) m_animationFiles.push_back({ "arm", anim }); - else if (modelId == 3) m_animationFiles.push_back({ "extra", anim }); - else if (modelId == 4) m_animationFiles.push_back({ "tac", anim }); - else if (modelId == 5) m_animationFiles.push_back({ "arrow", anim }); - else if (modelId == 6) m_animationFiles.push_back({ "carryon", anim }); - else if (modelId == 7) m_animationFiles.push_back({ "parcool", anim }); - else if (modelId == 8) m_animationFiles.push_back({ "swem", anim }); - else if (modelId == 9) m_animationFiles.push_back({ "slashblade", anim }); - else if (modelId == 10) m_animationFiles.push_back({ "tlm", anim }); - else if (modelId == 11) m_animationFiles.push_back({ "fp_arm", anim }); - else if (modelId == 12) m_animationFiles.push_back({ "immersive_melodies", anim }); - else if (modelId == 13) m_animationFiles.push_back({ "irons_spell_books", anim }); - else throw ParserUnknownField(); + appendFile(m_animationFiles, animationNameForModelId(modelId, true), std::move(anim)); } if (m_format > 9) { printf("start Controllers 0x%08zX\n", reader.offset); uint32_t animControllerCount = reader.readVarint(); + m_animControllerFiles.reserve(m_animControllerFiles.size() + animControllerCount); for (uint32_t i = 0; i < animControllerCount; i++) { // 全局控制器的名称和 hash @@ -2328,7 +2448,7 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { hash = reader.readString(); } auto animController = ParseAnimationControllers(reader); - m_animControllerFiles.push_back({ controllerName, animController }); + appendFile(m_animControllerFiles, std::move(controllerName), std::move(animController)); } uint32_t animationControllerTableSize = reader.readVarint(); @@ -2343,6 +2463,7 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { printf("Reading Textures. 0x%08zX\n", reader.offset); uint32_t customTextureCount = reader.readVarint(); + m_textureFiles.reserve(m_textureFiles.size() + customTextureCount); for (uint32_t i = 0; i < customTextureCount; ++i) { std::string textureName = reader.readString(); if (textureName == "/ARROW\\") { @@ -2355,7 +2476,7 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { if (pngBytes.empty()) { throw ParserUnknownField(); } - m_textureFiles.push_back({ textureName, pngBytes }); + appendFile(m_textureFiles, textureName, std::move(pngBytes)); printf("sub texture 0x%08zX\n", reader.offset); uint32_t subTextureSize = reader.readVarint(); @@ -2370,7 +2491,7 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { throw ParserUnknownField(); } std::string suffix = (specular_type == 1) ? "_normal" : (specular_type == 2 ? "_specular" : "_special"); - m_specialImageFiles.push_back({ textureName + suffix, pngBytes }); + appendFile(m_specialImageFiles, textureName + suffix, std::move(pngBytes)); } } @@ -2395,6 +2516,7 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { } uint32_t extraTextureCount = reader.readVarint(); + m_avatarFiles.reserve(m_avatarFiles.size() + extraTextureCount); for (uint32_t i = 0; i < extraTextureCount; ++i) { std::string textureName = reader.readString(); std::vector fileData = reader.readByteSequence(); @@ -2404,7 +2526,7 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { if (pngBytes.empty()) { throw ParserUnknownField(); } - m_avatarFiles.push_back({ textureName, pngBytes }); + appendFile(m_avatarFiles, std::move(textureName), std::move(pngBytes)); } uint32_t modelTableSize = reader.readVarint(); @@ -2472,6 +2594,7 @@ void YSMParserV3::deserializeLegacyV15(BufferReader& reader) { } void YSMParserV3::deserializeModern(BufferReader& reader) { + reader.setContext("deserializeModern"); // Sound ParseSoundFiles(reader); printf("Parse Sound finish. 0x%08zX\n", reader.offset); @@ -2523,16 +2646,17 @@ void YSMParserV3::deserializeModern(BufferReader& reader) { // 子纹理大小 uint32_t subTextureSize = reader.readVarint(); + subTextureFiles.reserve(subTextureSize); for (uint32_t i = 0; i < subTextureSize; i++) { uint32_t specular_type = reader.readVarint(); // 1为NORMAL,2为高光(spec) auto basicSubTexture = ParseSpecialImage(reader); if (specular_type == 1) { - subTextureFiles.push_back({ "normal", basicSubTexture }); + appendFile(subTextureFiles, "normal", std::move(basicSubTexture)); } else if (specular_type == 2) { - subTextureFiles.push_back({ "specular", basicSubTexture }); + appendFile(subTextureFiles, "specular", std::move(basicSubTexture)); } else { @@ -2559,18 +2683,18 @@ void YSMParserV3::deserializeModern(BufferReader& reader) { printf(" -> SubModule Name (Footer): %s\n", subModuleName.c_str()); if (subModuleName.find("minecraft:") != std::string::npos) subModuleName = subModuleName.substr(subModuleName.find(":") + 1); m_subEntityCategories[subModuleName] = categoryName; - m_modelFiles.push_back({ subModuleName, model }); + appendFile(m_modelFiles, subModuleName, model); for (auto& item : subTextureFiles) { - m_textureFiles.push_back({ subModuleName + "_" + item.first, item.second }); + appendFile(m_textureFiles, subModuleName + "_" + item.first, item.second); } - m_textureFiles.push_back({ subModuleName, basicTexture }); + appendFile(m_textureFiles, subModuleName, basicTexture); if (hasSubAnim) { - m_animationFiles.push_back({ categoryName + "/" + subModuleName, anim }); + appendFile(m_animationFiles, categoryName + "/" + subModuleName, anim); } if (hasSubController) { - m_animControllerFiles.push_back({ categoryName + "/" + subModuleName, subController }); + appendFile(m_animControllerFiles, categoryName + "/" + subModuleName, subController); } } @@ -2578,18 +2702,18 @@ void YSMParserV3::deserializeModern(BufferReader& reader) { } if (subModuleName.find("minecraft:") != std::string::npos) subModuleName = subModuleName.substr(subModuleName.find(":") + 1); m_subEntityCategories[subModuleName] = categoryName; - m_modelFiles.push_back({ subModuleName, model }); + appendFile(m_modelFiles, subModuleName, std::move(model)); for (auto& item : subTextureFiles) { - m_textureFiles.push_back({ subModuleName + "_" + item.first, item.second }); + appendFile(m_textureFiles, subModuleName + "_" + item.first, std::move(item.second)); } - m_textureFiles.push_back({ subModuleName, basicTexture }); + appendFile(m_textureFiles, subModuleName, std::move(basicTexture)); if (hasSubAnim) { - m_animationFiles.push_back({ categoryName + "/" + subModuleName, anim }); + appendFile(m_animationFiles, categoryName + "/" + subModuleName, std::move(anim)); } if (hasSubController) { - m_animControllerFiles.push_back({ categoryName + "/" + subModuleName, subController }); + appendFile(m_animControllerFiles, categoryName + "/" + subModuleName, std::move(subController)); } }; @@ -2629,28 +2753,17 @@ void YSMParserV3::deserializeModern(BufferReader& reader) { // animations uint32_t cnt = reader.readVarint(); + m_animationFiles.reserve(m_animationFiles.size() + cnt); for (uint32_t i = 0; i < cnt; i++) { uint32_t modelId = reader.readVarint(); auto anim = ParseAnimations(reader); - if (modelId == 1) m_animationFiles.push_back({ "main", anim }); - else if (modelId == 2) m_animationFiles.push_back({ "arm", anim }); - else if (modelId == 3) m_animationFiles.push_back({ "extra", anim }); - else if (modelId == 4) m_animationFiles.push_back({ "tac", anim }); - else if (modelId == 5) m_animationFiles.push_back({ "arrow", anim }); - else if (modelId == 6) m_animationFiles.push_back({ "carryon", anim }); - else if (modelId == 7) m_animationFiles.push_back({ "parcool", anim }); - else if (modelId == 8) m_animationFiles.push_back({ "swem", anim }); - else if (modelId == 9) m_animationFiles.push_back({ "slashblade", anim }); - else if (modelId == 10) m_animationFiles.push_back({ "tlm", anim }); - else if (modelId == 11) m_animationFiles.push_back({ "fp.arm", anim }); - else if (modelId == 12) m_animationFiles.push_back({ "immersive_melodies", anim }); - else if (modelId == 13) m_animationFiles.push_back({ "iss", anim }); // irons_spell_books - else throw ParserUnknownField(); + appendFile(m_animationFiles, animationNameForModelId(modelId, false), std::move(anim)); } // animations-controller uint32_t animControllerCount = reader.readVarint(); + m_animControllerFiles.reserve(m_animControllerFiles.size() + animControllerCount); for (uint32_t i = 0; i < animControllerCount; i++) { // 全局控制器的名称和 hash @@ -2665,13 +2778,14 @@ void YSMParserV3::deserializeModern(BufferReader& reader) { hash = reader.readString(); } auto animController = ParseAnimationControllers(reader); - m_animControllerFiles.push_back({ controllerName, animController }); + appendFile(m_animControllerFiles, std::move(controllerName), std::move(animController)); } // Textures ParseTextureFiles(reader); uint32_t modelSize = reader.readVarint(); + m_modelFiles.reserve(m_modelFiles.size() + modelSize); for (uint32_t i = 0; i < modelSize; i++) { uint32_t modelId = reader.readVarint(); auto model = ParseModels(reader); @@ -2679,7 +2793,7 @@ void YSMParserV3::deserializeModern(BufferReader& reader) { if (modelId == 1) modelName = "main"; else if (modelId == 2) modelName = "arm"; else throw ParserUnknownField(); - m_modelFiles.push_back({ modelName, model }); + appendFile(m_modelFiles, std::move(modelName), std::move(model)); } printf("finish models: 0x%08zX\n", reader.offset); @@ -2722,9 +2836,13 @@ void YSMParserV3::parse() { using namespace MemoryUtils; static std::once_flag fpng_init_flag; + clearProfileEntries(); m_binaryData.clear(); + m_decrypted.clear(); + m_decompressed.clear(); auto ip = m_buffer.get(); std::string header = ip; + ScopedOstreamStateSilencer quietStdout(std::cout, !isVerbose()); std::call_once(fpng_init_flag, []() { fpng::fpng_init(); @@ -2735,7 +2853,9 @@ void YSMParserV3::parse() m_format = extractFormatFromHeader(header); } catch (const std::exception& e) { - std::cout << "Parse Failed: " << e.what() << std::endl; + if (isVerbose()) { + std::cout << "Parse Failed: " << e.what() << std::endl; + } throw ParserInvalidFileFormatException(); } @@ -2759,40 +2879,86 @@ void YSMParserV3::parse() ptrBinaryData += sizeof(uint32_t); // Verify File + auto stage_start = std::chrono::steady_clock::now(); uint64_t file_hash = CityHash64WithSeed( reinterpret_cast(ip), (m_size - sizeof(m_fileHash)), SEED_FILE_VERIFICATION ); + recordProfileStage( + "file_verify", + std::chrono::duration(std::chrono::steady_clock::now() - stage_start).count() + ); if (file_hash != m_fileHash) throw ParserCorruptedDataException(); - m_binaryData.assign(ptrBinaryData, ip + m_size - 64); + auto* binaryBegin = reinterpret_cast(ptrBinaryData); + auto* binaryEnd = reinterpret_cast(ip + m_size - 64); + if (binaryEnd < binaryBegin) throw ParserInvalidFileFormatException(); + std::span binaryData(binaryBegin, static_cast(binaryEnd - binaryBegin)); + if (isDebug()) { + m_binaryData.assign(binaryData.begin(), binaryData.end()); + } // Decrypt BinaryData - std::vector chacha_decrypted = CryptoUtils::ModifiedChaChaDecrypt(m_binaryData, m_key.data(), m_iv.data(), SEED_RES_VERIFICATION); - std::vector xorred_data = CryptoUtils::MT19937Xor_Decrypt(chacha_decrypted, m_key.data(), m_iv.data()); + stage_start = std::chrono::steady_clock::now(); + std::vector chacha_decrypted = CryptoUtils::ModifiedChaChaDecrypt(binaryData, m_key.data(), m_iv.data(), SEED_RES_VERIFICATION); + recordProfileStage( + "chacha_decrypt", + std::chrono::duration(std::chrono::steady_clock::now() - stage_start).count() + ); + + stage_start = std::chrono::steady_clock::now(); + CryptoUtils::MT19937XorInPlace(std::span(chacha_decrypted.data(), chacha_decrypted.size()), m_key.data(), m_iv.data()); + recordProfileStage( + "mt19937_xor", + std::chrono::duration(std::chrono::steady_clock::now() - stage_start).count() + ); // Parse Decrypted Data // First two bytes is Nonce length - uint16_t n = static_cast(xorred_data[0]) | (static_cast(xorred_data[1]) << 8); + stage_start = std::chrono::steady_clock::now(); + if (chacha_decrypted.size() < 2) throw ParserInvalidFileFormatException(); + uint16_t n = static_cast(chacha_decrypted[0]) | (static_cast(chacha_decrypted[1]) << 8); n &= 0x3ff; // Next Sequence is trueData - m_decrypted.assign(xorred_data.begin() + 2 + n, xorred_data.end()); + if (2u + n > chacha_decrypted.size()) throw ParserInvalidFileFormatException(); + std::span compressedData( + chacha_decrypted.data() + 2 + n, + chacha_decrypted.size() - 2 - n + ); + if (isDebug()) { + m_decrypted.assign(compressedData.begin(), compressedData.end()); + } + recordProfileStage( + "nonce_trim", + std::chrono::duration(std::chrono::steady_clock::now() - stage_start).count() + ); // m_decrypted need to be decompressed by ZSTD. - m_decompressed = CryptoUtils::DecompressZstd(m_decrypted); + stage_start = std::chrono::steady_clock::now(); + m_decompressed = CryptoUtils::DecompressZstd(compressedData); + recordProfileStage( + "zstd_decompress", + std::chrono::duration(std::chrono::steady_clock::now() - stage_start).count() + ); // Start Parse Files - std::cout << "Start Parse Files (format = " << m_format << ")\n"; - size_t offset = 0; + if (isVerbose()) { + std::cout << "Start Parse Files (format = " << m_format << ")\n"; + } + stage_start = std::chrono::steady_clock::now(); deserialize(m_decompressed.data(), m_decompressed.size()); + recordProfileStage( + "deserialize", + std::chrono::duration(std::chrono::steady_clock::now() - stage_start).count() + ); } -static void saveFile(const std::filesystem::path& filePath, const std::vector& data) { +static void saveFile(const std::filesystem::path& filePath, const std::vector& data, bool verbose) { // 直接使用 filesystem::path,确保 Windows 下由宽字符路径打开。 if (filePath.has_parent_path()) { std::filesystem::create_directories(filePath.parent_path()); @@ -2806,8 +2972,10 @@ static void saveFile(const std::filesystem::path& filePath, const std::vector(data.data()), data.size()); outFile.close(); - std::cout << "[EXPORT] " << PathUtils::path_to_utf8(filePath) - << " (" << data.size() << " bytes)" << std::endl; + if (verbose) { + std::cout << "[EXPORT] " << PathUtils::path_to_utf8(filePath) + << " (" << data.size() << " bytes)" << std::endl; + } } else { std::cerr << "Failed to open file: " << PathUtils::path_to_utf8(filePath) << std::endl; @@ -2836,17 +3004,17 @@ void YSMParserV3::saveToDirectory(std::string output_directory) if (useLegacyRootLayout) { if (!m_infoJsonFile.empty()) { - saveFile(dirPath / "info.json", m_infoJsonFile); + saveFile(dirPath / "info.json", m_infoJsonFile, isVerbose()); } } else if (!m_ysmJsonFile.empty()) { - saveFile(dirPath / "ysm.json", m_ysmJsonFile); + saveFile(dirPath / "ysm.json", m_ysmJsonFile, isVerbose()); } if (isDebug()) { - saveFile(dirPath / "_debug_m_decompressed.bin", m_decompressed); - saveFile(dirPath / "_debug_m_decrypted.bin", m_decrypted); - saveFile(dirPath / "_debug_m_binaryData.bin", m_binaryData); + saveFile(dirPath / "_debug_m_decompressed.bin", m_decompressed, isVerbose()); + saveFile(dirPath / "_debug_m_decrypted.bin", m_decrypted, isVerbose()); + saveFile(dirPath / "_debug_m_binaryData.bin", m_binaryData, isVerbose()); } auto exportMapped = [&](const std::vector>>& items, const fs::path& defaultFolder, const std::string& extension) { @@ -2862,7 +3030,7 @@ void YSMParserV3::saveToDirectory(std::string output_directory) fs::path safeRelativePath = p.parent_path() / PathUtils::utf8_to_path(safeFilename); auto fallbackPath = makeOutputPath(defaultFolder / safeRelativePath); - saveFile(fallbackPath, item.second); + saveFile(fallbackPath, item.second, isVerbose()); } }; @@ -2878,7 +3046,7 @@ void YSMParserV3::saveToDirectory(std::string output_directory) for (auto it = m_avatarFiles.begin(); it != m_avatarFiles.end(); ++it) { std::string safeFilename = sanitizeWindowsFilename(it->first + ".png"); fs::path outPath = makeOutputPath(fs::path("avatar") / PathUtils::utf8_to_path(safeFilename)); - saveFile(outPath, it->second); + saveFile(outPath, it->second, isVerbose()); } for (const auto& item : m_backgroundFiles) { @@ -2893,6 +3061,6 @@ void YSMParserV3::saveToDirectory(std::string output_directory) fs::path safeRelativePath = p.parent_path() / PathUtils::utf8_to_path(safeFilename); fs::path outPath = makeOutputPath(safeRelativePath); - saveFile(outPath, item.second); + saveFile(outPath, item.second, isVerbose()); } -} \ No newline at end of file +} diff --git a/external/cityhash/src/city.cc b/external/cityhash/src/city.cc index 2038aa5..be9c3b9 100644 --- a/external/cityhash/src/city.cc +++ b/external/cityhash/src/city.cc @@ -52,6 +52,11 @@ static uint32 UNALIGNED_LOAD32(const char *p) { #define bswap_32(x) _byteswap_ulong(x) #define bswap_64(x) _byteswap_uint64(x) +#elif defined(_WIN32) + +#define bswap_32(x) __builtin_bswap32(x) +#define bswap_64(x) __builtin_bswap64(x) + #elif defined(__APPLE__) // Mac OS X / Darwin features diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..94e0bfb --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1778869304, + "narHash": "sha256-30sZNZoA1cqF5JNO9fVX+wgiQYjB7HJqqJ4ztCDeBZE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "d233902339c02a9c334e7e593de68855ad26c4cb", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..5254f23 --- /dev/null +++ b/flake.nix @@ -0,0 +1,126 @@ +{ + description = "Development environments for YSMParser"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + }; + + outputs = { nixpkgs, ... }: + let + supportedSystems = [ + "x86_64-linux" + "aarch64-linux" + ]; + + forAllSystems = nixpkgs.lib.genAttrs supportedSystems; + in + { + devShells = forAllSystems (system: + let + pkgs = import nixpkgs { + inherit system; + }; + + mkHook = lines: builtins.concatStringsSep "\n" (lines ++ [ "" ]); + + emsdkCompat = pkgs.runCommand "emsdk-compat-${pkgs.emscripten.version}" { } ( + "mkdir -p \"$out/upstream\"\n" + + "ln -s ${pkgs.emscripten}/share/emscripten \"$out/upstream/emscripten\"\n" + ); + + nativePackages = with pkgs; [ + cmake + ninja + gcc + jdk + git + ]; + + nativeEnv = mkHook [ + "export JAVA_HOME=\"${pkgs.jdk.home}\"" + "export CMAKE_GENERATOR=\"Ninja\"" + "export CMAKE_PREFIX_PATH=\"${pkgs.jdk.home}:\${CMAKE_PREFIX_PATH:-}\"" + "export CMAKE_INCLUDE_PATH=\"${pkgs.jdk.home}/include:${pkgs.jdk.home}/include/linux:\${CMAKE_INCLUDE_PATH:-}\"" + "export CMAKE_LIBRARY_PATH=\"${pkgs.jdk.home}/lib:${pkgs.jdk.home}/lib/server:\${CMAKE_LIBRARY_PATH:-}\"" + ]; + + emCacheEnv = mkHook [ + "export EM_CACHE=\"$HOME/.cache/emscripten/ysmparser\"" + "mkdir -p \"$EM_CACHE\"" + ]; + in + rec { + native = pkgs.mkShell { + packages = nativePackages; + + shellHook = nativeEnv; + }; + + default = native; + + wasm = pkgs.mkShell { + packages = with pkgs; [ + cmake + ninja + emscripten + nodejs_22 + pnpm + git + ]; + + shellHook = nativeEnv + mkHook [ + "export EMSDK=\"${emsdkCompat}\"" + ] + emCacheEnv; + }; + + tauri = pkgs.mkShell { + packages = nativePackages ++ (with pkgs; [ + rustc + cargo + rustfmt + clippy + rust-analyzer + cargo-tauri + nodejs_22 + pnpm + pkg-config + ]); + + buildInputs = with pkgs; [ + openssl + glib + gtk3 + webkitgtk_4_1 + libsoup_3 + librsvg + dbus + libayatana-appindicator + ]; + + shellHook = nativeEnv + mkHook [ + "export RUST_SRC_PATH=\"${pkgs.rustPlatform.rustLibSrc}\"" + "export WEBKIT_DISABLE_DMABUF_RENDERER=1" + ]; + }; + + tauri-windows = pkgs.mkShell { + packages = nativePackages ++ (with pkgs; [ + rustup + cargo-xwin + lld + llvmPackages.llvm + nsis + nodejs_22 + pnpm + pkg-config + pkgsCross.mingwW64.stdenv.cc + ]); + + shellHook = nativeEnv + mkHook [ + "export PATH=\"$HOME/.cargo/bin:$PATH\"" + "export XWIN_CACHE_DIR=\"$PWD/out/xwin-cache\"" + ]; + }; + }); + }; +} diff --git a/public/.gitignore b/public/.gitignore new file mode 100644 index 0000000..250d804 --- /dev/null +++ b/public/.gitignore @@ -0,0 +1,6 @@ +node_modules/ +dist/ +src-tauri/target/ +src-tauri/gen/ +src-tauri/binaries/ +.flatpak-builder diff --git a/public/build.md b/public/build.md new file mode 100644 index 0000000..5a2f102 --- /dev/null +++ b/public/build.md @@ -0,0 +1,147 @@ +# Build + +This directory contains the Svelte/Tauri desktop frontend for YSMParser. +The Tauri app depends on the native C++ `YSMParser` executable as a sidecar. + +## Local Desktop Build + +Run from the repository root: + +```bash +nix develop .#tauri --command bash -c ' + cmake -S . -B build-cpp -G Ninja -DCMAKE_BUILD_TYPE=Release -DYSM_TARGET_JNI=OFF && + cmake --build build-cpp --parallel && + mkdir -p public/src-tauri/binaries && + cp build-cpp/YSMParser/YSMParser public/src-tauri/binaries/YSMParser-x86_64-unknown-linux-gnu && + chmod +x public/src-tauri/binaries/YSMParser-x86_64-unknown-linux-gnu && + cd public && + pnpm install --frozen-lockfile && + pnpm tauri build --no-bundle +' +``` + +The desktop binary is written to: + +```text +public/src-tauri/target/release/ysm-parser +``` + +## Cross-Build Windows Tauri From Linux + +Tauri supports cross-building Windows NSIS installers from Linux/macOS with +caveats. This project also needs a Windows parser sidecar, so the local release +script cross-builds the C++ `YSMParser.exe` with MinGW before running Tauri +with `cargo-xwin`. + +Run from the repository root: + +```bash +scripts/release.sh tauri-windows-x64 +``` + +The script enters `nix develop .#tauri-windows` automatically when `flake.nix` +is available. The first run can download the Windows SDK through `cargo-xwin`; +by default that cache is stored in: + +```text +out/xwin-cache/ +``` + +The generated archive is written under: + +```text +out/release/ +``` + +Cross-built Windows `.msi` installers are not supported by Tauri because WiX +only runs on Windows. The cross-build target intentionally produces an NSIS +setup `.exe`. + +## macOS Tauri Builds + +macOS `.app` and `.dmg` bundles must be produced on a macOS host. From a Mac, +run: + +```bash +scripts/release.sh tauri +``` + +For automated release artifacts, use the macOS GitHub Actions runner configured +in `.github/workflows/ci.yml`. + +## Browser-only Web Build + +The browser build does not use the native Tauri sidecar. It needs the web +WebAssembly build of the parser next to the generated frontend files. + +Run from the repository root: + +```bash +nix develop .#wasm --command bash public/scripts/build-web.sh +``` + +Or from `public/` after entering the wasm shell: + +```bash +pnpm run build:web +``` + +The static site is written to: + +```text +public/dist/ +``` + +Serve `public/dist/` with any static web server. Do not open `index.html` +directly from the filesystem, because browser WASM loading requires HTTP. + +For a quick local preview: + +```bash +nix develop .#wasm --command bash -c ' + cd public && + pnpm preview --host 127.0.0.1 +' +``` + +## Flatpak Build + +The Flatpak manifest is: + +```text +public/flatpak/com.openysm.ysmparser.json +``` + +Run from the repository root: + +```bash +nix develop --command bash -c ' + cd public && + flatpak-builder --disable-rofiles-fuse --force-clean build flatpak/com.openysm.ysmparser.json +' +``` + +To install the Flatpak locally: + +```bash +nix develop --command bash -c ' + cd public && + flatpak-builder --user --install --force-clean build flatpak/com.openysm.ysmparser.json +' +``` + +Then run: + +```bash +flatpak run com.openysm.ysmparser +``` + +## Notes + +- The Flatpak manifest builds the C++ sidecar first, copies it into + `public/src-tauri/binaries/YSMParser-x86_64-unknown-linux-gnu`, builds the + Svelte frontend, then builds the Tauri shell. +- Flatpak builds run `pnpm` with `CI=true` so dependency installation works in + the non-interactive builder environment. +- `public/build/`, `public/dist/`, `public/node_modules/`, and + `public/.flatpak-builder/` are generated outputs. diff --git a/public/flatpak/.gitignore b/public/flatpak/.gitignore new file mode 100644 index 0000000..4228a1e --- /dev/null +++ b/public/flatpak/.gitignore @@ -0,0 +1,5 @@ +build/ +install/ +repo/ +*.flatpak + diff --git a/public/flatpak/com.openysm.ysmparser.desktop b/public/flatpak/com.openysm.ysmparser.desktop new file mode 100644 index 0000000..296332d --- /dev/null +++ b/public/flatpak/com.openysm.ysmparser.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=YSMParser +Comment=.ysm model file decryptor and exporter +Exec=ysm-parser +Icon=com.openysm.ysmparser +Type=Application +Categories=Utility;Graphics; +Terminal=false +StartupNotify=true diff --git a/public/flatpak/com.openysm.ysmparser.json b/public/flatpak/com.openysm.ysmparser.json new file mode 100644 index 0000000..e62b83d --- /dev/null +++ b/public/flatpak/com.openysm.ysmparser.json @@ -0,0 +1,74 @@ +{ + "id": "com.openysm.ysmparser", + "runtime": "org.gnome.Platform", + "runtime-version": "47", + "sdk": "org.gnome.Sdk", + "sdk-extensions": [ + "org.freedesktop.Sdk.Extension.rust-stable", + "org.freedesktop.Sdk.Extension.node22" + ], + "command": "ysm-parser", + "finish-args": [ + "--share=ipc", + "--share=network", + "--socket=x11", + "--socket=wayland", + "--device=dri", + "--env=WEBKIT_DISABLE_DMABUF_RENDERER=1", + "--env=WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1", + "--env=WEBKIT_FORCE_SANDBOX=0", + "--filesystem=host", + "--talk-name=org.freedesktop.FileManager1" + ], + "build-options": { + "append-path": "/usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node22/bin", + "build-args": [ "--share=network" ], + "env": { + "CARGO_HOME": "/run/build/ysm-parser/cargo-home", + "CI": "true", + "RUST_BACKTRACE": "1" + } + }, + "modules": [ + { + "name": "ysm-parser", + "buildsystem": "simple", + "build-commands": [ + "npm install -g pnpm --prefix /run/build/ysm-parser/.npm-global", + "", + "# ---- Build C++ sidecar (YSMParser CLI) ----", + "cmake -S . -B build-cpp -G Ninja -DCMAKE_BUILD_TYPE=Release -DYSM_TARGET_JNI=OFF", + "cmake --build build-cpp --parallel", + "", + "# Install sidecar binary into Tauri's expected path", + "mkdir -p public/src-tauri/binaries", + "cp build-cpp/YSMParser/YSMParser public/src-tauri/binaries/YSMParser-x86_64-unknown-linux-gnu", + "chmod +x public/src-tauri/binaries/YSMParser-x86_64-unknown-linux-gnu", + "", + "# ---- Install frontend dependencies ----", + "export PATH=\"/run/build/ysm-parser/.npm-global/bin:$PATH\" && cd public && mkdir -p \"$PWD/.home\" && HOME=\"$PWD/.home\" && pnpm install --frozen-lockfile && cd ..", + "", + "# ---- Build Tauri shell ----", + "export PATH=\"/run/build/ysm-parser/.npm-global/bin:$PATH\" && cd public && pnpm tauri build --no-bundle && cd ..", + "", + "# ---- Install to /app ----", + "install -Dm755 public/src-tauri/target/release/ysm-parser /app/bin/ysm-parser-bin", + "install -Dm755 public/src-tauri/target/release/YSMParser /app/bin/YSMParser", + "printf '%s\\n' '#!/usr/bin/env sh' 'export WEBKIT_DISABLE_DMABUF_RENDERER=1' 'export WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS=1' 'export WEBKIT_FORCE_SANDBOX=0' 'exec /app/bin/ysm-parser-bin \"$@\"' > /app/bin/ysm-parser", + "chmod +x /app/bin/ysm-parser", + "install -Dm644 public/flatpak/com.openysm.ysmparser.desktop /app/share/applications/com.openysm.ysmparser.desktop", + "install -Dm644 public/flatpak/com.openysm.ysmparser.metainfo.xml /app/share/metainfo/com.openysm.ysmparser.metainfo.xml", + "install -Dm644 public/src-tauri/icons/32x32.png /app/share/icons/hicolor/32x32/apps/com.openysm.ysmparser.png", + "install -Dm644 public/src-tauri/icons/64x64.png /app/share/icons/hicolor/64x64/apps/com.openysm.ysmparser.png", + "install -Dm644 public/src-tauri/icons/128x128.png /app/share/icons/hicolor/128x128/apps/com.openysm.ysmparser.png", + "install -Dm644 public/src-tauri/icons/icon.png /app/share/icons/hicolor/256x256/apps/com.openysm.ysmparser.png" + ], + "sources": [ + { + "type": "dir", + "path": "../.." + } + ] + } + ] +} diff --git a/public/flatpak/com.openysm.ysmparser.metainfo.xml b/public/flatpak/com.openysm.ysmparser.metainfo.xml new file mode 100644 index 0000000..3bfb938 --- /dev/null +++ b/public/flatpak/com.openysm.ysmparser.metainfo.xml @@ -0,0 +1,25 @@ + + + com.openysm.ysmparser + CC0-1.0 + LGPL-3.0-or-later + YSMParser + .ysm model file decryptor and exporter + +

+ A desktop tool to parse, decrypt, and export .ysm model files + (Minecraft: Java Edition Blockbench model format). + Supports V1, V2, and V3 file formats. +

+
+ https://github.com/OpenYSM/YSMParser + https://github.com/OpenYSM/YSMParser/issues + + Utility + Graphics + + + + + +
diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..a7d4918 --- /dev/null +++ b/public/index.html @@ -0,0 +1,29 @@ + + + + + + + + YSMParser + + + +
+ + + diff --git a/public/package.json b/public/package.json new file mode 100644 index 0000000..8c8cb72 --- /dev/null +++ b/public/package.json @@ -0,0 +1,27 @@ +{ + "name": "ysm-parser-frontend", + "version": "0.3.5", + "private": true, + "type": "module", + "scripts": { + "dev": "vite", + "build": "vite build", + "build:web": "scripts/build-web.sh", + "bench:wasm-node": "node scripts/bench-wasm-node.mjs", + "preview": "vite preview", + "tauri": "tauri" + }, + "dependencies": { + "@tauri-apps/api": "^2", + "@tauri-apps/plugin-dialog": "^2", + "@tauri-apps/plugin-shell": "^2", + "jszip": "^3.10.1" + }, + "devDependencies": { + "@sveltejs/vite-plugin-svelte": "^5", + "@tauri-apps/cli": "^2", + "svelte": "^5", + "typescript": "^5", + "vite": "^6" + } +} diff --git a/public/pnpm-lock.yaml b/public/pnpm-lock.yaml new file mode 100644 index 0000000..14dc814 --- /dev/null +++ b/public/pnpm-lock.yaml @@ -0,0 +1,1139 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: + dependencies: + '@tauri-apps/api': + specifier: ^2 + version: 2.11.0 + '@tauri-apps/plugin-dialog': + specifier: ^2 + version: 2.7.1 + '@tauri-apps/plugin-shell': + specifier: ^2 + version: 2.3.5 + jszip: + specifier: ^3.10.1 + version: 3.10.1 + devDependencies: + '@sveltejs/vite-plugin-svelte': + specifier: ^5 + version: 5.1.1(svelte@5.55.9)(vite@6.4.2) + '@tauri-apps/cli': + specifier: ^2 + version: 2.11.2 + svelte: + specifier: ^5 + version: 5.55.9 + typescript: + specifier: ^5 + version: 5.9.3 + vite: + specifier: ^6 + version: 6.4.2 + +packages: + + '@esbuild/aix-ppc64@0.25.12': + resolution: {integrity: sha512-Hhmwd6CInZ3dwpuGTF8fJG6yoWmsToE+vYgD4nytZVxcu1ulHpUQRAB1UJ8+N1Am3Mz4+xOByoQoSZf4D+CpkA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [aix] + + '@esbuild/android-arm64@0.25.12': + resolution: {integrity: sha512-6AAmLG7zwD1Z159jCKPvAxZd4y/VTO0VkprYy+3N2FtJ8+BQWFXU+OxARIwA46c5tdD9SsKGZ/1ocqBS/gAKHg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [android] + + '@esbuild/android-arm@0.25.12': + resolution: {integrity: sha512-VJ+sKvNA/GE7Ccacc9Cha7bpS8nyzVv0jdVgwNDaR4gDMC/2TTRc33Ip8qrNYUcpkOHUT5OZ0bUcNNVZQ9RLlg==} + engines: {node: '>=18'} + cpu: [arm] + os: [android] + + '@esbuild/android-x64@0.25.12': + resolution: {integrity: sha512-5jbb+2hhDHx5phYR2By8GTWEzn6I9UqR11Kwf22iKbNpYrsmRB18aX/9ivc5cabcUiAT/wM+YIZ6SG9QO6a8kg==} + engines: {node: '>=18'} + cpu: [x64] + os: [android] + + '@esbuild/darwin-arm64@0.25.12': + resolution: {integrity: sha512-N3zl+lxHCifgIlcMUP5016ESkeQjLj/959RxxNYIthIg+CQHInujFuXeWbWMgnTo4cp5XVHqFPmpyu9J65C1Yg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [darwin] + + '@esbuild/darwin-x64@0.25.12': + resolution: {integrity: sha512-HQ9ka4Kx21qHXwtlTUVbKJOAnmG1ipXhdWTmNXiPzPfWKpXqASVcWdnf2bnL73wgjNrFXAa3yYvBSd9pzfEIpA==} + engines: {node: '>=18'} + cpu: [x64] + os: [darwin] + + '@esbuild/freebsd-arm64@0.25.12': + resolution: {integrity: sha512-gA0Bx759+7Jve03K1S0vkOu5Lg/85dou3EseOGUes8flVOGxbhDDh/iZaoek11Y8mtyKPGF3vP8XhnkDEAmzeg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [freebsd] + + '@esbuild/freebsd-x64@0.25.12': + resolution: {integrity: sha512-TGbO26Yw2xsHzxtbVFGEXBFH0FRAP7gtcPE7P5yP7wGy7cXK2oO7RyOhL5NLiqTlBh47XhmIUXuGciXEqYFfBQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [freebsd] + + '@esbuild/linux-arm64@0.25.12': + resolution: {integrity: sha512-8bwX7a8FghIgrupcxb4aUmYDLp8pX06rGh5HqDT7bB+8Rdells6mHvrFHHW2JAOPZUbnjUpKTLg6ECyzvas2AQ==} + engines: {node: '>=18'} + cpu: [arm64] + os: [linux] + + '@esbuild/linux-arm@0.25.12': + resolution: {integrity: sha512-lPDGyC1JPDou8kGcywY0YILzWlhhnRjdof3UlcoqYmS9El818LLfJJc3PXXgZHrHCAKs/Z2SeZtDJr5MrkxtOw==} + engines: {node: '>=18'} + cpu: [arm] + os: [linux] + + '@esbuild/linux-ia32@0.25.12': + resolution: {integrity: sha512-0y9KrdVnbMM2/vG8KfU0byhUN+EFCny9+8g202gYqSSVMonbsCfLjUO+rCci7pM0WBEtz+oK/PIwHkzxkyharA==} + engines: {node: '>=18'} + cpu: [ia32] + os: [linux] + + '@esbuild/linux-loong64@0.25.12': + resolution: {integrity: sha512-h///Lr5a9rib/v1GGqXVGzjL4TMvVTv+s1DPoxQdz7l/AYv6LDSxdIwzxkrPW438oUXiDtwM10o9PmwS/6Z0Ng==} + engines: {node: '>=18'} + cpu: [loong64] + os: [linux] + + '@esbuild/linux-mips64el@0.25.12': + resolution: {integrity: sha512-iyRrM1Pzy9GFMDLsXn1iHUm18nhKnNMWscjmp4+hpafcZjrr2WbT//d20xaGljXDBYHqRcl8HnxbX6uaA/eGVw==} + engines: {node: '>=18'} + cpu: [mips64el] + os: [linux] + + '@esbuild/linux-ppc64@0.25.12': + resolution: {integrity: sha512-9meM/lRXxMi5PSUqEXRCtVjEZBGwB7P/D4yT8UG/mwIdze2aV4Vo6U5gD3+RsoHXKkHCfSxZKzmDssVlRj1QQA==} + engines: {node: '>=18'} + cpu: [ppc64] + os: [linux] + + '@esbuild/linux-riscv64@0.25.12': + resolution: {integrity: sha512-Zr7KR4hgKUpWAwb1f3o5ygT04MzqVrGEGXGLnj15YQDJErYu/BGg+wmFlIDOdJp0PmB0lLvxFIOXZgFRrdjR0w==} + engines: {node: '>=18'} + cpu: [riscv64] + os: [linux] + + '@esbuild/linux-s390x@0.25.12': + resolution: {integrity: sha512-MsKncOcgTNvdtiISc/jZs/Zf8d0cl/t3gYWX8J9ubBnVOwlk65UIEEvgBORTiljloIWnBzLs4qhzPkJcitIzIg==} + engines: {node: '>=18'} + cpu: [s390x] + os: [linux] + + '@esbuild/linux-x64@0.25.12': + resolution: {integrity: sha512-uqZMTLr/zR/ed4jIGnwSLkaHmPjOjJvnm6TVVitAa08SLS9Z0VM8wIRx7gWbJB5/J54YuIMInDquWyYvQLZkgw==} + engines: {node: '>=18'} + cpu: [x64] + os: [linux] + + '@esbuild/netbsd-arm64@0.25.12': + resolution: {integrity: sha512-xXwcTq4GhRM7J9A8Gv5boanHhRa/Q9KLVmcyXHCTaM4wKfIpWkdXiMog/KsnxzJ0A1+nD+zoecuzqPmCRyBGjg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [netbsd] + + '@esbuild/netbsd-x64@0.25.12': + resolution: {integrity: sha512-Ld5pTlzPy3YwGec4OuHh1aCVCRvOXdH8DgRjfDy/oumVovmuSzWfnSJg+VtakB9Cm0gxNO9BzWkj6mtO1FMXkQ==} + engines: {node: '>=18'} + cpu: [x64] + os: [netbsd] + + '@esbuild/openbsd-arm64@0.25.12': + resolution: {integrity: sha512-fF96T6KsBo/pkQI950FARU9apGNTSlZGsv1jZBAlcLL1MLjLNIWPBkj5NlSz8aAzYKg+eNqknrUJ24QBybeR5A==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openbsd] + + '@esbuild/openbsd-x64@0.25.12': + resolution: {integrity: sha512-MZyXUkZHjQxUvzK7rN8DJ3SRmrVrke8ZyRusHlP+kuwqTcfWLyqMOE3sScPPyeIXN/mDJIfGXvcMqCgYKekoQw==} + engines: {node: '>=18'} + cpu: [x64] + os: [openbsd] + + '@esbuild/openharmony-arm64@0.25.12': + resolution: {integrity: sha512-rm0YWsqUSRrjncSXGA7Zv78Nbnw4XL6/dzr20cyrQf7ZmRcsovpcRBdhD43Nuk3y7XIoW2OxMVvwuRvk9XdASg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [openharmony] + + '@esbuild/sunos-x64@0.25.12': + resolution: {integrity: sha512-3wGSCDyuTHQUzt0nV7bocDy72r2lI33QL3gkDNGkod22EsYl04sMf0qLb8luNKTOmgF/eDEDP5BFNwoBKH441w==} + engines: {node: '>=18'} + cpu: [x64] + os: [sunos] + + '@esbuild/win32-arm64@0.25.12': + resolution: {integrity: sha512-rMmLrur64A7+DKlnSuwqUdRKyd3UE7oPJZmnljqEptesKM8wx9J8gx5u0+9Pq0fQQW8vqeKebwNXdfOyP+8Bsg==} + engines: {node: '>=18'} + cpu: [arm64] + os: [win32] + + '@esbuild/win32-ia32@0.25.12': + resolution: {integrity: sha512-HkqnmmBoCbCwxUKKNPBixiWDGCpQGVsrQfJoVGYLPT41XWF8lHuE5N6WhVia2n4o5QK5M4tYr21827fNhi4byQ==} + engines: {node: '>=18'} + cpu: [ia32] + os: [win32] + + '@esbuild/win32-x64@0.25.12': + resolution: {integrity: sha512-alJC0uCZpTFrSL0CCDjcgleBXPnCrEAhTBILpeAp7M/OFgoqtAetfBzX0xM00MUsVVPpVjlPuMbREqnZCXaTnA==} + engines: {node: '>=18'} + cpu: [x64] + os: [win32] + + '@jridgewell/gen-mapping@0.3.13': + resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==} + + '@jridgewell/remapping@2.3.5': + resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==} + + '@jridgewell/resolve-uri@3.1.2': + resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==} + engines: {node: '>=6.0.0'} + + '@jridgewell/sourcemap-codec@1.5.5': + resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==} + + '@jridgewell/trace-mapping@0.3.31': + resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==} + + '@rollup/rollup-android-arm-eabi@4.60.4': + resolution: {integrity: sha512-F5QXMSiFebS9hKZj02XhWLLnRpJ3B3AROP0tWbFBSj+6kCbg5m9j5JoHKd4mmSVy5mS/IMQloYgYxCuJC0fxEQ==} + cpu: [arm] + os: [android] + + '@rollup/rollup-android-arm64@4.60.4': + resolution: {integrity: sha512-GxxTKApUpzRhof7poWvCJHRF51C67u1R7D6DiluBE8wKU1u5GWE8t+v81JvJYtbawoBFX1hLv5Ei4eVjkWokaw==} + cpu: [arm64] + os: [android] + + '@rollup/rollup-darwin-arm64@4.60.4': + resolution: {integrity: sha512-tua0TaJxMOB1R0V0RS1jFZ/RpURFDJIOR2A6jWwQeawuFyS4gBW+rntLRaQd0EQ4bd6Vp44Z2rXW+YYDBsj6IA==} + cpu: [arm64] + os: [darwin] + + '@rollup/rollup-darwin-x64@4.60.4': + resolution: {integrity: sha512-CSKq7MsP+5PFIcydhAiR1K0UhEI1A2jWXVKHPCBZ151yOutENwvnPocgVHkivu2kviURtCEB6zUQw0vs8RrhMg==} + cpu: [x64] + os: [darwin] + + '@rollup/rollup-freebsd-arm64@4.60.4': + resolution: {integrity: sha512-+O8OkVdyvXMtJEciu2wS/pzm1IxntEEQx3z5TAVy4l32G0etZn+RsA48ARRrFm6Ri8fvqPQfgrvNxSjKAbnd3g==} + cpu: [arm64] + os: [freebsd] + + '@rollup/rollup-freebsd-x64@4.60.4': + resolution: {integrity: sha512-Iw3oMskH3AfNuhU0MSN7vNbdi4me/NiYo2azqPz/Le16zHSa+3RRmliCMWWQmh4lcndccU40xcJuTYJZxNo/lw==} + cpu: [x64] + os: [freebsd] + + '@rollup/rollup-linux-arm-gnueabihf@4.60.4': + resolution: {integrity: sha512-EIPRXTVQpHyF8WOo219AD2yEltPehLTcTMz2fn6JsatLYSzQf00hj3rulF+yauOlF9/FtM2WpkT/hJh/KJFGhA==} + cpu: [arm] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm-musleabihf@4.60.4': + resolution: {integrity: sha512-J3Yh9PzzF1Ovah2At+lHiGQdsYgArxBbXv/zHfSyaiFQEqvNv7DcW98pCrmdjCZBrqBiKrKKe2V+aaSGWuBe/w==} + cpu: [arm] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-arm64-gnu@4.60.4': + resolution: {integrity: sha512-BFDEZMYfUvLn37ONE1yMBojPxnMlTFsdyNoqncT0qFq1mAfllL+ATMMJd8TeuVMiX84s1KbcxcZbXInmcO2mRg==} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-arm64-musl@4.60.4': + resolution: {integrity: sha512-pc9EYOSlOgdQ2uPl1o9PF6/kLSgaUosia7gOuS8mB69IxJvlclko1MECXysjs5ryez1/5zjYqx3+xYU0TU6R1A==} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-loong64-gnu@4.60.4': + resolution: {integrity: sha512-NxnomyxYerDh5n4iLrNa+sH+Z+U4BMEE46V2PgQ/hoB909i8gV1M5wPojWg9fk1jWpO3IQnOs20K4wyZuFLEFQ==} + cpu: [loong64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-loong64-musl@4.60.4': + resolution: {integrity: sha512-nbJnQ8a3z1mtmrwImCYhc6BGpThAyYVRQxw9uKSKG4wR6aAYno9sVjJ0zaZcW9BPJX1GbrDPf+SvdWjgTuDmnw==} + cpu: [loong64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-ppc64-gnu@4.60.4': + resolution: {integrity: sha512-2EU6acNrQLd8tYvo/LXW535wupT3m6fo7HKo6lr7ktQoItxTyOL1ZCR/GfGCuXl2vR+zmfI6eRXkSemafv+iVg==} + cpu: [ppc64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-ppc64-musl@4.60.4': + resolution: {integrity: sha512-WeBtoMuaMxiiIrO2IYP3xs6GMWkJP2C0EoT8beTLkUPmzV1i/UcOSVw1d5r9KBODtHKilG5yFxsGRnBbK3wJ4A==} + cpu: [ppc64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-riscv64-gnu@4.60.4': + resolution: {integrity: sha512-FJHFfqpKUI3A10WrWKiFbBZ7yVbGT4q4B5o1qKFFojqpaYoh9LrQgqWCmmcxQzVSXYtyB5bzkXrYzlHTs21MYA==} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-riscv64-musl@4.60.4': + resolution: {integrity: sha512-mcEl6CUT5IAUmQf1m9FYSmVqCJlpQ8r8eyftFUHG8i9OhY7BkBXSUdnLH5DOf0wCOjcP9v/QO93zpmF1SptCCw==} + cpu: [riscv64] + os: [linux] + libc: [musl] + + '@rollup/rollup-linux-s390x-gnu@4.60.4': + resolution: {integrity: sha512-ynt3JxVd2w2buzoKDWIyiV1pJW93xlQic1THVLXilz429oijRpSHivZAgp65KBu+cMcgf1eVVjdnTLvPxgCuoQ==} + cpu: [s390x] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-gnu@4.60.4': + resolution: {integrity: sha512-Boiz5+MsaROEWDf+GGEwF8VMHGhlUoQMtIPjOgA5fv4osupqTVnJteQNKJwUcnUog2G55jYXH7KZFFiJe0TEzQ==} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@rollup/rollup-linux-x64-musl@4.60.4': + resolution: {integrity: sha512-+qfSY27qIrFfI/Hom04KYFw3GKZSGU4lXus51wsb5EuySfFlWRwjkKWoE9emgRw/ukoT4Udsj4W/+xxG8VbPKg==} + cpu: [x64] + os: [linux] + libc: [musl] + + '@rollup/rollup-openbsd-x64@4.60.4': + resolution: {integrity: sha512-VpTfOPHgVXEBeeR8hZ2O0F3aSso+JDWqTWmTmzcQKted54IAdUVbxE+j/MVxUsKa8L20HJhv3vUezVPoquqWjA==} + cpu: [x64] + os: [openbsd] + + '@rollup/rollup-openharmony-arm64@4.60.4': + resolution: {integrity: sha512-IPOsh5aRYuLv/nkU51X10Bf75Bsf6+gZdx1X+QP5QM6lIJFHHqbHLG0uJn/hWthzo13UAc2umiUorqZy3axoZg==} + cpu: [arm64] + os: [openharmony] + + '@rollup/rollup-win32-arm64-msvc@4.60.4': + resolution: {integrity: sha512-4QzE9E81OohJ/HKzHhsqU+zcYYojVOXlFMs1DdyMT6qXl/niOH7AVElmmEdUNHHS/oRkc++d5k6Vy85zFs0DEw==} + cpu: [arm64] + os: [win32] + + '@rollup/rollup-win32-ia32-msvc@4.60.4': + resolution: {integrity: sha512-zTPgT1YuHHcd+Tmx7h8aml0FWFVelV5N54oHow9SLj+GfoDy/huQ+UV396N/C7KpMDMiPspRktzM1/0r1usYEA==} + cpu: [ia32] + os: [win32] + + '@rollup/rollup-win32-x64-gnu@4.60.4': + resolution: {integrity: sha512-DRS4G7mi9lJxqEDezIkKCaUIKCrLUUDCUaCsTPCi/rtqaC6D/jjwslMQyiDU50Ka0JKpeXeRBFBAXwArY52vBw==} + cpu: [x64] + os: [win32] + + '@rollup/rollup-win32-x64-msvc@4.60.4': + resolution: {integrity: sha512-QVTUovf40zgTqlFVrKA1uXMVvU2QWEFWfAH8Wdc48IxLvrJMQVMBRjuQyUpzZCDkakImib9eVazbWlC6ksWtJw==} + cpu: [x64] + os: [win32] + + '@sveltejs/acorn-typescript@1.0.10': + resolution: {integrity: sha512-4WfKk68eTih+MiJD4fSbxN7E8kVBmTMPWHUPYjvl2N0rMs53YLTT8/YjKU5Dtnz5LqDjl7LEw4U7lXR2W3J5WA==} + peerDependencies: + acorn: ^8.9.0 + + '@sveltejs/vite-plugin-svelte-inspector@4.0.1': + resolution: {integrity: sha512-J/Nmb2Q2y7mck2hyCX4ckVHcR5tu2J+MtBEQqpDrrgELZ2uvraQcK/ioCV61AqkdXFgriksOKIceDcQmqnGhVw==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22} + peerDependencies: + '@sveltejs/vite-plugin-svelte': ^5.0.0 + svelte: ^5.0.0 + vite: ^6.0.0 + + '@sveltejs/vite-plugin-svelte@5.1.1': + resolution: {integrity: sha512-Y1Cs7hhTc+a5E9Va/xwKlAJoariQyHY+5zBgCZg4PFWNYQ1nMN9sjK1zhw1gK69DuqVP++sht/1GZg1aRwmAXQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22} + peerDependencies: + svelte: ^5.0.0 + vite: ^6.0.0 + + '@tauri-apps/api@2.11.0': + resolution: {integrity: sha512-7CinYODhky9lmO23xHnUFv0Xt43fbtWMyxZcLcRBlFkcgXKuEirBvHpmtJ89YMhyeGcq20Wuc47Fa4XjyniywA==} + + '@tauri-apps/cli-darwin-arm64@2.11.2': + resolution: {integrity: sha512-+4UZzLt+eOAEQCwgd+TqKgyUJMrvx+BgdXLLaqJYmPqzP+nE6YZr/hY6CWLYGQb8jFn99jEkmC6uA3tNvamA1w==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [darwin] + + '@tauri-apps/cli-darwin-x64@2.11.2': + resolution: {integrity: sha512-VjYYtZUPqDMLutSfJEyxFE3Bz+DPi7c8wC3imckgvciLDZLq4qwKJxBicg0BXGhXjJsl8vKWgWRFNMPELQ+Xyg==} + engines: {node: '>= 10'} + cpu: [x64] + os: [darwin] + + '@tauri-apps/cli-linux-arm-gnueabihf@2.11.2': + resolution: {integrity: sha512-yMemD6f4i95AQriS8EazyOFzbE34yjnP16i3IOzpHGQvBoy2DjypFMFBq0NtPuITURv/cOGguRtHR5d79/9CSA==} + engines: {node: '>= 10'} + cpu: [arm] + os: [linux] + + '@tauri-apps/cli-linux-arm64-gnu@2.11.2': + resolution: {integrity: sha512-cgI91D2wL8GSgoWwZXDqt+DwnuZCP2/bz03QAE4TrhgAKIsrB4hX26W/H1EONPUUNkqrsgeCD0wU6pcNjV/5kw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [glibc] + + '@tauri-apps/cli-linux-arm64-musl@2.11.2': + resolution: {integrity: sha512-X1rm0BERqAAggtYTESSgXrS3sz4Sb/OiPiz54UqISlXW+GkR3vNIGnsy/lejNmoXGVqri3Q53BCfQiclOIyRPw==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [linux] + libc: [musl] + + '@tauri-apps/cli-linux-riscv64-gnu@2.11.2': + resolution: {integrity: sha512-usbMLJbT3KtkOrBMDVeGYNM35aTHXx38SJSzTMSqqjeUIOQ+iVPjb2yAGNAE+KqmBbAx4FOFIyMeKXx2M/JKGQ==} + engines: {node: '>= 10'} + cpu: [riscv64] + os: [linux] + libc: [glibc] + + '@tauri-apps/cli-linux-x64-gnu@2.11.2': + resolution: {integrity: sha512-Ru4gwJKPG0ctVGchRGpRup4Y4lW2SSfFnrbQcyHhCliKy4g8Qz97TrUgCur4CbWyAgKxvGh3SjrkA0LDYzDGiw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [glibc] + + '@tauri-apps/cli-linux-x64-musl@2.11.2': + resolution: {integrity: sha512-eUm7T6clN1MMmNSRQ9gaWsQdyehQx2Gmn5hht/QUlqZQI/qcP2OJK5dnaxqwFzCr2HdsEo9ydxaqcS1oJzMvUw==} + engines: {node: '>= 10'} + cpu: [x64] + os: [linux] + libc: [musl] + + '@tauri-apps/cli-win32-arm64-msvc@2.11.2': + resolution: {integrity: sha512-HeeZW80jU+gVTOEX4X/hC6NVSAdDVXajwP5fxIZ/3z9WvUC7qrudX2GMTilYq6Dg0e0sk0XgsAJD1hZ5wPBXUA==} + engines: {node: '>= 10'} + cpu: [arm64] + os: [win32] + + '@tauri-apps/cli-win32-ia32-msvc@2.11.2': + resolution: {integrity: sha512-YhjQNZcXfbkCLyazSv1nPnJ9iRFE1wm6kc51FDbU10/Dk09io+6PAGMLjkxnX2GdM0qMnDmTjstY8mTDVvtKeA==} + engines: {node: '>= 10'} + cpu: [ia32] + os: [win32] + + '@tauri-apps/cli-win32-x64-msvc@2.11.2': + resolution: {integrity: sha512-d2JchlFIpZevZVReyqhQOekJmb1UH3rhZ5VX6sH3ty9ETE0TKQavpihvoScUXfKKpW6HZC0MrFGRU0ZtD+w3gA==} + engines: {node: '>= 10'} + cpu: [x64] + os: [win32] + + '@tauri-apps/cli@2.11.2': + resolution: {integrity: sha512-bk3HemqvGRoy+5D/dVMUQHKMYLglD0jVnMm/0iGMH6ufZ+p8r14m6BpIixwij3PBvZdvORUp1YifTD8QxVZ1Nw==} + engines: {node: '>= 10'} + hasBin: true + + '@tauri-apps/plugin-dialog@2.7.1': + resolution: {integrity: sha512-OK1UBXYt+ojcmxMktzzuyonYIFta8CmAASpX+CA+DTGK24KlHjhYI6x2iOJ/TjZF4N7/ACK1oFmEOjIY9IhzOQ==} + + '@tauri-apps/plugin-shell@2.3.5': + resolution: {integrity: sha512-jewtULhiQ7lI7+owCKAjc8tYLJr92U16bPOeAa472LHJdgaibLP83NcfAF2e+wkEcA53FxKQAZ7byDzs2eeizg==} + + '@types/estree@1.0.8': + resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==} + + '@types/estree@1.0.9': + resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==} + + '@types/trusted-types@2.0.7': + resolution: {integrity: sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==} + + acorn@8.16.0: + resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==} + engines: {node: '>=0.4.0'} + hasBin: true + + aria-query@5.3.1: + resolution: {integrity: sha512-Z/ZeOgVl7bcSYZ/u/rh0fOpvEpq//LZmdbkXyc7syVzjPAhfOa9ebsdTSjEBDU4vs5nC98Kfduj1uFo0qyET3g==} + engines: {node: '>= 0.4'} + + axobject-query@4.1.0: + resolution: {integrity: sha512-qIj0G9wZbMGNLjLmg1PT6v2mE9AH2zlnADJD/2tC6E00hgmhUOfEB6greHPAfLRSufHqROIUTkw6E+M3lH0PTQ==} + engines: {node: '>= 0.4'} + + clsx@2.1.1: + resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==} + engines: {node: '>=6'} + + core-util-is@1.0.3: + resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==} + + debug@4.4.3: + resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==} + engines: {node: '>=6.0'} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + + deepmerge@4.3.1: + resolution: {integrity: sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==} + engines: {node: '>=0.10.0'} + + devalue@5.8.1: + resolution: {integrity: sha512-4CXDYRBGqN+57wVJkuXBYmpAVUSg3L6JAQa/DFqm238G73E1wuyc/JhGQJzN7vUf/CMphYau2zXbfWzDR5aTEw==} + + esbuild@0.25.12: + resolution: {integrity: sha512-bbPBYYrtZbkt6Os6FiTLCTFxvq4tt3JKall1vRwshA3fdVztsLAatFaZobhkBC8/BrPetoa0oksYoKXoG4ryJg==} + engines: {node: '>=18'} + hasBin: true + + esm-env@1.2.2: + resolution: {integrity: sha512-Epxrv+Nr/CaL4ZcFGPJIYLWFom+YeV1DqMLHJoEd9SYRxNbaFruBwfEX/kkHUJf55j2+TUbmDcmuilbP1TmXHA==} + + esrap@2.2.9: + resolution: {integrity: sha512-4KijP+NxCWthMCUC3qHbE6n4vCjqgJS1uAYKhuT/GWfFTf1Qyive2TgOjep+gzbSzRfnNyaN/UU9YmdOt8Eg0A==} + peerDependencies: + '@typescript-eslint/types': ^8.2.0 + peerDependenciesMeta: + '@typescript-eslint/types': + optional: true + + fdir@6.5.0: + resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==} + engines: {node: '>=12.0.0'} + peerDependencies: + picomatch: ^3 || ^4 + peerDependenciesMeta: + picomatch: + optional: true + + fsevents@2.3.3: + resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==} + engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} + os: [darwin] + + immediate@3.0.6: + resolution: {integrity: sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==} + + inherits@2.0.4: + resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==} + + is-reference@3.0.3: + resolution: {integrity: sha512-ixkJoqQvAP88E6wLydLGGqCJsrFUnqoH6HnaczB8XmDH1oaWU+xxdptvikTgaEhtZ53Ky6YXiBuUI2WXLMCwjw==} + + isarray@1.0.0: + resolution: {integrity: sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==} + + jszip@3.10.1: + resolution: {integrity: sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g==} + + kleur@4.1.5: + resolution: {integrity: sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==} + engines: {node: '>=6'} + + lie@3.3.0: + resolution: {integrity: sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==} + + locate-character@3.0.0: + resolution: {integrity: sha512-SW13ws7BjaeJ6p7Q6CO2nchbYEc3X3J6WrmTTDto7yMPqVSZTUyY5Tjbid+Ab8gLnATtygYtiDIJGQRRn2ZOiA==} + + magic-string@0.30.21: + resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==} + + ms@2.1.3: + resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==} + + nanoid@3.3.12: + resolution: {integrity: sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + + pako@1.0.11: + resolution: {integrity: sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==} + + picocolors@1.1.1: + resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==} + + picomatch@4.0.4: + resolution: {integrity: sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==} + engines: {node: '>=12'} + + postcss@8.5.15: + resolution: {integrity: sha512-FfR8sjd4em2T6fb3I2MwAJU7HWVMr9zba+enmQeeWFfCbm+UOC/0X4DS8XtpUTMwWMGbjKYP7xjfNekzyGmB3A==} + engines: {node: ^10 || ^12 || >=14} + + process-nextick-args@2.0.1: + resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} + + readable-stream@2.3.8: + resolution: {integrity: sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==} + + rollup@4.60.4: + resolution: {integrity: sha512-WHeFSbZYsPu3+bLoNRUuAO+wavNlocOPf3wSHTP7hcFKVnJeWsYlCDbr3mTS14FCizf9ccIxXA8sGL8zKeQN3g==} + engines: {node: '>=18.0.0', npm: '>=8.0.0'} + hasBin: true + + safe-buffer@5.1.2: + resolution: {integrity: sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==} + + setimmediate@1.0.5: + resolution: {integrity: sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==} + + source-map-js@1.2.1: + resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==} + engines: {node: '>=0.10.0'} + + string_decoder@1.1.1: + resolution: {integrity: sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==} + + svelte@5.55.9: + resolution: {integrity: sha512-fTjjT8cHLDwigcu2j3pv7Jq04LklXevPB8uBgyHNiTXv+RMNvVnrjS4UEYrLMkhuq1vpCodHjiW+z/95SDs/fg==} + engines: {node: '>=18'} + + tinyglobby@0.2.16: + resolution: {integrity: sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==} + engines: {node: '>=12.0.0'} + + typescript@5.9.3: + resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==} + engines: {node: '>=14.17'} + hasBin: true + + util-deprecate@1.0.2: + resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + + vite@6.4.2: + resolution: {integrity: sha512-2N/55r4JDJ4gdrCvGgINMy+HH3iRpNIz8K6SFwVsA+JbQScLiC+clmAxBgwiSPgcG9U15QmvqCGWzMbqda5zGQ==} + engines: {node: ^18.0.0 || ^20.0.0 || >=22.0.0} + hasBin: true + peerDependencies: + '@types/node': ^18.0.0 || ^20.0.0 || >=22.0.0 + jiti: '>=1.21.0' + less: '*' + lightningcss: ^1.21.0 + sass: '*' + sass-embedded: '*' + stylus: '*' + sugarss: '*' + terser: ^5.16.0 + tsx: ^4.8.1 + yaml: ^2.4.2 + peerDependenciesMeta: + '@types/node': + optional: true + jiti: + optional: true + less: + optional: true + lightningcss: + optional: true + sass: + optional: true + sass-embedded: + optional: true + stylus: + optional: true + sugarss: + optional: true + terser: + optional: true + tsx: + optional: true + yaml: + optional: true + + vitefu@1.1.3: + resolution: {integrity: sha512-ub4okH7Z5KLjb6hDyjqrGXqWtWvoYdU3IGm/NorpgHncKoLTCfRIbvlhBm7r0YstIaQRYlp4yEbFqDcKSzXSSg==} + peerDependencies: + vite: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 + peerDependenciesMeta: + vite: + optional: true + + zimmerframe@1.1.4: + resolution: {integrity: sha512-B58NGBEoc8Y9MWWCQGl/gq9xBCe4IiKM0a2x7GZdQKOW5Exr8S1W24J6OgM1njK8xCRGvAJIL/MxXHf6SkmQKQ==} + +snapshots: + + '@esbuild/aix-ppc64@0.25.12': + optional: true + + '@esbuild/android-arm64@0.25.12': + optional: true + + '@esbuild/android-arm@0.25.12': + optional: true + + '@esbuild/android-x64@0.25.12': + optional: true + + '@esbuild/darwin-arm64@0.25.12': + optional: true + + '@esbuild/darwin-x64@0.25.12': + optional: true + + '@esbuild/freebsd-arm64@0.25.12': + optional: true + + '@esbuild/freebsd-x64@0.25.12': + optional: true + + '@esbuild/linux-arm64@0.25.12': + optional: true + + '@esbuild/linux-arm@0.25.12': + optional: true + + '@esbuild/linux-ia32@0.25.12': + optional: true + + '@esbuild/linux-loong64@0.25.12': + optional: true + + '@esbuild/linux-mips64el@0.25.12': + optional: true + + '@esbuild/linux-ppc64@0.25.12': + optional: true + + '@esbuild/linux-riscv64@0.25.12': + optional: true + + '@esbuild/linux-s390x@0.25.12': + optional: true + + '@esbuild/linux-x64@0.25.12': + optional: true + + '@esbuild/netbsd-arm64@0.25.12': + optional: true + + '@esbuild/netbsd-x64@0.25.12': + optional: true + + '@esbuild/openbsd-arm64@0.25.12': + optional: true + + '@esbuild/openbsd-x64@0.25.12': + optional: true + + '@esbuild/openharmony-arm64@0.25.12': + optional: true + + '@esbuild/sunos-x64@0.25.12': + optional: true + + '@esbuild/win32-arm64@0.25.12': + optional: true + + '@esbuild/win32-ia32@0.25.12': + optional: true + + '@esbuild/win32-x64@0.25.12': + optional: true + + '@jridgewell/gen-mapping@0.3.13': + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/remapping@2.3.5': + dependencies: + '@jridgewell/gen-mapping': 0.3.13 + '@jridgewell/trace-mapping': 0.3.31 + + '@jridgewell/resolve-uri@3.1.2': {} + + '@jridgewell/sourcemap-codec@1.5.5': {} + + '@jridgewell/trace-mapping@0.3.31': + dependencies: + '@jridgewell/resolve-uri': 3.1.2 + '@jridgewell/sourcemap-codec': 1.5.5 + + '@rollup/rollup-android-arm-eabi@4.60.4': + optional: true + + '@rollup/rollup-android-arm64@4.60.4': + optional: true + + '@rollup/rollup-darwin-arm64@4.60.4': + optional: true + + '@rollup/rollup-darwin-x64@4.60.4': + optional: true + + '@rollup/rollup-freebsd-arm64@4.60.4': + optional: true + + '@rollup/rollup-freebsd-x64@4.60.4': + optional: true + + '@rollup/rollup-linux-arm-gnueabihf@4.60.4': + optional: true + + '@rollup/rollup-linux-arm-musleabihf@4.60.4': + optional: true + + '@rollup/rollup-linux-arm64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-arm64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-loong64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-loong64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-ppc64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-ppc64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-riscv64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-riscv64-musl@4.60.4': + optional: true + + '@rollup/rollup-linux-s390x-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-x64-gnu@4.60.4': + optional: true + + '@rollup/rollup-linux-x64-musl@4.60.4': + optional: true + + '@rollup/rollup-openbsd-x64@4.60.4': + optional: true + + '@rollup/rollup-openharmony-arm64@4.60.4': + optional: true + + '@rollup/rollup-win32-arm64-msvc@4.60.4': + optional: true + + '@rollup/rollup-win32-ia32-msvc@4.60.4': + optional: true + + '@rollup/rollup-win32-x64-gnu@4.60.4': + optional: true + + '@rollup/rollup-win32-x64-msvc@4.60.4': + optional: true + + '@sveltejs/acorn-typescript@1.0.10(acorn@8.16.0)': + dependencies: + acorn: 8.16.0 + + '@sveltejs/vite-plugin-svelte-inspector@4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.9)(vite@6.4.2))(svelte@5.55.9)(vite@6.4.2)': + dependencies: + '@sveltejs/vite-plugin-svelte': 5.1.1(svelte@5.55.9)(vite@6.4.2) + debug: 4.4.3 + svelte: 5.55.9 + vite: 6.4.2 + transitivePeerDependencies: + - supports-color + + '@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.9)(vite@6.4.2)': + dependencies: + '@sveltejs/vite-plugin-svelte-inspector': 4.0.1(@sveltejs/vite-plugin-svelte@5.1.1(svelte@5.55.9)(vite@6.4.2))(svelte@5.55.9)(vite@6.4.2) + debug: 4.4.3 + deepmerge: 4.3.1 + kleur: 4.1.5 + magic-string: 0.30.21 + svelte: 5.55.9 + vite: 6.4.2 + vitefu: 1.1.3(vite@6.4.2) + transitivePeerDependencies: + - supports-color + + '@tauri-apps/api@2.11.0': {} + + '@tauri-apps/cli-darwin-arm64@2.11.2': + optional: true + + '@tauri-apps/cli-darwin-x64@2.11.2': + optional: true + + '@tauri-apps/cli-linux-arm-gnueabihf@2.11.2': + optional: true + + '@tauri-apps/cli-linux-arm64-gnu@2.11.2': + optional: true + + '@tauri-apps/cli-linux-arm64-musl@2.11.2': + optional: true + + '@tauri-apps/cli-linux-riscv64-gnu@2.11.2': + optional: true + + '@tauri-apps/cli-linux-x64-gnu@2.11.2': + optional: true + + '@tauri-apps/cli-linux-x64-musl@2.11.2': + optional: true + + '@tauri-apps/cli-win32-arm64-msvc@2.11.2': + optional: true + + '@tauri-apps/cli-win32-ia32-msvc@2.11.2': + optional: true + + '@tauri-apps/cli-win32-x64-msvc@2.11.2': + optional: true + + '@tauri-apps/cli@2.11.2': + optionalDependencies: + '@tauri-apps/cli-darwin-arm64': 2.11.2 + '@tauri-apps/cli-darwin-x64': 2.11.2 + '@tauri-apps/cli-linux-arm-gnueabihf': 2.11.2 + '@tauri-apps/cli-linux-arm64-gnu': 2.11.2 + '@tauri-apps/cli-linux-arm64-musl': 2.11.2 + '@tauri-apps/cli-linux-riscv64-gnu': 2.11.2 + '@tauri-apps/cli-linux-x64-gnu': 2.11.2 + '@tauri-apps/cli-linux-x64-musl': 2.11.2 + '@tauri-apps/cli-win32-arm64-msvc': 2.11.2 + '@tauri-apps/cli-win32-ia32-msvc': 2.11.2 + '@tauri-apps/cli-win32-x64-msvc': 2.11.2 + + '@tauri-apps/plugin-dialog@2.7.1': + dependencies: + '@tauri-apps/api': 2.11.0 + + '@tauri-apps/plugin-shell@2.3.5': + dependencies: + '@tauri-apps/api': 2.11.0 + + '@types/estree@1.0.8': {} + + '@types/estree@1.0.9': {} + + '@types/trusted-types@2.0.7': {} + + acorn@8.16.0: {} + + aria-query@5.3.1: {} + + axobject-query@4.1.0: {} + + clsx@2.1.1: {} + + core-util-is@1.0.3: {} + + debug@4.4.3: + dependencies: + ms: 2.1.3 + + deepmerge@4.3.1: {} + + devalue@5.8.1: {} + + esbuild@0.25.12: + optionalDependencies: + '@esbuild/aix-ppc64': 0.25.12 + '@esbuild/android-arm': 0.25.12 + '@esbuild/android-arm64': 0.25.12 + '@esbuild/android-x64': 0.25.12 + '@esbuild/darwin-arm64': 0.25.12 + '@esbuild/darwin-x64': 0.25.12 + '@esbuild/freebsd-arm64': 0.25.12 + '@esbuild/freebsd-x64': 0.25.12 + '@esbuild/linux-arm': 0.25.12 + '@esbuild/linux-arm64': 0.25.12 + '@esbuild/linux-ia32': 0.25.12 + '@esbuild/linux-loong64': 0.25.12 + '@esbuild/linux-mips64el': 0.25.12 + '@esbuild/linux-ppc64': 0.25.12 + '@esbuild/linux-riscv64': 0.25.12 + '@esbuild/linux-s390x': 0.25.12 + '@esbuild/linux-x64': 0.25.12 + '@esbuild/netbsd-arm64': 0.25.12 + '@esbuild/netbsd-x64': 0.25.12 + '@esbuild/openbsd-arm64': 0.25.12 + '@esbuild/openbsd-x64': 0.25.12 + '@esbuild/openharmony-arm64': 0.25.12 + '@esbuild/sunos-x64': 0.25.12 + '@esbuild/win32-arm64': 0.25.12 + '@esbuild/win32-ia32': 0.25.12 + '@esbuild/win32-x64': 0.25.12 + + esm-env@1.2.2: {} + + esrap@2.2.9: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + fdir@6.5.0(picomatch@4.0.4): + optionalDependencies: + picomatch: 4.0.4 + + fsevents@2.3.3: + optional: true + + immediate@3.0.6: {} + + inherits@2.0.4: {} + + is-reference@3.0.3: + dependencies: + '@types/estree': 1.0.9 + + isarray@1.0.0: {} + + jszip@3.10.1: + dependencies: + lie: 3.3.0 + pako: 1.0.11 + readable-stream: 2.3.8 + setimmediate: 1.0.5 + + kleur@4.1.5: {} + + lie@3.3.0: + dependencies: + immediate: 3.0.6 + + locate-character@3.0.0: {} + + magic-string@0.30.21: + dependencies: + '@jridgewell/sourcemap-codec': 1.5.5 + + ms@2.1.3: {} + + nanoid@3.3.12: {} + + pako@1.0.11: {} + + picocolors@1.1.1: {} + + picomatch@4.0.4: {} + + postcss@8.5.15: + dependencies: + nanoid: 3.3.12 + picocolors: 1.1.1 + source-map-js: 1.2.1 + + process-nextick-args@2.0.1: {} + + readable-stream@2.3.8: + dependencies: + core-util-is: 1.0.3 + inherits: 2.0.4 + isarray: 1.0.0 + process-nextick-args: 2.0.1 + safe-buffer: 5.1.2 + string_decoder: 1.1.1 + util-deprecate: 1.0.2 + + rollup@4.60.4: + dependencies: + '@types/estree': 1.0.8 + optionalDependencies: + '@rollup/rollup-android-arm-eabi': 4.60.4 + '@rollup/rollup-android-arm64': 4.60.4 + '@rollup/rollup-darwin-arm64': 4.60.4 + '@rollup/rollup-darwin-x64': 4.60.4 + '@rollup/rollup-freebsd-arm64': 4.60.4 + '@rollup/rollup-freebsd-x64': 4.60.4 + '@rollup/rollup-linux-arm-gnueabihf': 4.60.4 + '@rollup/rollup-linux-arm-musleabihf': 4.60.4 + '@rollup/rollup-linux-arm64-gnu': 4.60.4 + '@rollup/rollup-linux-arm64-musl': 4.60.4 + '@rollup/rollup-linux-loong64-gnu': 4.60.4 + '@rollup/rollup-linux-loong64-musl': 4.60.4 + '@rollup/rollup-linux-ppc64-gnu': 4.60.4 + '@rollup/rollup-linux-ppc64-musl': 4.60.4 + '@rollup/rollup-linux-riscv64-gnu': 4.60.4 + '@rollup/rollup-linux-riscv64-musl': 4.60.4 + '@rollup/rollup-linux-s390x-gnu': 4.60.4 + '@rollup/rollup-linux-x64-gnu': 4.60.4 + '@rollup/rollup-linux-x64-musl': 4.60.4 + '@rollup/rollup-openbsd-x64': 4.60.4 + '@rollup/rollup-openharmony-arm64': 4.60.4 + '@rollup/rollup-win32-arm64-msvc': 4.60.4 + '@rollup/rollup-win32-ia32-msvc': 4.60.4 + '@rollup/rollup-win32-x64-gnu': 4.60.4 + '@rollup/rollup-win32-x64-msvc': 4.60.4 + fsevents: 2.3.3 + + safe-buffer@5.1.2: {} + + setimmediate@1.0.5: {} + + source-map-js@1.2.1: {} + + string_decoder@1.1.1: + dependencies: + safe-buffer: 5.1.2 + + svelte@5.55.9: + dependencies: + '@jridgewell/remapping': 2.3.5 + '@jridgewell/sourcemap-codec': 1.5.5 + '@sveltejs/acorn-typescript': 1.0.10(acorn@8.16.0) + '@types/estree': 1.0.9 + '@types/trusted-types': 2.0.7 + acorn: 8.16.0 + aria-query: 5.3.1 + axobject-query: 4.1.0 + clsx: 2.1.1 + devalue: 5.8.1 + esm-env: 1.2.2 + esrap: 2.2.9 + is-reference: 3.0.3 + locate-character: 3.0.0 + magic-string: 0.30.21 + zimmerframe: 1.1.4 + transitivePeerDependencies: + - '@typescript-eslint/types' + + tinyglobby@0.2.16: + dependencies: + fdir: 6.5.0(picomatch@4.0.4) + picomatch: 4.0.4 + + typescript@5.9.3: {} + + util-deprecate@1.0.2: {} + + vite@6.4.2: + dependencies: + esbuild: 0.25.12 + fdir: 6.5.0(picomatch@4.0.4) + picomatch: 4.0.4 + postcss: 8.5.15 + rollup: 4.60.4 + tinyglobby: 0.2.16 + optionalDependencies: + fsevents: 2.3.3 + + vitefu@1.1.3(vite@6.4.2): + optionalDependencies: + vite: 6.4.2 + + zimmerframe@1.1.4: {} diff --git a/public/pnpm-workspace.yaml b/public/pnpm-workspace.yaml new file mode 100644 index 0000000..5ed0b5a --- /dev/null +++ b/public/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +allowBuilds: + esbuild: true diff --git a/public/scripts/bench-wasm-node.mjs b/public/scripts/bench-wasm-node.mjs new file mode 100644 index 0000000..5b20779 --- /dev/null +++ b/public/scripts/bench-wasm-node.mjs @@ -0,0 +1,348 @@ +#!/usr/bin/env node + +import { createHash } from "node:crypto"; +import { spawn } from "node:child_process"; +import { + access, + link, + lstat, + mkdir, + mkdtemp, + readdir, + readFile, + rm, + stat, + symlink, +} from "node:fs/promises"; +import { constants } from "node:fs"; +import { tmpdir } from "node:os"; +import path from "node:path"; +import process from "node:process"; +import { fileURLToPath } from "node:url"; +import { performance } from "node:perf_hooks"; + +const scriptDir = path.dirname(fileURLToPath(import.meta.url)); +const repoRoot = path.resolve(scriptDir, "../.."); +const defaultWasmJs = path.join( + repoRoot, + "out/build/wasm-release/YSMParser/YSMParser.js" +); + +function parseArgs(argv) { + const args = { + mode: "representative", + representativePerBucket: 8, + wasmJs: defaultWasmJs, + }; + + for (let i = 0; i < argv.length; i++) { + const arg = argv[i]; + const next = () => { + if (i + 1 >= argv.length) { + throw new Error(`Missing value for ${arg}`); + } + return argv[++i]; + }; + + if (arg === "--mode") args.mode = next(); + else if (arg === "--samples-dir") args.samplesDir = next(); + else if (arg === "--single-file") args.singleFile = next(); + else if (arg === "--wasm-js") args.wasmJs = next(); + else if (arg === "--representative-per-bucket") { + args.representativePerBucket = Number.parseInt(next(), 10); + } else if (arg === "--keep-temp") args.keepTemp = true; + else if (arg === "--help" || arg === "-h") { + printUsage(); + process.exit(0); + } else { + throw new Error(`Unknown argument: ${arg}`); + } + } + + if (!["single", "representative", "full"].includes(args.mode)) { + throw new Error("--mode must be one of: single, representative, full"); + } + if (args.mode === "single" && !args.singleFile) { + throw new Error("--single-file is required for --mode single"); + } + if (args.mode !== "single" && !args.samplesDir) { + throw new Error("--samples-dir is required for representative/full modes"); + } + if (!Number.isFinite(args.representativePerBucket) || args.representativePerBucket < 1) { + throw new Error("--representative-per-bucket must be a positive integer"); + } + + return args; +} + +function printUsage() { + console.error(`Usage: + node public/scripts/bench-wasm-node.mjs --mode single --single-file /path/model.ysm + node public/scripts/bench-wasm-node.mjs --mode representative --samples-dir /path/samples + node public/scripts/bench-wasm-node.mjs --mode full --samples-dir /path/samples + +Options: + --wasm-js PATH Defaults to out/build/wasm-release/YSMParser/YSMParser.js + --representative-per-bucket N Defaults to 8 + --keep-temp Keep temporary input/output directories +`); +} + +async function assertReadable(filePath) { + await access(filePath, constants.R_OK); +} + +async function listYsmFiles(samplesDir) { + const entries = await readdir(samplesDir, { withFileTypes: true }); + const files = []; + for (const entry of entries) { + if (!entry.isFile() || !entry.name.toLowerCase().endsWith(".ysm")) continue; + const fullPath = path.join(samplesDir, entry.name); + const info = await stat(fullPath); + files.push({ path: fullPath, size: info.size }); + } + files.sort((a, b) => a.path.localeCompare(b.path)); + return files; +} + +async function hashFile(filePath) { + const data = await readFile(filePath); + return createHash("sha256").update(data).digest("hex"); +} + +async function uniqueByContent(files) { + const seen = new Set(); + const unique = []; + for (const file of files) { + const hash = await hashFile(file.path); + if (seen.has(hash)) continue; + seen.add(hash); + unique.push({ ...file, hash }); + } + return unique; +} + +function bucketName(size) { + if (size < 100_000) return "lt100k"; + if (size < 1_000_000) return "100k_1m"; + if (size < 5_000_000) return "1m_5m"; + return "ge5m"; +} + +function pickSpread(files, count) { + if (files.length <= count) return files; + if (count === 1) return [files[0]]; + + const picked = []; + const seen = new Set(); + for (let i = 0; i < count; i++) { + const index = Math.round((i * (files.length - 1)) / (count - 1)); + const file = files[index]; + if (!seen.has(file.path)) { + seen.add(file.path); + picked.push(file); + } + } + return picked; +} + +async function selectRepresentative(samplesDir, perBucket) { + const all = await listYsmFiles(samplesDir); + const unique = await uniqueByContent(all); + const buckets = new Map(); + for (const file of unique) { + const name = bucketName(file.size); + if (!buckets.has(name)) buckets.set(name, []); + buckets.get(name).push(file); + } + + const selected = []; + for (const name of ["lt100k", "100k_1m", "1m_5m", "ge5m"]) { + const files = buckets.get(name) ?? []; + files.sort((a, b) => a.size - b.size || a.path.localeCompare(b.path)); + selected.push(...pickSpread(files, perBucket)); + } + + selected.sort((a, b) => a.path.localeCompare(b.path)); + return { + selected, + sourceCount: all.length, + uniqueCount: unique.length, + bucketCounts: Object.fromEntries( + [...buckets.entries()].map(([name, files]) => [name, files.length]) + ), + }; +} + +async function linkInputFiles(files) { + const dir = await mkdtemp(path.join(tmpdir(), "ysmparser-wasm-input-")); + for (let i = 0; i < files.length; i++) { + const file = files[i]; + const safeName = `${String(i + 1).padStart(4, "0")}-${path.basename(file.path)}`; + const dest = path.join(dir, safeName); + try { + await link(file.path, dest); + } catch { + await symlink(file.path, dest); + } + } + return dir; +} + +async function countOutputFiles(root) { + let count = 0; + let bytes = 0; + + async function walk(dir) { + const entries = await readdir(dir, { withFileTypes: true }); + for (const entry of entries) { + const fullPath = path.join(dir, entry.name); + if (entry.isDirectory()) { + await walk(fullPath); + } else if (entry.isFile()) { + const info = await lstat(fullPath); + count += 1; + bytes += info.size; + } + } + } + + await walk(root); + return { count, bytes }; +} + +function parseProfileLines(text) { + const stages = new Map(); + const lines = text.split(/\r?\n/).filter((line) => line.startsWith("YSM_PROFILE\t")); + for (const line of lines) { + const fields = new Map(); + for (const part of line.split("\t").slice(1)) { + const eq = part.indexOf("="); + if (eq === -1) continue; + fields.set(part.slice(0, eq), part.slice(eq + 1)); + } + const stage = fields.get("stage"); + const ms = Number.parseFloat(fields.get("ms") ?? "NaN"); + if (!stage || !Number.isFinite(ms)) continue; + const current = stages.get(stage) ?? { + count: 0, + totalMs: 0, + minMs: Number.POSITIVE_INFINITY, + maxMs: 0, + }; + current.count += 1; + current.totalMs += ms; + current.minMs = Math.min(current.minMs, ms); + current.maxMs = Math.max(current.maxMs, ms); + stages.set(stage, current); + } + + return Object.fromEntries( + [...stages.entries()].map(([stage, data]) => [ + stage, + { + count: data.count, + totalMs: Number(data.totalMs.toFixed(3)), + avgMs: Number((data.totalMs / data.count).toFixed(3)), + minMs: Number(data.minMs.toFixed(3)), + maxMs: Number(data.maxMs.toFixed(3)), + }, + ]) + ); +} + +async function runParser({ wasmJs, inputDir, outputDir }) { + await mkdir(outputDir, { recursive: true }); + const args = [wasmJs, "-i", inputDir, "-o", outputDir, "--profile"]; + const start = performance.now(); + const child = spawn(process.execPath, args, { + cwd: repoRoot, + stdio: ["ignore", "pipe", "pipe"], + }); + + let stdout = ""; + let stderr = ""; + child.stdout.setEncoding("utf8"); + child.stderr.setEncoding("utf8"); + child.stdout.on("data", (chunk) => { + stdout += chunk; + }); + child.stderr.on("data", (chunk) => { + stderr += chunk; + }); + + const status = await new Promise((resolve, reject) => { + child.on("error", reject); + child.on("close", (code, signal) => resolve({ code, signal })); + }); + const wallMs = performance.now() - start; + const output = await countOutputFiles(outputDir); + + return { + command: [process.execPath, ...args], + status, + wallMs, + stdoutBytes: Buffer.byteLength(stdout), + stderrBytes: Buffer.byteLength(stderr), + profile: parseProfileLines(`${stdout}\n${stderr}`), + output, + tail: `${stdout}\n${stderr}`.trim().split(/\r?\n/).slice(-20), + }; +} + +async function main() { + const args = parseArgs(process.argv.slice(2)); + await assertReadable(args.wasmJs); + + let inputDir = null; + let outputDir = null; + let tempInputDir = null; + let metadata = {}; + let files = []; + + try { + if (args.mode === "single") { + const info = await stat(args.singleFile); + files = [{ path: args.singleFile, size: info.size }]; + tempInputDir = await linkInputFiles(files); + inputDir = tempInputDir; + } else if (args.mode === "representative") { + metadata = await selectRepresentative(args.samplesDir, args.representativePerBucket); + files = metadata.selected; + tempInputDir = await linkInputFiles(files); + inputDir = tempInputDir; + } else { + files = await listYsmFiles(args.samplesDir); + inputDir = args.samplesDir; + metadata = { sourceCount: files.length }; + } + + outputDir = await mkdtemp(path.join(tmpdir(), "ysmparser-wasm-output-")); + const run = await runParser({ wasmJs: args.wasmJs, inputDir, outputDir }); + const result = { + mode: args.mode, + wasmJs: args.wasmJs, + inputDir, + outputDir, + fileCount: files.length, + inputBytes: files.reduce((sum, file) => sum + file.size, 0), + ...metadata, + run, + }; + console.log(JSON.stringify(result, null, 2)); + + if (run.status.code !== 0) { + process.exitCode = run.status.code ?? 1; + } + } finally { + if (!args.keepTemp) { + if (tempInputDir) await rm(tempInputDir, { recursive: true, force: true }); + if (outputDir) await rm(outputDir, { recursive: true, force: true }); + } + } +} + +main().catch((error) => { + console.error(error instanceof Error ? error.message : String(error)); + process.exit(1); +}); diff --git a/public/scripts/build-web.sh b/public/scripts/build-web.sh new file mode 100755 index 0000000..f90c536 --- /dev/null +++ b/public/scripts/build-web.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash +set -euo pipefail + +script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +public_dir="$(cd -- "$script_dir/.." && pwd)" +repo_root="$(cd -- "$public_dir/.." && pwd)" +wasm_build_dir="$repo_root/out/build/wasm-web-release/YSMParser" +dist_dir="$public_dir/dist" + +cd "$repo_root" + +cmake --preset wasm-web-release +cmake --build --preset wasm-web-release + +cd "$public_dir" + +if [ ! -x "$public_dir/node_modules/.bin/vite" ]; then + pnpm install --frozen-lockfile +fi +"$public_dir/node_modules/.bin/vite" build + +install -Dm644 "$wasm_build_dir/YSMParser.js" "$dist_dir/YSMParser.js" +install -Dm644 "$wasm_build_dir/YSMParser.wasm" "$dist_dir/YSMParser.wasm" + +printf 'Browser build written to %s\n' "$dist_dir" diff --git a/public/src-tauri/Cargo.lock b/public/src-tauri/Cargo.lock new file mode 100644 index 0000000..a246e40 --- /dev/null +++ b/public/src-tauri/Cargo.lock @@ -0,0 +1,5299 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[package]] +name = "alloc-no-stdlib" +version = "2.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" + +[[package]] +name = "alloc-stdlib" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" +dependencies = [ + "alloc-no-stdlib", +] + +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix", +] + +[[package]] +name = "async-recursion" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "base64" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + +[[package]] +name = "blocking" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "brotli" +version = "8.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4bd8b9603c7aa97359dbd97ecf258968c95f3adddd6db2f7e7a5bef101c84560" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", +] + +[[package]] +name = "brotli-decompressor" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "874bb8112abecc98cbd6d81ea4fa7e94fb9449648c93cc89aa40c81c24d7de03" +dependencies = [ + "alloc-no-stdlib", + "alloc-stdlib", +] + +[[package]] +name = "bs58" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf88ba1141d185c399bee5288d850d63b8369520c1eafc32a0430b5b6c287bf4" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" +dependencies = [ + "serde", +] + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.11.1", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "camino" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e629a66d692cb9ff1a1c664e41771b3dcaf961985a9774c0eb0bd1b51cf60a48" +dependencies = [ + "serde_core", +] + +[[package]] +name = "cargo-platform" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" +dependencies = [ + "serde", +] + +[[package]] +name = "cargo_metadata" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd5eb614ed4c27c5d706420e4320fbe3216ab31fa1c33cd8246ac36dae4479ba" +dependencies = [ + "camino", + "cargo-platform", + "semver", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[package]] +name = "cargo_toml" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374b7c592d9c00c1f4972ea58390ac6b18cbb6ab79011f3bdc90a0b82ca06b77" +dependencies = [ + "serde", + "toml 0.9.12+spec-1.1.0", +] + +[[package]] +name = "cc" +version = "1.2.62" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "num-traits", + "serde", + "windows-link 0.2.1", +] + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.11.1", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.11.1", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +version = "0.36.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dae61cf9c0abb83bd659dab65b7e4e38d8236824c85f0f804f173567bda257d2" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "ctor" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "352d39c2f7bef1d6ad73db6f5160efcaed66d94ef8c6c573a8410c00bf909a98" +dependencies = [ + "ctor-proc-macro", + "dtor", +] + +[[package]] +name = "ctor-proc-macro" +version = "0.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1" + +[[package]] +name = "darling" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d" +dependencies = [ + "darling_core", + "darling_macro", +] + +[[package]] +name = "darling_core" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0" +dependencies = [ + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.117", +] + +[[package]] +name = "darling_macro" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d" +dependencies = [ + "darling_core", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dbus" +version = "0.9.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b942602992bb7acfd1f51c49811c58a610ef9181b6e66f3e519d79b540a3bf73" +dependencies = [ + "libc", + "libdbus-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", + "serde_core", +] + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.117", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.11.1", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dlopen2" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dom_query" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521e380c0c8afb8d9a1e83a1822ee03556fc3e3e7dbc1fd30be14e37f9cb3f89" +dependencies = [ + "bit-set", + "cssparser", + "foldhash 0.2.0", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" +dependencies = [ + "serde", +] + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dtor" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1057d6c64987086ff8ed0fd3fbf377a6b7d205cc7715868cd401705f715cbe4" +dependencies = [ + "dtor-proc-macro", +] + +[[package]] +name = "dtor-proc-macro" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f678cf4a922c215c63e0de95eb1ff08a958a81d47e485cf9da1e27bf6305cfa5" + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "dyn-clone" +version = "1.0.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555" + +[[package]] +name = "embed-resource" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31a88c8d26de40ed18fe748c547845aa39de1db3afd958f8cb91579f3644bcb" +dependencies = [ + "cc", + "memchr", + "rustc_version", + "toml 1.1.2+spec-1.1.0", + "vswhom", + "winreg", +] + +[[package]] +name = "embed_plist" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef6b89e5b37196644d8796de5268852ff179b44e96276cf4290264843743bb7" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "erased-serde" +version = "0.4.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec" +dependencies = [ + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "event-listener" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.11.1", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "glob" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1054432bae2f14e0061e33d23402fbaa67a921d319d56adc6bcf887ddad1cbc2" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hyper" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-util" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "tokio", + "tower-service", + "tracing", +] + +[[package]] +name = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "ico" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371" +dependencies = [ + "byteorder", + "png 0.17.16", +] + +[[package]] +name = "icu_collections" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38" + +[[package]] +name = "icu_properties" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14" + +[[package]] +name = "icu_provider" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "ident_case" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", + "serde", +] + +[[package]] +name = "indexmap" +version = "2.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", + "serde", + "serde_core", +] + +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + +[[package]] +name = "ipnet" +version = "2.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.1", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "js-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08" +dependencies = [ + "cfg-if", + "futures-util", + "once_cell", + "wasm-bindgen", +] + +[[package]] +name = "json-patch" +version = "3.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863726d7afb6bc2590eeff7135d923545e5e964f004c2ccf8716c25e70a86f08" +dependencies = [ + "jsonptr", + "serde", + "serde_json", + "thiserror 1.0.69", +] + +[[package]] +name = "jsonptr" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5dea2b27dd239b2556ed7a25ba842fe47fd602e7fc7433c2a8d6106d4d9edd70" +dependencies = [ + "serde", + "serde_json", +] + +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.11.1", + "serde", + "unicode-segmentation", +] + +[[package]] +name = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading", + "once_cell", +] + +[[package]] +name = "libc" +version = "0.2.186" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66" + +[[package]] +name = "libdbus-sys" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "328c4789d42200f1eeec05bd86c9c13c7f091d2ba9a6ea35acdf51f31bc0f043" +dependencies = [ + "pkg-config", +] + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libredox" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c" +dependencies = [ + "libc", +] + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "markup5ever" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8983d30f2915feeaaab2d6babdd6bc7e9ed1a00b66b5e6d74df19aa9c0e91862" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "muda" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47a2e3dff89cd322c66647942668faee0a2b1f88ea6cbb4d374b4a8d7e92528c" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.18", + "windows-sys 0.61.2", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.11.1", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.11.1", + "dispatch2", + "objc2", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.11.1", + "dispatch2", + "objc2", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-location" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca347214e24bc973fc025fd0d36ebb179ff30536ed1f80252706db19ee452009" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.11.1", + "block2", + "libc", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.11.1", + "objc2", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image", + "objc2-core-location", + "objc2-core-text", + "objc2-foundation", + "objc2-quartz-core", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9df9128cbbfef73cda168416ccf7f837b62737d748333bfe9ab71c245d76613e" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" +dependencies = [ + "bitflags 2.11.1", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "open" +version = "5.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2fbaa89d2ddc8473c78a3adf69eea8cffa28c483b8e02a971ef31527cd0fc92c" +dependencies = [ + "dunce", + "is-wsl", + "libc", + "pathdiff", +] + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "os_pipe" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link 0.2.1", +] + +[[package]] +name = "pathdiff" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df94ce210e5bc13cb6651479fa48d14f601d9858cfe0467f43ae157023b938d3" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros", + "phf_shared", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator", + "phf_shared", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e" + +[[package]] +name = "plist" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "092791278e026273c1b65bbdcfbba3a300f2994c896bd01ab01da613c29c46f1" +dependencies = [ + "base64 0.22.1", + "indexmap 2.14.0", + "quick-xml", + "serde", + "time", +] + +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.11.1", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "potential_utf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn 2.0.117", +] + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.11+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" +dependencies = [ + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "quick-xml" +version = "0.39.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdcc8dd4e2f670d309a5f0e83fe36dfdc05af317008fea29144da1a2ac858e5e" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.11.1", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.18", +] + +[[package]] +name = "ref-cast" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d" +dependencies = [ + "ref-cast-impl", +] + +[[package]] +name = "ref-cast-impl" +version = "1.0.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "reqwest" +version = "0.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62e0021ea2c22aed41653bc7e1419abb2c97e038ff2c33d0e1309e49a97deec0" +dependencies = [ + "base64 0.22.1", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-util", + "js-sys", + "log", + "percent-encoding", + "pin-project-lite", + "serde", + "serde_json", + "sync_wrapper", + "tokio", + "tokio-util", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams", + "web-sys", +] + +[[package]] +name = "rfd" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672" +dependencies = [ + "block2", + "dispatch2", + "glib-sys", + "gobject-sys", + "gtk-sys", + "js-sys", + "log", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows-sys 0.60.2", +] + +[[package]] +name = "rustc-hash" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.11.1", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schemars" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3fbf2ae1b8bc8e02df939598064d22402220cd5bbcca1c76f7d6a310974d5615" +dependencies = [ + "dyn-clone", + "indexmap 1.9.3", + "schemars_derive", + "serde", + "serde_json", + "url", + "uuid", +] + +[[package]] +name = "schemars" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd191f9397d57d581cddd31014772520aa448f65ef991055d7f61582c65165f" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2b42f36aa1cd011945615b92222f6bf73c599a102a300334cd7f8dbeec726cc" +dependencies = [ + "dyn-clone", + "ref-cast", + "serde", + "serde_json", +] + +[[package]] +name = "schemars_derive" +version = "0.8.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32e265784ad618884abaea0600a9adf15393368d840e0222d101a072f3f7534d" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn 2.0.117", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d9c0c92a92d33f08817311cf3f2c29a3538a8240e94a6a3c622ce652d7e00c" +dependencies = [ + "bitflags 2.11.1", + "cssparser", + "derive_more", + "log", + "new_debug_unreachable", + "phf", + "phf_codegen", + "precomputed-hash", + "rustc-hash", + "servo_arc", + "smallvec", +] + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +dependencies = [ + "serde", + "serde_core", +] + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde-untagged" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9faf48a4a2d2693be24c6289dbe26552776eb7737074e6722891fadbe6c5058" +dependencies = [ + "erased-serde", + "serde", + "serde_core", + "typeid", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_derive_internals" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_json" +version = "1.0.150" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "serde_spanned" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_with" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e72c1c2cb7b223fafb600a619537a871c2818583d619401b785e7c0b746ccde2" +dependencies = [ + "base64 0.22.1", + "bs58", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.14.0", + "schemars 0.9.0", + "schemars 1.2.1", + "serde_core", + "serde_json", + "serde_with_macros", + "time", +] + +[[package]] +name = "serde_with_macros" +version = "3.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b90c488738ecb4fb0262f41f43bc40efc5868d9fb744319ddf5f5317f417bfac" +dependencies = [ + "darling", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serialize-to-javascript" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04f3666a07a197cdb77cdf306c32be9b7f598d7060d50cfd4d5aa04bfd92f6c5" +dependencies = [ + "serde", + "serde_json", + "serialize-to-javascript-impl", +] + +[[package]] +name = "serialize-to-javascript-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "772ee033c0916d670af7860b6e1ef7d658a4629a6d0b4c8c3e67f09b3765b75d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shared_child" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e362d9935bc50f019969e2f9ecd66786612daae13e8f277be7bfb66e8bed3f7" +dependencies = [ + "libc", + "sigchld", + "windows-sys 0.60.2", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "sigchld" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47106eded3c154e70176fc83df9737335c94ce22f821c32d17ed1db1f83badb1" +dependencies = [ + "libc", + "os_pipe", + "signal-hook", +] + +[[package]] +name = "signal-hook" +version = "0.3.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2" +dependencies = [ + "libc", + "signal-hook-registry", +] + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214" + +[[package]] +name = "siphasher" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "socket2" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "bytemuck", + "js-sys", + "ndk", + "objc2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "objc2-quartz-core", + "raw-window-handle", + "redox_syscall", + "tracing", + "wasm-bindgen", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator", + "phf_shared", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "swift-rs" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4057c98e2e852d51fdcfca832aac7b571f6b351ad159f9eda5db1655f8d0c4d7" +dependencies = [ + "base64 0.21.7", + "serde", + "serde_json", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml 0.8.2", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.35.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a33f7f9e486ade65fcf1e45c440f9236c904f5c1002cdc7fc6ae582777345ce4" +dependencies = [ + "bitflags 2.11.1", + "block2", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dbus", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "libc", + "log", + "ndk", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "once_cell", + "parking_lot", + "percent-encoding", + "raw-window-handle", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tauri" +version = "2.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "437404997acf375d85f1177afa7e11bb971f274ed6a7b83a2a3e339015f4cc28" +dependencies = [ + "anyhow", + "bytes", + "cookie", + "dirs", + "dunce", + "embed_plist", + "getrandom 0.3.4", + "glob", + "gtk", + "heck 0.5.0", + "http", + "jni", + "libc", + "log", + "mime", + "muda", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "percent-encoding", + "plist", + "raw-window-handle", + "reqwest", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "swift-rs", + "tauri-build", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "thiserror 2.0.18", + "tokio", + "tray-icon", + "url", + "webkit2gtk", + "webview2-com", + "window-vibrancy", + "windows", +] + +[[package]] +name = "tauri-build" +version = "2.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4aa1f9055fc23919a54e4e125052bed16ed04aef0487086e758fe01a67b451c7" +dependencies = [ + "anyhow", + "cargo_toml", + "dirs", + "glob", + "heck 0.5.0", + "json-patch", + "schemars 0.8.22", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "walkdir", +] + +[[package]] +name = "tauri-codegen" +version = "2.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4a0319528a025a38c4078e7dae2c446f4e63620ddb0659a643ede1cb38f90e9" +dependencies = [ + "base64 0.22.1", + "brotli", + "ico", + "json-patch", + "plist", + "png 0.17.16", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "sha2", + "syn 2.0.117", + "tauri-utils", + "thiserror 2.0.18", + "time", + "url", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-macros" +version = "2.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae6cb4e3896c21d2f6da5b31251d2faea0153bba56ed0e970f918115dbee4924" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "tauri-codegen", + "tauri-utils", +] + +[[package]] +name = "tauri-plugin" +version = "2.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e126abc9e84e35cdfd01596140a73a1850cdb0df0a23acf0185776c30b469a6e" +dependencies = [ + "anyhow", + "glob", + "plist", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri-utils", + "walkdir", +] + +[[package]] +name = "tauri-plugin-dialog" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65981abb771e74e571a38196c3baa11c459379164791eba0e67abc1a5fac9884" +dependencies = [ + "log", + "raw-window-handle", + "rfd", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "tauri-plugin-fs", + "thiserror 2.0.18", + "url", +] + +[[package]] +name = "tauri-plugin-fs" +version = "2.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7ecc274121aca0c036a2b42d1cbe83d368d348f54e0bb8a735c2b1548e8f371" +dependencies = [ + "anyhow", + "dunce", + "glob", + "log", + "objc2-foundation", + "percent-encoding", + "schemars 0.8.22", + "serde", + "serde_json", + "serde_repr", + "tauri", + "tauri-plugin", + "tauri-utils", + "thiserror 2.0.18", + "toml 1.1.2+spec-1.1.0", + "url", +] + +[[package]] +name = "tauri-plugin-opener" +version = "2.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "17e1bea14edce6b793a04e2417e3fd924b9bc4faae83cdee7d714156cceeed29" +dependencies = [ + "dunce", + "glob", + "objc2-app-kit", + "objc2-foundation", + "open", + "schemars 0.8.22", + "serde", + "serde_json", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "url", + "windows", + "zbus", +] + +[[package]] +name = "tauri-plugin-shell" +version = "2.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8457dbf9e2bab1edd8df22bb2c20857a59a9868e79cb3eac5ed639eec4d0c73b" +dependencies = [ + "encoding_rs", + "log", + "open", + "os_pipe", + "regex", + "schemars 0.8.22", + "serde", + "serde_json", + "shared_child", + "tauri", + "tauri-plugin", + "thiserror 2.0.18", + "tokio", +] + +[[package]] +name = "tauri-runtime" +version = "2.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48222d7116c8807eaa6fe2f372e023fae125084e61e6eca6d70b7961cdf129ef" +dependencies = [ + "cookie", + "dpi", + "gtk", + "http", + "jni", + "objc2", + "objc2-ui-kit", + "objc2-web-kit", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webview2-com", + "windows", +] + +[[package]] +name = "tauri-runtime-wry" +version = "2.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b83849ee63ecb27a8e8d0fe51915ca215076914aca43f96db1179f0f415f6cd9" +dependencies = [ + "gtk", + "http", + "jni", + "log", + "objc2", + "objc2-app-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "softbuffer", + "tao", + "tauri-runtime", + "tauri-utils", + "url", + "webkit2gtk", + "webview2-com", + "windows", + "wry", +] + +[[package]] +name = "tauri-utils" +version = "2.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "092379df9a707631978e6c56b1bc2401d387f01e2d4a3c123360d167bbb9aa95" +dependencies = [ + "anyhow", + "brotli", + "cargo_metadata", + "ctor", + "dom_query", + "dunce", + "glob", + "http", + "infer", + "json-patch", + "log", + "memchr", + "phf", + "plist", + "proc-macro2", + "quote", + "regex", + "schemars 0.8.22", + "semver", + "serde", + "serde-untagged", + "serde_json", + "serde_with", + "swift-rs", + "thiserror 2.0.18", + "toml 1.1.2+spec-1.1.0", + "url", + "urlpattern", + "uuid", + "walkdir", +] + +[[package]] +name = "tauri-winres" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc65d45c68858bfe420dd29e834b5d15dbecf8a07a8a16cf4d532c7b1f69d4b6" +dependencies = [ + "dunce", + "embed-resource", + "toml 1.1.2+spec-1.1.0", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4790fc369d5a530f4b544b094e31388b9b3a37c0f4652ade4505945f5660d24" +dependencies = [ + "new_debug_unreachable", + "utf-8", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "tokio" +version = "1.52.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-util" +version = "0.7.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml" +version = "0.9.12+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 0.7.5+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 0.7.15", +] + +[[package]] +name = "toml" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee" +dependencies = [ + "indexmap 2.14.0", + "serde_core", + "serde_spanned 1.1.1", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "toml_writer", + "winnow 1.0.3", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.14.0", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.11+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b59c4d22ed448339746c59b905d24568fcbb3ab65a500494f7b8c3e97739f2b" +dependencies = [ + "indexmap 2.14.0", + "toml_datetime 1.1.1+spec-1.1.0", + "toml_parser", + "winnow 1.0.3", +] + +[[package]] +name = "toml_parser" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526" +dependencies = [ + "winnow 1.0.3", +] + +[[package]] +name = "toml_writer" +version = "1.1.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db" + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.11.1", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "tray-icon" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15edbb0d80583e85ee8df283410038e17314df5cba30da2087a54a85216c0773" +dependencies = [ + "crossbeam-channel", + "dirs", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png 0.18.1", + "serde", + "thiserror 2.0.18", + "windows-sys 0.61.2", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[package]] +name = "typeid" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c" + +[[package]] +name = "typenum" +version = "1.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unic-char-property" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221" +dependencies = [ + "unic-char-range", +] + +[[package]] +name = "unic-char-range" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc" + +[[package]] +name = "unic-common" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc" + +[[package]] +name = "unic-ucd-ident" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e230a37c0381caa9219d67cf063aa3a375ffed5bf541a452db16e744bdab6987" +dependencies = [ + "unic-char-property", + "unic-char-range", + "unic-ucd-version", +] + +[[package]] +name = "unic-ucd-version" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4" +dependencies = [ + "unic-common", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", + "serde_derive", +] + +[[package]] +name = "urlpattern" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70acd30e3aa1450bc2eece896ce2ad0d178e9c079493819301573dae3c37ba6d" +dependencies = [ + "regex", + "serde", + "unic-ucd-ident", + "url", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76" +dependencies = [ + "getrandom 0.4.2", + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "vswhom" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" +dependencies = [ + "libc", + "vswhom-sys", +] + +[[package]] +name = "vswhom-sys" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150" +dependencies = [ + "cc", + "libc", +] + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "want" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e" +dependencies = [ + "try-lock", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.3+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6" +dependencies = [ + "wit-bindgen 0.57.1", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen 0.51.0", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.71" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 2.0.117", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.121" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap 2.14.0", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasm-streams" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d1ec4f6517c9e11ae630e200b2b65d193279042e28edd4a2cda233e46670bbb" +dependencies = [ + "futures-util", + "js-sys", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.1", + "hashbrown 0.15.5", + "indexmap 2.14.0", + "semver", +] + +[[package]] +name = "web-sys" +version = "0.3.98" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web_atoms" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7cff6eef815df1834fd250e3a2ff436044d82a9f1bc1980ca1dbdf07effc538" +dependencies = [ + "phf", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webkit2gtk" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1027150013530fb2eaf806408df88461ae4815a45c541c8975e61d6f2fc4793" +dependencies = [ + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "916a5f65c2ef0dfe12fff695960a2ec3d4565359fdbb2e9943c974e06c734ea5" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webview2-com" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core 0.61.2", + "windows-implement", + "windows-interface", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "webview2-com-sys" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.18", + "windows", + "windows-core 0.61.2", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "window-vibrancy" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9bec5a31f3f9362f2258fd0e9c9dd61a9ca432e7306cc78c444258f0dce9a9c" +dependencies = [ + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "raw-window-handle", + "windows-sys 0.59.0", + "windows-version", +] + +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections", + "windows-core 0.61.2", + "windows-future", + "windows-link 0.1.3", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", +] + +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link 0.2.1", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link 0.2.1", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" + +[[package]] +name = "winnow" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1" +dependencies = [ + "memchr", +] + +[[package]] +name = "winreg" +version = "0.55.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97" +dependencies = [ + "cfg-if", + "windows-sys 0.59.0", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck 0.5.0", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck 0.5.0", + "indexmap 2.14.0", + "prettyplease", + "syn 2.0.117", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn 2.0.117", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.1", + "indexmap 2.14.0", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap 2.14.0", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4" + +[[package]] +name = "wry" +version = "0.55.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "186f9871daa55fd9c016578b810d149de58367113db7fb72b462d2323ce19514" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs", + "dom_query", + "dpi", + "dunce", + "gdkx11", + "gtk", + "http", + "javascriptcore-rs", + "jni", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core 0.61.2", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "ysm-parser" +version = "0.3.5" +dependencies = [ + "serde", + "serde_json", + "tauri", + "tauri-build", + "tauri-plugin-dialog", + "tauri-plugin-opener", + "tauri-plugin-shell", + "tempfile", + "url", +] + +[[package]] +name = "zbus" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3bcbf15c8708d7fc1be0c993622e0a5cbd5e8b52bfa40afa4c3e0cd8d724ac1" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow 1.0.3", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51fa5406ad9175a8c825a931f8cf347116b531b3634fcb0b627c290f1f2516ff" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7074f3e50b894eac91750142016d30d0a89be8e67dbfd9704fb875825760e52d" +dependencies = [ + "serde", + "winnow 1.0.3", + "zvariant", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zvariant" +version = "5.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c1567a6ec68df868cbbfde844cfc6d81649fe5109a62b116b19fabd53e618ee" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow 1.0.3", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7d5b780599bbde114e39d9a0799577fad1ced5105d38515745f7b3099d8ceda" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "3.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d464f5733ffa07a3164d656f18533caace9d0638596721355d73256a410d691" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 2.0.117", + "winnow 1.0.3", +] diff --git a/public/src-tauri/Cargo.toml b/public/src-tauri/Cargo.toml new file mode 100644 index 0000000..b3e6b20 --- /dev/null +++ b/public/src-tauri/Cargo.toml @@ -0,0 +1,37 @@ +[package] +name = "ysm-parser" +version = "0.3.5" +description = "YSMParser — .ysm model decryptor" +authors = [] +license = "LGPL-3.0-or-later" +repository = "https://github.com/OpenYSM/YSMParser" +edition = "2021" +rust-version = "1.77.2" + +[lib] +name = "ysm_parser_lib" +crate-type = ["staticlib", "cdylib", "rlib"] + +[[bin]] +name = "ysm-parser" +path = "src/main.rs" + +[build-dependencies] +tauri-build = { version = "2", features = [] } + +[dependencies] +tauri = { version = "2", features = [] } +tauri-plugin-shell = "2" +tauri-plugin-dialog = "2" +tauri-plugin-opener = "2" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +tempfile = "3" +url = "2" + +[profile.release] +panic = "abort" +codegen-units = 1 +lto = true +opt-level = "s" +strip = true diff --git a/public/src-tauri/build.rs b/public/src-tauri/build.rs new file mode 100644 index 0000000..7a3e6cc --- /dev/null +++ b/public/src-tauri/build.rs @@ -0,0 +1,19 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +fn main() { + tauri_build::build() +} diff --git a/public/src-tauri/capabilities/default.json b/public/src-tauri/capabilities/default.json new file mode 100644 index 0000000..f267c7d --- /dev/null +++ b/public/src-tauri/capabilities/default.json @@ -0,0 +1,15 @@ +{ + "$schema": "../gen/schemas/desktop-schema.json", + "identifier": "default", + "description": "Default capabilities for YSMParser desktop app", + "windows": ["main"], + "permissions": [ + "core:default", + "shell:allow-execute", + "shell:allow-open", + "dialog:allow-open", + "dialog:allow-save", + "opener:allow-reveal-item-in-dir", + "opener:allow-open-url" + ] +} diff --git a/public/src-tauri/icons/128x128.png b/public/src-tauri/icons/128x128.png new file mode 100644 index 0000000..001895f Binary files /dev/null and b/public/src-tauri/icons/128x128.png differ diff --git a/public/src-tauri/icons/128x128@2x.png b/public/src-tauri/icons/128x128@2x.png new file mode 100644 index 0000000..f6468e0 Binary files /dev/null and b/public/src-tauri/icons/128x128@2x.png differ diff --git a/public/src-tauri/icons/32x32.png b/public/src-tauri/icons/32x32.png new file mode 100644 index 0000000..1a80254 Binary files /dev/null and b/public/src-tauri/icons/32x32.png differ diff --git a/public/src-tauri/icons/64x64.png b/public/src-tauri/icons/64x64.png new file mode 100644 index 0000000..0b126b2 Binary files /dev/null and b/public/src-tauri/icons/64x64.png differ diff --git a/public/src-tauri/icons/Square107x107Logo.png b/public/src-tauri/icons/Square107x107Logo.png new file mode 100644 index 0000000..a3981e0 Binary files /dev/null and b/public/src-tauri/icons/Square107x107Logo.png differ diff --git a/public/src-tauri/icons/Square142x142Logo.png b/public/src-tauri/icons/Square142x142Logo.png new file mode 100644 index 0000000..8ef30c4 Binary files /dev/null and b/public/src-tauri/icons/Square142x142Logo.png differ diff --git a/public/src-tauri/icons/Square150x150Logo.png b/public/src-tauri/icons/Square150x150Logo.png new file mode 100644 index 0000000..ea62669 Binary files /dev/null and b/public/src-tauri/icons/Square150x150Logo.png differ diff --git a/public/src-tauri/icons/Square284x284Logo.png b/public/src-tauri/icons/Square284x284Logo.png new file mode 100644 index 0000000..5aa758b Binary files /dev/null and b/public/src-tauri/icons/Square284x284Logo.png differ diff --git a/public/src-tauri/icons/Square30x30Logo.png b/public/src-tauri/icons/Square30x30Logo.png new file mode 100644 index 0000000..00e9104 Binary files /dev/null and b/public/src-tauri/icons/Square30x30Logo.png differ diff --git a/public/src-tauri/icons/Square310x310Logo.png b/public/src-tauri/icons/Square310x310Logo.png new file mode 100644 index 0000000..56b9289 Binary files /dev/null and b/public/src-tauri/icons/Square310x310Logo.png differ diff --git a/public/src-tauri/icons/Square44x44Logo.png b/public/src-tauri/icons/Square44x44Logo.png new file mode 100644 index 0000000..5f1f9b6 Binary files /dev/null and b/public/src-tauri/icons/Square44x44Logo.png differ diff --git a/public/src-tauri/icons/Square71x71Logo.png b/public/src-tauri/icons/Square71x71Logo.png new file mode 100644 index 0000000..b713452 Binary files /dev/null and b/public/src-tauri/icons/Square71x71Logo.png differ diff --git a/public/src-tauri/icons/Square89x89Logo.png b/public/src-tauri/icons/Square89x89Logo.png new file mode 100644 index 0000000..03fa9bb Binary files /dev/null and b/public/src-tauri/icons/Square89x89Logo.png differ diff --git a/public/src-tauri/icons/StoreLogo.png b/public/src-tauri/icons/StoreLogo.png new file mode 100644 index 0000000..077d644 Binary files /dev/null and b/public/src-tauri/icons/StoreLogo.png differ diff --git a/public/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml b/public/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml new file mode 100644 index 0000000..2ffbf24 --- /dev/null +++ b/public/src-tauri/icons/android/mipmap-anydpi-v26/ic_launcher.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png b/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..0e906fb Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher.png differ diff --git a/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png b/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..e0d727d Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher_foreground.png differ diff --git a/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png b/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png new file mode 100644 index 0000000..8eef467 Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-hdpi/ic_launcher_round.png differ diff --git a/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png b/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..9dcee38 Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher.png differ diff --git a/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png b/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..8065d0b Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher_foreground.png differ diff --git a/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png b/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png new file mode 100644 index 0000000..7e7982b Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-mdpi/ic_launcher_round.png differ diff --git a/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png b/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..23f653b Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher.png differ diff --git a/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png b/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..83e7667 Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_foreground.png differ diff --git a/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png b/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png new file mode 100644 index 0000000..d8639a5 Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xhdpi/ic_launcher_round.png differ diff --git a/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png b/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..d31aab6 Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher.png differ diff --git a/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png b/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..8e21c94 Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_foreground.png differ diff --git a/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png b/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..381a70f Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xxhdpi/ic_launcher_round.png differ diff --git a/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png b/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..82fa6ab Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png b/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png new file mode 100644 index 0000000..16792fe Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_foreground.png differ diff --git a/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png b/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png new file mode 100644 index 0000000..eaf2f9c Binary files /dev/null and b/public/src-tauri/icons/android/mipmap-xxxhdpi/ic_launcher_round.png differ diff --git a/public/src-tauri/icons/android/values/ic_launcher_background.xml b/public/src-tauri/icons/android/values/ic_launcher_background.xml new file mode 100644 index 0000000..ea9c223 --- /dev/null +++ b/public/src-tauri/icons/android/values/ic_launcher_background.xml @@ -0,0 +1,4 @@ + + + #fff + \ No newline at end of file diff --git a/public/src-tauri/icons/icon.icns b/public/src-tauri/icons/icon.icns new file mode 100644 index 0000000..d7356f6 Binary files /dev/null and b/public/src-tauri/icons/icon.icns differ diff --git a/public/src-tauri/icons/icon.ico b/public/src-tauri/icons/icon.ico new file mode 100644 index 0000000..c4f2afb Binary files /dev/null and b/public/src-tauri/icons/icon.ico differ diff --git a/public/src-tauri/icons/icon.png b/public/src-tauri/icons/icon.png new file mode 100644 index 0000000..a820338 Binary files /dev/null and b/public/src-tauri/icons/icon.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-20x20@1x.png b/public/src-tauri/icons/ios/AppIcon-20x20@1x.png new file mode 100644 index 0000000..0a20649 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-20x20@1x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-20x20@2x-1.png b/public/src-tauri/icons/ios/AppIcon-20x20@2x-1.png new file mode 100644 index 0000000..42ad760 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-20x20@2x-1.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-20x20@2x.png b/public/src-tauri/icons/ios/AppIcon-20x20@2x.png new file mode 100644 index 0000000..42ad760 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-20x20@2x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-20x20@3x.png b/public/src-tauri/icons/ios/AppIcon-20x20@3x.png new file mode 100644 index 0000000..14b2280 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-20x20@3x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-29x29@1x.png b/public/src-tauri/icons/ios/AppIcon-29x29@1x.png new file mode 100644 index 0000000..150e349 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-29x29@1x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-29x29@2x-1.png b/public/src-tauri/icons/ios/AppIcon-29x29@2x-1.png new file mode 100644 index 0000000..57a0bed Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-29x29@2x-1.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-29x29@2x.png b/public/src-tauri/icons/ios/AppIcon-29x29@2x.png new file mode 100644 index 0000000..57a0bed Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-29x29@2x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-29x29@3x.png b/public/src-tauri/icons/ios/AppIcon-29x29@3x.png new file mode 100644 index 0000000..7676337 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-29x29@3x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-40x40@1x.png b/public/src-tauri/icons/ios/AppIcon-40x40@1x.png new file mode 100644 index 0000000..42ad760 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-40x40@1x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-40x40@2x-1.png b/public/src-tauri/icons/ios/AppIcon-40x40@2x-1.png new file mode 100644 index 0000000..6e893c9 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-40x40@2x-1.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-40x40@2x.png b/public/src-tauri/icons/ios/AppIcon-40x40@2x.png new file mode 100644 index 0000000..6e893c9 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-40x40@2x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-40x40@3x.png b/public/src-tauri/icons/ios/AppIcon-40x40@3x.png new file mode 100644 index 0000000..fa23019 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-40x40@3x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-512@2x.png b/public/src-tauri/icons/ios/AppIcon-512@2x.png new file mode 100644 index 0000000..572ea36 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-512@2x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-60x60@2x.png b/public/src-tauri/icons/ios/AppIcon-60x60@2x.png new file mode 100644 index 0000000..fa23019 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-60x60@2x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-60x60@3x.png b/public/src-tauri/icons/ios/AppIcon-60x60@3x.png new file mode 100644 index 0000000..cba7dd5 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-60x60@3x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-76x76@1x.png b/public/src-tauri/icons/ios/AppIcon-76x76@1x.png new file mode 100644 index 0000000..0fed969 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-76x76@1x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-76x76@2x.png b/public/src-tauri/icons/ios/AppIcon-76x76@2x.png new file mode 100644 index 0000000..922a1cf Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-76x76@2x.png differ diff --git a/public/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png b/public/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png new file mode 100644 index 0000000..6c099e1 Binary files /dev/null and b/public/src-tauri/icons/ios/AppIcon-83.5x83.5@2x.png differ diff --git a/public/src-tauri/src/lib.rs b/public/src-tauri/src/lib.rs new file mode 100644 index 0000000..08523cb --- /dev/null +++ b/public/src-tauri/src/lib.rs @@ -0,0 +1,200 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +use serde::{Deserialize, Serialize}; +use std::fs; +use std::path::{Path, PathBuf}; +use tauri::Manager; +use tauri_plugin_dialog::DialogExt; +use tauri_plugin_shell::ShellExt; + +const STORE_FILE: &str = "settings.json"; + +#[derive(Serialize)] +pub struct FileStat { + name: String, + path: String, + size: u64, +} + +#[derive(Default, Deserialize, Serialize)] +struct Settings { + output_dir: Option, +} + +fn app_data_dir(app: &tauri::AppHandle) -> Result { + app.path().app_data_dir().map_err(|e| e.to_string()) +} + +fn settings_path(app: &tauri::AppHandle) -> Result { + Ok(app_data_dir(app)?.join(STORE_FILE)) +} + +fn read_settings(path: &PathBuf) -> Result { + match fs::read_to_string(path) { + Ok(raw) if raw.trim().is_empty() => Ok(Settings::default()), + Ok(raw) => serde_json::from_str(&raw).map_err(|e| e.to_string()), + Err(e) if e.kind() == std::io::ErrorKind::NotFound => Ok(Settings::default()), + Err(e) => Err(e.to_string()), + } +} + +#[cfg(unix)] +fn symlink_file(src: &Path, dest: &Path) -> std::io::Result<()> { + std::os::unix::fs::symlink(src, dest) +} + +#[cfg(windows)] +fn symlink_file(src: &Path, dest: &Path) -> std::io::Result<()> { + std::os::windows::fs::symlink_file(src, dest) +} + +#[cfg(not(any(unix, windows)))] +fn symlink_file(_src: &Path, _dest: &Path) -> std::io::Result<()> { + Err(std::io::Error::new( + std::io::ErrorKind::Unsupported, + "file symlinks are not supported on this platform", + )) +} + +// ── commands ─────────────────────────────────────────────────────────────── + +#[tauri::command] +async fn stat_input_files(paths: Vec) -> Result, String> { + paths + .into_iter() + .map(|p| { + let path = PathBuf::from(&p); + let meta = fs::metadata(&path).map_err(|e| format!("{p}: {e}"))?; + let name = path + .file_name() + .ok_or_else(|| format!("Invalid path: {p}"))? + .to_string_lossy() + .into_owned(); + Ok(FileStat { + name, + path: p, + size: meta.len(), + }) + }) + .collect() +} + +#[tauri::command] +async fn prepare_input_dir_from_paths(paths: Vec) -> Result { + let dir = tempfile::Builder::new() + .prefix("ysmparser-input-") + .tempdir() + .map_err(|e| e.to_string())?; + for src_str in &paths { + let src = PathBuf::from(src_str); + let name = src + .file_name() + .ok_or_else(|| format!("Invalid path: {src_str}"))?; + let dest = dir.path().join(name); + if fs::hard_link(&src, &dest).is_err() { + if symlink_file(&src, &dest).is_err() { + fs::copy(&src, &dest) + .map_err(|e| format!("copy {} -> {}: {e}", src.display(), dest.display()))?; + } + } + } + let path = dir.keep(); + Ok(path.to_string_lossy().into_owned()) +} + +#[tauri::command] +async fn run_parser( + app: tauri::AppHandle, + input_dir: String, + output_dir: String, +) -> Result { + fs::create_dir_all(&output_dir).map_err(|e| e.to_string())?; + + let output = app + .shell() + .sidecar("YSMParser") + .map_err(|e| e.to_string())? + .args(["-i", &input_dir, "-o", &output_dir]) + .output() + .await + .map_err(|e| e.to_string())?; + + let stdout = String::from_utf8_lossy(&output.stdout).into_owned(); + let stderr = String::from_utf8_lossy(&output.stderr).into_owned(); + + if !output.status.success() { + return Err(if stderr.is_empty() { stdout } else { stderr }); + } + if stderr.is_empty() { + Ok(stdout) + } else { + Ok(format!("{stdout}\n{stderr}")) + } +} + +#[tauri::command] +async fn open_folder_dialog(app: tauri::AppHandle) -> Result, String> { + let path = app.dialog().file().blocking_pick_folder(); + Ok(path + .and_then(|p| p.into_path().ok()) + .map(|p| p.to_string_lossy().into_owned())) +} + +#[tauri::command] +async fn get_output_dir(app: tauri::AppHandle) -> Result, String> { + let store_path = settings_path(&app)?; + Ok(read_settings(&store_path)?.output_dir) +} + +#[tauri::command] +async fn set_output_dir(app: tauri::AppHandle, dir: String) -> Result<(), String> { + fs::create_dir_all(app_data_dir(&app)?).map_err(|e| e.to_string())?; + let store_path = settings_path(&app)?; + let mut settings = read_settings(&store_path)?; + settings.output_dir = Some(dir); + let raw = serde_json::to_string_pretty(&settings).map_err(|e| e.to_string())?; + fs::write(&store_path, raw).map_err(|e| e.to_string()) +} + +#[tauri::command] +async fn open_in_file_browser(app: tauri::AppHandle, path: String) -> Result<(), String> { + use tauri_plugin_opener::OpenerExt; + app.opener() + .reveal_item_in_dir(&path) + .map_err(|e| e.to_string()) +} + +// ── app entry ────────────────────────────────────────────────────────────── + +#[cfg_attr(mobile, tauri::mobile_entry_point)] +pub fn run() { + tauri::Builder::default() + .plugin(tauri_plugin_shell::init()) + .plugin(tauri_plugin_dialog::init()) + .plugin(tauri_plugin_opener::init()) + .invoke_handler(tauri::generate_handler![ + stat_input_files, + prepare_input_dir_from_paths, + run_parser, + open_folder_dialog, + get_output_dir, + set_output_dir, + open_in_file_browser, + ]) + .run(tauri::generate_context!()) + .expect("error while running YSMParser"); +} diff --git a/public/src-tauri/src/main.rs b/public/src-tauri/src/main.rs new file mode 100644 index 0000000..91491d0 --- /dev/null +++ b/public/src-tauri/src/main.rs @@ -0,0 +1,22 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +// Prevents additional console window on Windows in release +#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] + +fn main() { + ysm_parser_lib::run(); +} diff --git a/public/src-tauri/tauri.conf.json b/public/src-tauri/tauri.conf.json new file mode 100644 index 0000000..3e539ed --- /dev/null +++ b/public/src-tauri/tauri.conf.json @@ -0,0 +1,47 @@ +{ + "$schema": "https://schema.tauri.app/config/2", + "productName": "YSMParser", + "version": "0.3.5", + "identifier": "com.openysm.ysmparser", + "build": { + "beforeDevCommand": "pnpm dev", + "devUrl": "http://localhost:1420", + "beforeBuildCommand": "pnpm build", + "frontendDist": "../dist" + }, + "app": { + "windows": [ + { + "title": "YSMParser", + "width": 900, + "height": 670, + "minWidth": 850, + "minHeight": 600, + "resizable": true, + "decorations": true + } + ], + "security": { + "csp": null + } + }, + "bundle": { + "active": true, + "targets": "all", + "icon": [ + "icons/32x32.png", + "icons/128x128.png", + "icons/128x128@2x.png", + "icons/icon.icns", + "icons/icon.ico" + ], + "externalBin": [ + "binaries/YSMParser" + ], + "windows": { + "webviewInstallMode": { + "type": "skip" + } + } + } +} diff --git a/public/src/App.svelte b/public/src/App.svelte new file mode 100644 index 0000000..7bb619e --- /dev/null +++ b/public/src/App.svelte @@ -0,0 +1,604 @@ + + + + + +{#if showSettings} + (showSettings = false)} + onSave={(dir) => (outputDir = dir)} + /> +{/if} + + +
+ +
+
+ + YSMParser +
+
+ {#if isTauri} + + {outputDir ? outputDir.split(/[\\/]/).pop() : "No folder"} + + + {:else} + + {wasmReady ? "WASM Ready" : wasmError ? "Runtime Error" : "Loading…"} + + {/if} +
+
+ + +
+ +
+
+

Input Files

+ + {items.length} file{items.length !== 1 ? "s" : ""} + {items.length > 0 ? `· ${formatSize(totalSize)}` : ""} + +
+ + + +
+ +
+ + +
+ + + {#if !isTauri && outputZip} + + {/if} + + {#if isTauri && outputDir && progress === 100} + + {/if} + + {#if items.length > 0 || logs.length > 0} + + {/if} +
+
+ + +
+
+

Output

+ {#if outputFileCount > 0} + {outputFileCount} file(s) · {formatSize(outputBytes)} + {/if} +
+ + + + + + {#if isTauri && outputDir} +
+ + {outputDir} +
+ {/if} +
+
+ + +
+ + diff --git a/public/src/app.css b/public/src/app.css new file mode 100644 index 0000000..5df0e6c --- /dev/null +++ b/public/src/app.css @@ -0,0 +1,93 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +:root { + --bg: #0d1117; + --surface-1: #161b22; + --surface-2: #1c2128; + --surface-3: #21262d; + --border: #30363d; + --accent: #f5d000; + --accent-dim: color-mix(in srgb, #f5d000 10%, transparent); + --text-primary: #e6edf3; + --text-secondary: #8b949e; + --text-muted: #484f58; + --danger: #f85149; + --success: #3fb950; + --font-sans: "Inter", system-ui, -apple-system, sans-serif; + --font-mono: "JetBrains Mono", "Fira Code", "Cascadia Code", ui-monospace, monospace; +} + +*, *::before, *::after { + box-sizing: border-box; + margin: 0; + padding: 0; +} + +html, body, #app { + height: 100%; +} + +body { + background: var(--bg); + color: var(--text-primary); + font-family: var(--font-sans); + font-size: 14px; + line-height: 1.5; + overflow-wrap: break-word; + -webkit-font-smoothing: antialiased; +} + +::-webkit-scrollbar { + width: 6px; + height: 6px; +} +::-webkit-scrollbar-track { + background: transparent; +} +::-webkit-scrollbar-thumb { + background: var(--surface-3); + border-radius: 3px; +} +::-webkit-scrollbar-thumb:hover { + background: var(--border); +} + +a { + color: var(--accent); + text-decoration: none; +} +a:hover { + text-decoration: underline; +} + +button { + font-family: inherit; + font-size: inherit; +} + +:focus-visible { + outline: 2px solid var(--accent); + outline-offset: 2px; + border-radius: 4px; +} + +@media (prefers-reduced-motion: reduce) { + *, *::before, *::after { + transition-duration: 0.01ms !important; + animation-duration: 0.01ms !important; + } +} diff --git a/public/src/lib/DropZone.svelte b/public/src/lib/DropZone.svelte new file mode 100644 index 0000000..b9d19e6 --- /dev/null +++ b/public/src/lib/DropZone.svelte @@ -0,0 +1,253 @@ + + + + +{#snippet inner()} +
+ +

Drop .ysm files here

+

or click to browse

+
+{/snippet} + +{#if isTauri} + +{:else} + +{/if} + + diff --git a/public/src/lib/FileQueue.svelte b/public/src/lib/FileQueue.svelte new file mode 100644 index 0000000..44f14bc --- /dev/null +++ b/public/src/lib/FileQueue.svelte @@ -0,0 +1,235 @@ + + + + +{#if items.length === 0} +
+ No files selected +
+{:else} +

{summary}

+ +
+
    + {#each visibleItems as item, i (item.name)} + {@const absoluteIndex = startIndex + i} +
  • + +
    + {item.name} + {formatSize(item.size)} +
    + {#if onRemove} + + {/if} +
  • + {/each} +
+
+{/if} + + diff --git a/public/src/lib/LogConsole.svelte b/public/src/lib/LogConsole.svelte new file mode 100644 index 0000000..ce33fc9 --- /dev/null +++ b/public/src/lib/LogConsole.svelte @@ -0,0 +1,75 @@ + + + + +
+ {#if lines.length === 0} + Logs will appear here… + {:else} + {#each lines as line} +
{line}
+ {/each} + {/if} +
+ + diff --git a/public/src/lib/ProgressBar.svelte b/public/src/lib/ProgressBar.svelte new file mode 100644 index 0000000..402dc74 --- /dev/null +++ b/public/src/lib/ProgressBar.svelte @@ -0,0 +1,68 @@ + + + + +
+
+
+
+ {#if label} + {label} + {/if} +
+ + diff --git a/public/src/lib/SettingsModal.svelte b/public/src/lib/SettingsModal.svelte new file mode 100644 index 0000000..4aec620 --- /dev/null +++ b/public/src/lib/SettingsModal.svelte @@ -0,0 +1,238 @@ + + + + + + + + +
+ +
+ + diff --git a/public/src/lib/format.ts b/public/src/lib/format.ts new file mode 100644 index 0000000..5d6804b --- /dev/null +++ b/public/src/lib/format.ts @@ -0,0 +1,26 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +export function formatSize(bytes: number): string { + const units = ["B", "KB", "MB", "GB"]; + let value = bytes; + let index = 0; + while (value >= 1024 && index < units.length - 1) { + value /= 1024; + index++; + } + return `${value.toFixed(value >= 100 || index === 0 ? 0 : value >= 10 ? 1 : 2)} ${units[index]}`; +} diff --git a/public/src/lib/tauri.ts b/public/src/lib/tauri.ts new file mode 100644 index 0000000..ec1eb53 --- /dev/null +++ b/public/src/lib/tauri.ts @@ -0,0 +1,111 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +type TauriGlobal = typeof globalThis & { + __TAURI__?: unknown; + __TAURI_INTERNALS__?: unknown; + isTauri?: boolean; +}; + +const tauriGlobal = globalThis as TauriGlobal; + +export const isTauri = + typeof window !== "undefined" && + (tauriGlobal.isTauri === true || + "__TAURI__" in tauriGlobal || + "__TAURI_INTERNALS__" in tauriGlobal); + +let cachedInvoke: typeof import("@tauri-apps/api/core").invoke | null = null; +let cachedDialogOpen: typeof import("@tauri-apps/plugin-dialog").open | null = null; + +async function invoke(cmd: string, args?: Record): Promise { + if (!cachedInvoke) { + const mod = await import("@tauri-apps/api/core"); + cachedInvoke = mod.invoke; + } + return cachedInvoke(cmd, args) as Promise; +} + +async function dialogOpen(): Promise { + if (!cachedDialogOpen) { + const mod = await import("@tauri-apps/plugin-dialog"); + cachedDialogOpen = mod.open; + } + return cachedDialogOpen; +} + +export interface FileStat { + name: string; + path: string; + size: number; +} + +export async function runParserNative( + inputDir: string, + outputDir: string +): Promise { + return invoke("run_parser", { inputDir, outputDir }); +} + +export async function openFolderDialog(): Promise { + return invoke("open_folder_dialog"); +} + +export async function getSavedOutputDir(): Promise { + return invoke("get_output_dir"); +} + +export async function setSavedOutputDir(dir: string): Promise { + return invoke("set_output_dir", { dir }); +} + +export async function openPathInFileBrowser(path: string): Promise { + return invoke("open_in_file_browser", { path }); +} + +export async function statInputFiles(paths: string[]): Promise { + return invoke("stat_input_files", { paths }); +} + +export async function prepareInputDirFromPaths(paths: string[]): Promise { + return invoke("prepare_input_dir_from_paths", { paths }); +} + +export function preloadInputFilesDialog(): void { + if (isTauri) void dialogOpen(); +} + +export async function openInputFilesDialog(): Promise { + const open = await dialogOpen(); + const picked = await open({ + multiple: true, + filters: [{ name: "YSM Files", extensions: ["ysm"] }], + }); + if (!picked) return []; + return Array.isArray(picked) ? picked : [picked]; +} + +export type DragDropPhase = "enter" | "over" | "leave" | "drop"; + +export async function listenTauriDragDrop( + onChange: (phase: DragDropPhase, paths: string[]) => void +): Promise<() => void> { + const { getCurrentWebview } = await import("@tauri-apps/api/webview"); + return getCurrentWebview().onDragDropEvent(({ payload }) => { + const paths = "paths" in payload ? payload.paths : []; + onChange(payload.type, paths); + }); +} diff --git a/public/src/lib/wasm.ts b/public/src/lib/wasm.ts new file mode 100644 index 0000000..d42885f --- /dev/null +++ b/public/src/lib/wasm.ts @@ -0,0 +1,337 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +declare global { + interface Window { + YSMParserModule?: (opts: unknown) => Promise; + Module?: (opts: unknown) => Promise; + } +} + +export interface WasmModule { + FS: { + mkdir(path: string): void; + readdir(path: string): string[]; + readFile(path: string): Uint8Array; + writeFile(path: string, data: Uint8Array): void; + unlink(path: string): void; + rmdir(path: string): void; + stat(path: string): { mode: number }; + isDir(mode: number): boolean; + }; + callMain(args: string[]): number; +} + +export interface OutputFile { + path: string; + data: Uint8Array; +} + +export interface RunWasmOptions { + maxBatchBytes?: number; + onOutputFile?: (file: OutputFile) => void; + onProgress: (pct: number, label: string) => void; +} + +export interface RunWasmResult { + outputCount: number; + outputBytes: number; + batchCount: number; + timings: RunWasmTimings; +} + +export interface RunWasmBatchTiming { + batch: number; + fileCount: number; + inputBytes: number; + inputWriteMs: number; + parserMs: number; + outputCollectMs: number; + cleanupMs: number; + totalMs: number; +} + +export interface RunWasmTimings { + inputWriteMs: number; + parserMs: number; + outputCollectMs: number; + cleanupMs: number; + totalMs: number; + batches: RunWasmBatchTiming[]; +} + +const DEFAULT_MAX_BATCH_BYTES = 96 * 1024 * 1024; +let runtimeScriptPromise: Promise | null = null; + +function wasmFactory(): ((opts: unknown) => Promise) | undefined { + const factory = + window.YSMParserModule ?? + window.Module ?? + // @ts-ignore + globalThis.YSMParserModule ?? + // @ts-ignore + globalThis.Module; + return typeof factory === "function" ? factory : undefined; +} + +export async function initWasm( + onLog: (text: string) => void +): Promise { + await loadWasmRuntimeScript(); + const factory = wasmFactory(); + + if (!factory) { + const msg = await diagnoseFactoryError(); + throw new Error(msg); + } + + return factory({ + noInitialRun: true, + print: (text: string) => onLog(text), + printErr: (text: string) => onLog(text), + locateFile: (path: string) => `./${path}`, + }); +} + +function loadWasmRuntimeScript(): Promise { + if (wasmFactory()) return Promise.resolve(); + if (runtimeScriptPromise) return runtimeScriptPromise; + + runtimeScriptPromise = new Promise((resolve, reject) => { + const existing = document.querySelector( + 'script[data-ysmparser-runtime="true"]' + ); + if (existing) { + existing.addEventListener("load", () => resolve(), { once: true }); + existing.addEventListener("error", () => reject(new Error("Failed to load YSMParser.js")), { + once: true, + }); + return; + } + + const script = document.createElement("script"); + script.src = "./YSMParser.js"; + script.async = true; + script.dataset.ysmparserRuntime = "true"; + script.onload = () => resolve(); + script.onerror = () => reject(new Error("Failed to load YSMParser.js")); + document.head.appendChild(script); + }); + + return runtimeScriptPromise; +} + +async function diagnoseFactoryError(): Promise { + try { + const response = await fetch("./YSMParser.js", { cache: "no-store" }); + if (response.ok) { + const source = await response.text(); + if ( + source.includes('require("node:fs")') || + source.includes("require('node:fs')") || + source.includes("NODERAWFS") || + source.includes("ENVIRONMENT_IS_NODE=true") + ) { + return "WASM file mismatch — place the web build of YSMParser.js alongside this page."; + } + } + } catch { + // ignore + } + return "WASM runtime not available — make sure YSMParser.js and YSMParser.wasm are in the same directory."; +} + +function wipeDir(FS: WasmModule["FS"], dir: string): void { + try { + const entries = FS.readdir(dir).filter((n) => n !== "." && n !== ".."); + for (const entry of entries) { + const full = `${dir}/${entry}`; + const stat = FS.stat(full); + if (FS.isDir(stat.mode)) { + wipeDir(FS, full); + FS.rmdir(full); + } else { + FS.unlink(full); + } + } + } catch { + // ignore + } +} + +function ensureDir(FS: WasmModule["FS"], dir: string): void { + const parts = dir.split("/").filter(Boolean); + let current = ""; + for (const part of parts) { + current += `/${part}`; + try { + FS.mkdir(current); + } catch { + // already exists + } + } +} + +export async function runWasm( + mod: WasmModule, + files: File[], + options: RunWasmOptions +): Promise { + const { FS } = mod; + const batches = makeFileBatches( + files, + options.maxBatchBytes ?? DEFAULT_MAX_BATCH_BYTES + ); + let outputCount = 0; + let outputBytes = 0; + const timings: RunWasmTimings = { + inputWriteMs: 0, + parserMs: 0, + outputCollectMs: 0, + cleanupMs: 0, + totalMs: 0, + batches: [], + }; + + if (batches.length === 0) { + return { outputCount: 0, outputBytes: 0, batchCount: 0, timings }; + } + + const totalStart = performance.now(); + for (let batchIndex = 0; batchIndex < batches.length; batchIndex++) { + const batch = batches[batchIndex]; + const batchNumber = batchIndex + 1; + const batchBase = (batchIndex / batches.length) * 75; + const batchSpan = 75 / batches.length; + const batchInputBytes = batch.reduce((sum, file) => sum + file.size, 0); + const batchStart = performance.now(); + + wipeDir(FS, "/input"); + wipeDir(FS, "/output"); + ensureDir(FS, "/input"); + ensureDir(FS, "/output"); + + const inputStart = performance.now(); + for (let i = 0; i < batch.length; i++) { + const file = batch[i]; + const bytes = new Uint8Array(await file.arrayBuffer()); + FS.writeFile(`/input/${file.name}`, bytes); + options.onProgress( + batchBase + (i / Math.max(1, batch.length)) * batchSpan * 0.35, + `Loading batch ${batchNumber} / ${batches.length}` + ); + } + const inputWriteMs = performance.now() - inputStart; + timings.inputWriteMs += inputWriteMs; + + options.onProgress( + batchBase + batchSpan * 0.35, + `Parsing batch ${batchNumber} / ${batches.length}` + ); + const parserStart = performance.now(); + const exitCode = mod.callMain(["-i", "/input", "-o", "/output", "--profile"]); + const parserMs = performance.now() - parserStart; + timings.parserMs += parserMs; + if (typeof exitCode === "number" && exitCode !== 0) { + throw new Error(`Parser exited with code ${exitCode}`); + } + + options.onProgress( + batchBase + batchSpan * 0.9, + `Collecting batch ${batchNumber} / ${batches.length}` + ); + const outputStart = performance.now(); + const batchOutput = collectOutputFiles(FS, "/output", options.onOutputFile); + const outputCollectMs = performance.now() - outputStart; + timings.outputCollectMs += outputCollectMs; + outputCount += batchOutput.count; + outputBytes += batchOutput.bytes; + + const cleanupStart = performance.now(); + wipeDir(FS, "/input"); + wipeDir(FS, "/output"); + const cleanupMs = performance.now() - cleanupStart; + timings.cleanupMs += cleanupMs; + timings.batches.push({ + batch: batchNumber, + fileCount: batch.length, + inputBytes: batchInputBytes, + inputWriteMs, + parserMs, + outputCollectMs, + cleanupMs, + totalMs: performance.now() - batchStart, + }); + options.onProgress( + batchBase + batchSpan, + `Finished batch ${batchNumber} / ${batches.length}` + ); + } + + timings.totalMs = performance.now() - totalStart; + return { outputCount, outputBytes, batchCount: batches.length, timings }; +} + +function makeFileBatches(files: File[], maxBatchBytes: number): File[][] { + const safeMax = Math.max(1, maxBatchBytes); + const batches: File[][] = []; + let batch: File[] = []; + let batchBytes = 0; + + for (const file of files) { + if (batch.length > 0 && batchBytes + file.size > safeMax) { + batches.push(batch); + batch = []; + batchBytes = 0; + } + + batch.push(file); + batchBytes += file.size; + } + + if (batch.length > 0) { + batches.push(batch); + } + + return batches; +} + +function collectOutputFiles( + FS: WasmModule["FS"], + root: string, + onOutputFile?: (file: OutputFile) => void +): { count: number; bytes: number } { + let count = 0; + let bytes = 0; + const walk = (dir: string, relativeBase: string) => { + const entries = FS.readdir(dir).filter((n) => n !== "." && n !== ".."); + for (const entry of entries) { + const fullPath = `${dir}/${entry}`; + const relPath = relativeBase ? `${relativeBase}/${entry}` : entry; + const stat = FS.stat(fullPath); + if (FS.isDir(stat.mode)) { + walk(fullPath, relPath); + } else { + const data = FS.readFile(fullPath); + count += 1; + bytes += data.byteLength; + onOutputFile?.({ path: relPath, data }); + } + } + }; + walk(root, ""); + return { count, bytes }; +} diff --git a/public/src/main.ts b/public/src/main.ts new file mode 100644 index 0000000..b0cb9d2 --- /dev/null +++ b/public/src/main.ts @@ -0,0 +1,23 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +import "./app.css"; +import App from "./App.svelte"; +import { mount } from "svelte"; + +const app = mount(App, { target: document.getElementById("app")! }); + +export default app; diff --git a/public/svelte.config.js b/public/svelte.config.js new file mode 100644 index 0000000..e08b7f1 --- /dev/null +++ b/public/svelte.config.js @@ -0,0 +1,21 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; + +export default { + preprocess: vitePreprocess(), +}; diff --git a/public/tsconfig.json b/public/tsconfig.json new file mode 100644 index 0000000..89f03ce --- /dev/null +++ b/public/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2021", + "useDefineForClassFields": true, + "module": "ESNext", + "lib": ["ES2021", "DOM", "DOM.Iterable"], + "moduleResolution": "bundler", + "strict": true, + "skipLibCheck": true, + "resolveJsonModule": true + }, + "include": ["src/**/*.ts", "src/**/*.svelte"] +} diff --git a/public/vite.config.ts b/public/vite.config.ts new file mode 100644 index 0000000..230191b --- /dev/null +++ b/public/vite.config.ts @@ -0,0 +1,36 @@ +/* The frontend of YSMParser. +// Copyright (C) 2026 MiRinChan +// This program is free software; you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation; either version 2 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this program; if not, see < https://www.gnu.org/licenses/>. +*/ + +import { defineConfig } from "vite"; +import { svelte } from "@sveltejs/vite-plugin-svelte"; + +export default defineConfig(async () => ({ + plugins: [svelte()], + clearScreen: false, + server: { + port: 1420, + strictPort: true, + watch: { + ignored: ["**/src-tauri/**"], + }, + }, + build: { + outDir: "dist", + target: ["es2021", "chrome100", "safari13"], + minify: !process.env.TAURI_DEBUG ? "esbuild" : false, + sourcemap: !!process.env.TAURI_DEBUG, + }, +})); diff --git a/scripts/release.sh b/scripts/release.sh new file mode 100755 index 0000000..bae6ed4 --- /dev/null +++ b/scripts/release.sh @@ -0,0 +1,531 @@ +#!/usr/bin/env bash +set -euo pipefail + +script_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)" +repo_root="$(cd -- "$script_dir/.." && pwd)" +script_path="$script_dir/$(basename -- "${BASH_SOURCE[0]}")" + +cd "$repo_root" + +release_dir="${YSM_RELEASE_OUT:-$repo_root/out/release}" +internal_target="" +targets=() + +usage() { + cat <<'EOF' +Usage: scripts/release.sh [options] [target...] + +Build local release artifacts without creating or uploading a GitHub release. +Tauri desktop bundles are built for the current host OS by default. + +Targets: + native Build and package the host native CLI/JNI release. + wasm-node Build and package the Node.js WASM release. + web Build and package the browser app in public/dist. + tauri Build and collect the host Tauri desktop bundle. + tauri-windows-x64 + Cross-build the Windows x64 Tauri NSIS installer from Linux/macOS. + tauri-macos-arm64, tauri-macos-x64 + Build macOS Tauri bundles on a matching macOS host only. + all Run native, wasm-node, web, and tauri. + +Default targets: + native tauri + +Options: + --out DIR Write artifacts under DIR. Default: out/release. + --no-nix Do not auto-enter the repository Nix dev shell. + -h, --help Show this help. + +Environment: + YSM_RELEASE_OUT Same as --out. + YSM_RELEASE_NO_NIX=1 Same as --no-nix. + YSM_RELEASE_TAURI_BUNDLES Override Tauri bundle target. + Defaults: deb on Linux, dmg on macOS, nsis on Windows. + Use "none" to run tauri build --no-bundle. + XWIN_CACHE_DIR cargo-xwin Windows SDK cache. +EOF +} + +log() { + printf '[release] %s\n' "$*" +} + +die() { + printf '[release] error: %s\n' "$*" >&2 + exit 1 +} + +is_windows() { + case "$(uname -s)" in + MINGW*|MSYS*|CYGWIN*) return 0 ;; + *) return 1 ;; + esac +} + +normalize_out_dir() { + local path="$1" + case "$path" in + /*) printf '%s\n' "$path" ;; + *) printf '%s/%s\n' "$repo_root" "$path" ;; + esac +} + +while [[ $# -gt 0 ]]; do + case "$1" in + --internal-target) + [[ $# -ge 2 ]] || die "--internal-target requires a value" + internal_target="$2" + shift 2 + ;; + --out) + [[ $# -ge 2 ]] || die "--out requires a directory" + release_dir="$(normalize_out_dir "$2")" + shift 2 + ;; + --no-nix) + export YSM_RELEASE_NO_NIX=1 + shift + ;; + -h|--help) + usage + exit 0 + ;; + -*) + die "unknown option: $1" + ;; + *) + targets+=("$1") + shift + ;; + esac +done + +release_dir="$(normalize_out_dir "$release_dir")" +export YSM_RELEASE_OUT="$release_dir" + +expand_targets() { + local target + for target in "$@"; do + case "$target" in + all) + printf '%s\n' native wasm-node web tauri + ;; + wasm-web) + printf '%s\n' web + ;; + native|wasm-node|web|tauri) + printf '%s\n' "$target" + ;; + win|windows|windows-x64|tauri-windows-x64) + printf '%s\n' tauri-windows-x64 + ;; + macos|macos-arm64|tauri-macos-arm64) + printf '%s\n' tauri-macos-arm64 + ;; + macos-x64|tauri-macos-x64) + printf '%s\n' tauri-macos-x64 + ;; + *) + die "unknown target: $target" + ;; + esac + done +} + +target_shell() { + case "$1" in + native) printf '%s\n' native ;; + wasm-node|web) printf '%s\n' wasm ;; + tauri) printf '%s\n' tauri ;; + tauri-windows-x64) printf '%s\n' tauri-windows ;; + tauri-macos-arm64|tauri-macos-x64) printf '%s\n' tauri ;; + *) die "unknown target: $1" ;; + esac +} + +if [[ -n "$internal_target" ]]; then + targets=("$internal_target") +elif [[ ${#targets[@]} -eq 0 ]]; then + targets=(native tauri) +fi + +mapfile -t targets < <(expand_targets "${targets[@]}") + +if [[ -z "$internal_target" && "${YSM_RELEASE_NO_NIX:-}" != "1" && -f "$repo_root/flake.nix" && -x "$(command -v nix 2>/dev/null || true)" ]]; then + for target in "${targets[@]}"; do + shell_name="$(target_shell "$target")" + log "running $target in nix develop .#$shell_name" + nix develop ".#$shell_name" --command bash "$script_path" --internal-target "$target" + done + log "artifacts written under $release_dir" + exit 0 +fi + +version="$(tr -d '\r\n' < "$repo_root/version.txt")" +[[ -n "$version" ]] || die "version.txt is empty" + +prepare_staging_dir() { + local name="$1" + local dir="$release_dir/staging/$name" + rm -rf "$dir" + mkdir -p "$dir" + printf '%s\n' "$dir" +} + +copy_common_files() { + local dir="$1" + cp "$repo_root/LICENSE.txt" "$dir/" + if [[ -f "$repo_root/README.md" ]]; then + cp "$repo_root/README.md" "$dir/" + fi +} + +archive_dir() { + local dir="$1" + local stem="$2" + mkdir -p "$release_dir" + + if is_windows; then + local archive="$release_dir/$stem.zip" + rm -f "$archive" + if command -v zip >/dev/null 2>&1; then + (cd "$dir" && zip -qr "$archive" .) + elif command -v 7z >/dev/null 2>&1; then + (cd "$dir" && 7z a -tzip "$archive" . >/dev/null) + else + local fallback="$release_dir/$stem.tar.gz" + tar -C "$dir" -czf "$fallback" . + log "zip/7z not found; wrote $fallback" + return + fi + log "wrote $archive" + else + local archive="$release_dir/$stem.tar.gz" + rm -f "$archive" + tar -C "$dir" -czf "$archive" . + log "wrote $archive" + fi +} + +set_native_vars() { + local system + local machine + system="$(uname -s)" + machine="$(uname -m)" + + case "$system" in + Linux) + if [[ "$machine" == "aarch64" || "$machine" == "arm64" ]]; then + native_preset="linux-arm64-release" + native_platform="linux-arm64" + else + native_preset="linux-release" + native_platform="linux-x64" + fi + native_binary="out/install/$native_preset/YSMParser" + native_jni="out/install/$native_preset/libYSMParserJNI.so" + ;; + Darwin) + native_preset="macos-release" + if [[ "$machine" == "arm64" || "$machine" == "aarch64" ]]; then + native_platform="macos-arm64" + else + native_platform="macos-x64" + fi + native_binary="out/install/$native_preset/YSMParser" + native_jni="out/install/$native_preset/libYSMParserJNI.dylib" + ;; + MINGW*|MSYS*|CYGWIN*) + native_preset="x64-release" + native_platform="windows-x64" + native_binary="out/install/$native_preset/YSMParser.exe" + native_jni="out/install/$native_preset/YSMParserJNI.dll" + ;; + *) + die "unsupported native host: $system $machine" + ;; + esac +} + +build_native() { + set_native_vars + local archive_name="YSMParser-$version-$native_platform" + local staging + + log "building native preset $native_preset" + cmake --preset "$native_preset" + cmake --build --preset "$native_preset" --parallel + cmake --install "out/build/$native_preset" --prefix "out/install/$native_preset" + + [[ -f "$repo_root/$native_binary" ]] || die "missing native binary: $native_binary" + + staging="$(prepare_staging_dir "$archive_name")" + cp "$repo_root/$native_binary" "$staging/" + if [[ -n "$native_jni" && -f "$repo_root/$native_jni" ]]; then + cp "$repo_root/$native_jni" "$staging/" + fi + copy_common_files "$staging" + archive_dir "$staging" "$archive_name" +} + +build_wasm_node() { + local preset="wasm-release" + local archive_name="YSMParser-$version-wasm-node" + local staging + local wasm_file + + log "building $preset" + cmake --preset "$preset" + cmake --build --preset "$preset" --parallel + cmake --install "out/build/$preset" --prefix "out/install/$preset" + + wasm_file="$(find "$repo_root/out/install/$preset" -maxdepth 1 -type f -name '*.wasm' | head -n 1)" + [[ -f "$repo_root/out/install/$preset/YSMParser.js" ]] || die "missing out/install/$preset/YSMParser.js" + [[ -n "$wasm_file" ]] || die "missing wasm file in out/install/$preset" + + staging="$(prepare_staging_dir "$archive_name")" + cp "$repo_root/out/install/$preset/YSMParser.js" "$staging/" + cp "$wasm_file" "$staging/" + copy_common_files "$staging" + archive_dir "$staging" "$archive_name" +} + +build_web() { + local archive_name="YSMParser-$version-web" + local staging + + log "building browser app" + "$repo_root/public/scripts/build-web.sh" + + [[ -d "$repo_root/public/dist" ]] || die "missing public/dist" + staging="$(prepare_staging_dir "$archive_name")" + cp -R "$repo_root/public/dist/." "$staging/" + copy_common_files "$staging" + archive_dir "$staging" "$archive_name" +} + +set_tauri_vars() { + local system + local triple + system="$(uname -s)" + triple="$(rustc -vV | awk '/^host: / {print $2}')" + [[ -n "$triple" ]] || die "could not determine Rust host triple" + + case "$system" in + Linux) + tauri_bundle="${YSM_RELEASE_TAURI_BUNDLES:-deb}" + tauri_binary_name="ysm-parser" + sidecar_ext="" + ;; + Darwin) + tauri_bundle="${YSM_RELEASE_TAURI_BUNDLES:-dmg}" + tauri_binary_name="ysm-parser" + sidecar_ext="" + ;; + MINGW*|MSYS*|CYGWIN*) + tauri_bundle="${YSM_RELEASE_TAURI_BUNDLES:-nsis}" + tauri_binary_name="ysm-parser.exe" + sidecar_ext=".exe" + ;; + *) + die "unsupported Tauri host: $system" + ;; + esac + + tauri_triple="$triple" + tauri_sidecar_name="YSMParser-$triple$sidecar_ext" + tauri_sidecar_source="out/build/release-tauri-sidecar/YSMParser/YSMParser$sidecar_ext" +} + +copy_tauri_outputs() { + local staging="$1" + local bundle="$2" + + case "$bundle" in + none|no-bundle) + [[ -f "$repo_root/public/src-tauri/target/release/$tauri_binary_name" ]] || die "missing Tauri binary" + cp "$repo_root/public/src-tauri/target/release/$tauri_binary_name" "$staging/" + ;; + deb) + find "$repo_root/public/src-tauri/target/release/bundle/deb" -maxdepth 1 -type f -name '*.deb' -exec cp {} "$staging/" \; + ;; + dmg) + find "$repo_root/public/src-tauri/target/release/bundle/dmg" -maxdepth 1 -type f -name '*.dmg' -exec cp {} "$staging/" \; + ;; + nsis) + find "$repo_root/public/src-tauri/target/release/bundle/nsis" -maxdepth 1 -type f -name '*.exe' -exec cp {} "$staging/" \; + ;; + *) + find "$repo_root/public/src-tauri/target/release/bundle" -type f -exec cp {} "$staging/" \; + ;; + esac + + if ! find "$staging" -maxdepth 1 -type f | grep -q .; then + die "no Tauri outputs copied for bundle target: $bundle" + fi +} + +build_tauri() { + set_tauri_vars + local archive_name="YSMParser-$version-tauri-$tauri_triple" + local staging + + log "building Tauri sidecar for $tauri_triple" + cmake -S "$repo_root" -B "$repo_root/out/build/release-tauri-sidecar" -G Ninja -DCMAKE_BUILD_TYPE=Release -DYSM_TARGET_JNI=OFF + cmake --build "$repo_root/out/build/release-tauri-sidecar" --parallel + + [[ -f "$repo_root/$tauri_sidecar_source" ]] || die "missing sidecar binary: $tauri_sidecar_source" + mkdir -p "$repo_root/public/src-tauri/binaries" + cp "$repo_root/$tauri_sidecar_source" "$repo_root/public/src-tauri/binaries/$tauri_sidecar_name" + if ! is_windows; then + chmod +x "$repo_root/public/src-tauri/binaries/$tauri_sidecar_name" + fi + + log "building Tauri bundle target: $tauri_bundle" + ( + cd "$repo_root/public" + CI=true pnpm install --frozen-lockfile + if [[ "$tauri_bundle" == "none" || "$tauri_bundle" == "no-bundle" ]]; then + pnpm tauri build --no-bundle + else + pnpm tauri build --bundles "$tauri_bundle" + fi + ) + + staging="$(prepare_staging_dir "$archive_name")" + copy_tauri_outputs "$staging" "$tauri_bundle" + archive_dir "$staging" "$archive_name" +} + +write_mingw_toolchain_file() { + local toolchain_file="$1" + local cc + local cxx + local windres + + cc="$(command -v x86_64-w64-mingw32-gcc || true)" + cxx="$(command -v x86_64-w64-mingw32-g++ || true)" + windres="$(command -v x86_64-w64-mingw32-windres || true)" + + [[ -n "$cc" ]] || die "missing x86_64-w64-mingw32-gcc" + [[ -n "$cxx" ]] || die "missing x86_64-w64-mingw32-g++" + + cat > "$toolchain_file" <> "$toolchain_file" + fi +} + +ensure_windows_rust_toolchain() { + command -v rustup >/dev/null 2>&1 || die "missing rustup" + command -v cargo-xwin >/dev/null 2>&1 || die "missing cargo-xwin" + command -v makensis >/dev/null 2>&1 || die "missing NSIS makensis" + command -v llvm-rc >/dev/null 2>&1 || die "missing llvm-rc" + + export PATH="$HOME/.cargo/bin:$PATH" + rustup toolchain install stable --profile minimal --target x86_64-pc-windows-msvc +} + +copy_tauri_windows_outputs() { + local staging="$1" + local bundle_dir="$repo_root/public/src-tauri/target/x86_64-pc-windows-msvc/release/bundle/nsis" + + [[ -d "$bundle_dir" ]] || die "missing Windows NSIS bundle directory: $bundle_dir" + find "$bundle_dir" -maxdepth 1 -type f -name '*.exe' -exec cp {} "$staging/" \; + + if ! find "$staging" -maxdepth 1 -type f -name '*.exe' | grep -q .; then + die "no Windows NSIS installer copied from $bundle_dir" + fi +} + +build_tauri_windows_x64() { + local target_triple="x86_64-pc-windows-msvc" + local archive_name="YSMParser-$version-tauri-windows-x64" + local build_dir="$repo_root/out/build/release-windows-x64-sidecar" + local toolchain_file="$build_dir/mingw-toolchain.cmake" + local sidecar_source="$build_dir/YSMParser/YSMParser.exe" + local sidecar_dest="$repo_root/public/src-tauri/binaries/YSMParser-$target_triple.exe" + local staging + + if is_windows; then + log "Windows host detected; using the native Tauri Windows build path" + build_tauri + return + fi + + ensure_windows_rust_toolchain + + log "cross-building Windows sidecar with MinGW" + mkdir -p "$build_dir" + write_mingw_toolchain_file "$toolchain_file" + cmake -S "$repo_root" -B "$build_dir" -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DYSM_TARGET_JNI=OFF \ + -DCMAKE_TOOLCHAIN_FILE="$toolchain_file" + cmake --build "$build_dir" --parallel + + [[ -f "$sidecar_source" ]] || die "missing Windows sidecar: $sidecar_source" + mkdir -p "$repo_root/public/src-tauri/binaries" + cp "$sidecar_source" "$sidecar_dest" + + log "cross-building Windows Tauri NSIS installer with cargo-xwin" + ( + cd "$repo_root/public" + CI=true pnpm install --frozen-lockfile + RUSTUP_TOOLCHAIN=stable pnpm tauri build \ + --runner cargo-xwin \ + --target "$target_triple" \ + --bundles nsis + ) + + staging="$(prepare_staging_dir "$archive_name")" + copy_tauri_windows_outputs "$staging" + archive_dir "$staging" "$archive_name" +} + +build_tauri_macos_target() { + local requested="$1" + local system + local machine + system="$(uname -s)" + machine="$(uname -m)" + + if [[ "$system" != "Darwin" ]]; then + die "$requested requires macOS. Tauri DMG/App bundles are built on a Mac host; use the macOS CI runner for this target." + fi + + case "$requested:$machine" in + tauri-macos-arm64:arm64|tauri-macos-x64:x86_64) + build_tauri + ;; + *) + die "$requested requires a matching macOS runner architecture; current machine is $machine" + ;; + esac +} + +for target in "${targets[@]}"; do + case "$target" in + native) build_native ;; + wasm-node) build_wasm_node ;; + web) build_web ;; + tauri) build_tauri ;; + tauri-windows-x64) build_tauri_windows_x64 ;; + tauri-macos-arm64|tauri-macos-x64) build_tauri_macos_target "$target" ;; + *) die "unknown target after expansion: $target" ;; + esac +done + +log "artifacts written under $release_dir" diff --git a/version.txt b/version.txt index c2c0004..449d7e7 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.3.5 +0.3.6