Files
DPM/src-tauri/Cargo.toml
T
Pine a143b94ac1 fix(tauri): patch wry 绕过 macOS 26 启动崩溃(NSBundle bundleWithIdentifier SIGTRAP)
- 根因:tauri 启动探测 webview 版本时调用 wry platform_webview_version()
  → NSBundle::bundleWithIdentifier(com.apple.WebKit) 在 macOS 26 (Tahoe) 上
  触发 CFBundle/CFRelease 断言崩溃(EXC_BREAKPOINT)
- 方案:vendor 本地 wry 0.55.1,该函数改为安全占位返回(仅被上层用作 is_ok() 探测,
  返回值无实际用途),[patch.crates-io] 指向本地副本
- 附带:移除 NSBundle import,消除 unused 警告
2026-08-18 01:53:34 +08:00

26 lines
735 B
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
[package]
name = "昆明大学生创业园展播系统"
version = "0.1.0"
description = "大屏媒体轮播系统 - Tauri App"
authors = ["Pine"]
edition = "2021"
[lib]
name = "dpm_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = [] }
tauri-plugin-opener = "2"
tauri-plugin-autostart = "2"
serde = { version = "1", features = ["derive"] }
# 本地补丁:wry 0.55.1 的 platform_webview_version 在 macOS 26 上
# NSBundle::bundleWithIdentifier 触发 CFRelease 断言崩溃(SIGTRAP),
# 已改为安全占位实现(见 vendor/wry/src/wkwebview/mod.rs
[patch.crates-io]
wry = { path = "vendor/wry" }