G2 控制面:gitea_create_repo / gitea_migrate_repo / gitea_link_repo, upsert 绑定(换绑自动重置 webhook 字段),API 错误提取 Gitea message 可读返回 G3 观测面:MCP Server 新增 POST /webhook/gitea/:project_id——HMAC-SHA256 验签 (X-Gitea-Signature,兼容 X-Hub-Signature-256)→ 解析 commits → 批量 record_commit(sha 幂等,与本地 watcher 双路径不重复计数);验签失败记 log_event G4 webhook 注册:gitea_setup_webhook 生成随机 secret 注册 push hook(重设先删旧)、 gitea_unlink_repo 解绑顺带清理 Gitea 侧 hook G5 治理面板:GiteaPanel——实例管理(添加/测试/删除)、当前项目三种绑定方式、 webhook 注册与可复制回调地址、全部绑定概览 依赖:新增 hmac + sha2;project_id 与 commit_metrics 同源(Project.id), 避免双路径冲突复发;R10 修正设计文档错误签名头 验证:cargo test 58 passed(新增 upsert 换绑重置 + hmac 正反向 + payload 解析 5 测试)、 typecheck 全绿
50 lines
1.4 KiB
TOML
50 lines
1.4 KiB
TOML
[package]
|
|
name = "dev-manager-tauri"
|
|
version = "0.1.15"
|
|
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 = "dev_manager_tauri_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["tray-icon", "image-png"] }
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-shell = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
rusqlite = { version = "0.32", features = ["bundled"] }
|
|
r2d2 = "0.8"
|
|
r2d2_sqlite = "0.25"
|
|
once_cell = "1"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
uuid = { version = "1", features = ["v4"] }
|
|
git2 = { version = "0.19", features = ["vendored-openssl"] }
|
|
tauri-plugin-http = "2"
|
|
tauri-plugin-updater = "2"
|
|
tauri-plugin-process = "2"
|
|
tauri-plugin-single-instance = "2"
|
|
axum = "0.7"
|
|
tokio = { version = "1", features = ["net", "time"] }
|
|
tokio-stream = "0.1"
|
|
futures-core = "0.3"
|
|
ureq = { version = "2", features = ["json"] }
|
|
open = "5"
|
|
base64 = "0.22"
|
|
urlencoding = "2"
|
|
serde_yaml = "0.9"
|
|
hmac = "0.12"
|
|
sha2 = "0.10"
|
|
|