const socket = new WebSocket('wss://example.com/socket', 'custom-protocol');socket.addEventListener('
# 文件系统 notify = "6.0" # 日志 log = "0.4" fern = "0.6" # 错误处理 anyhow = "1.0" [features] # Tauri 功能 custom-protocol = ["tauri/custom-protocol"] [profile.release] opt-level = "z" lto = true codegen-units = 1 panic =
serde={version="1.0",features=["derive"]}serde_json="1.0"walkdir="2.5"notify="6.1"anyhow="1.0"[features]custom-protocol =["tauri/custom-protocol"]核心API实现lib.rs-完整实现展开代码语言:RustAI代码解释useserde::{Deserialize,Serialize};usestd