a143b94ac1
- 根因: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 警告
16 lines
403 B
Rust
16 lines
403 B
Rust
#[derive(Debug, Clone)]
|
|
pub struct ProxyEndpoint {
|
|
/// Proxy server host (e.g. 192.168.0.100, localhost, example.com, etc.)
|
|
pub host: String,
|
|
/// Proxy server port (e.g. 1080, 3128, etc.)
|
|
pub port: String,
|
|
}
|
|
|
|
#[derive(Debug, Clone)]
|
|
pub enum ProxyConfig {
|
|
/// Connect to proxy server via HTTP CONNECT
|
|
Http(ProxyEndpoint),
|
|
/// Connect to proxy server via SOCKSv5
|
|
Socks5(ProxyEndpoint),
|
|
}
|