- 将库名称从 `tauri_demo_lib` 更改为 `tauri_shell_lib` 以确保名称唯一性并避免潜在冲突。 - 更新注释以统一使用“Sidecar”术语,明确标识进程启动与清理操作 - 将主函数中的库调用从 tauri_demo_lib 更改为 tauri_shell_lib。
26 lines
785 B
TOML
26 lines
785 B
TOML
[package]
|
|
name = "tauri-shell"
|
|
version = "0.1.0"
|
|
description = "A Tauri App"
|
|
authors = ["you"]
|
|
edition = "2021"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
# The `_lib` suffix may seem redundant but it is necessary
|
|
# 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
|
|
name = "tauri_shell_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-shell = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
tokio = { version = "1", features = ["net"] }
|