增加注释

This commit is contained in:
2026-02-14 12:49:52 +00:00
parent 3b0635af44
commit 573c1861b0

View File

@@ -1,29 +1,30 @@
[package] [package]
name = "dex-v3-ui" name = "dex-v3-ui" # 包名称
version = "0.1.0" version = "0.1.0" # 版本号
description = "A Tauri App" description = "A Tauri App" # 包描述
authors = ["you"] authors = ["you"] # 作者信息
edition = "2021" edition = "2021" # Rust 版本2021 edition
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # 更多配置说明请参考: https://doc.rust-lang.org/cargo/reference/manifest.html
[lib] [lib]
# The `_lib` suffix may seem redundant but it is necessary # `_lib` 后缀看起来多余,但它是必要的
# to make the lib name unique and wouldn't conflict with the bin name. # 目的是使库名称唯一,避免与二进制名称冲突
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519 # 这个问题主要出现在 Windows 平台上,具体参见: https://github.com/rust-lang/cargo/issues/8519
name = "dex_v3_ui_lib" name = "dex_v3_ui_lib" # 库名称(添加 _lib 后缀避免冲突)
crate-type = ["staticlib", "cdylib", "rlib"] crate-type = ["staticlib", "cdylib", "rlib"] # 编译生成的库类型
[build-dependencies] [build-dependencies]
tauri-build = { version = "2", features = [] } # 构建时依赖(用于 Tauri 的构建脚本)
tauri-build = { version = "2", features = [] } # Tauri 构建工具
[dependencies] [dependencies]
tauri = { version = "2", features = [] } # 运行时依赖
tauri-plugin-opener = "2" tauri = { version = "2", features = [] } # Tauri 核心框架
serde = { version = "1", features = ["derive"] } tauri-plugin-opener = "2" # 打开外部程序/文件的插件
serde_json = "1" serde = { version = "1", features = ["derive"] } # 序列化/反序列化框架
open = "5.3.2" serde_json = "1" # JSON 处理库
tauri-plugin-store = "2" open = "5.3.2" # 跨平台打开文件/URL 的库
tauri-plugin-shell = "2" tauri-plugin-store = "2" # 本地数据存储插件
tauri-plugin-notification = "2" tauri-plugin-shell = "2" # Shell 命令执行插件
tauri-plugin-notification = "2" # 系统通知插件