From f1b361bbe7e7a59142ae02667adb928d8632528c Mon Sep 17 00:00:00 2001 From: Warren Lo Date: Thu, 19 Mar 2026 00:31:04 +0800 Subject: [PATCH] Add Cargo.toml with core dependencies --- Cargo.toml | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Cargo.toml diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..aa8a691 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,48 @@ +[package] +name = "momentry_playground" +version = "0.1.0" +edition = "2021" +description = "MoMentry 主視窗應用 - 統一播放、檢視、監控於一體" +authors = ["Warren Lo "] +license = "MIT" + +[[bin]] +name = "momentry" +path = "src/main.rs" + +[lib] +name = "momentry_playground" +path = "src/lib.rs" + +[dependencies] +# 桌面窗口管理 +tao = "0.30" +wry = "0.54" + +# 視頻/音頻 +sdl2 = "0.38" +ffmpeg-sidecar = "2.4" + +# 錯誤處理 +anyhow = "1.0" +thiserror = "2.0" + +# 序列化 +serde = { version = "1.0", features = ["derive"] } +serde_json = "1.0" + +# 異步 +tokio = { version = "1", features = ["full"] } + +# HTTP 客戶端 +reqwest = { version = "0.12", features = ["json"] } + +# 日誌 +log = "0.4" +env_logger = "0.11" + +# 工具 +clap = { version = "4.5", features = ["derive"] } +dirs = "6" +md5 = "0.7" +chrono = "0.4"