- Gitea API を既存 reqwest で呼び出し最新リリース取得 - BUILD_TARGET でアセット名(tar.gz / zip)を照合して自動選択 - バージョン比較 → 確認プロンプト(-y/--yes でスキップ) - ダウンロード → アーカイブ展開 → self-replace でアトミック置換 - GITEA_TOKEN 環境変数でプライベートリポジトリ対応 - build.rs に BUILD_TARGET 環境変数の出力を追加 - .gitea/workflows/release.yml を追加(v* タグ push でマルチプラットフォームビルド) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
37 lines
876 B
TOML
37 lines
876 B
TOML
[package]
|
|
name = "mdrs-client-rust"
|
|
version = "0.1.1"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
authors = ["Neuroinformatics Unit, RIKEN CBS"]
|
|
description = "A command-line client for uploading and downloading files to and from an MDRS-based repository."
|
|
|
|
[[bin]]
|
|
name = "mdrs"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
clap = { version = "4.5", features = ["derive"] }
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "multipart", "rustls-tls"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
tokio = { version = "1.37", features = ["full"] }
|
|
futures = "0.3"
|
|
dirs = "5.0"
|
|
anyhow = "1.0.102"
|
|
configparser = "3.1.0"
|
|
validators = "0.25.3"
|
|
sha2 = "0.10"
|
|
rpassword = "7.0"
|
|
base64 = "0.22"
|
|
fs2 = "0.4"
|
|
ctrlc = "3"
|
|
os_info = "3"
|
|
dotenvy = "0.15"
|
|
unicode-normalization = "0.1"
|
|
self-replace = "1"
|
|
tar = "0.4"
|
|
flate2 = "1"
|
|
zip = "2"
|
|
tempfile = "3"
|