aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/mozart/Cargo.toml
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-21 20:37:20 +0900
committernsfisis <nsfisis@gmail.com>2026-02-21 20:37:20 +0900
commit3c8ce2b72daccccc88278b8dfbff1a1acc39096c (patch)
tree37eee41b0d30fe3ddcd0cd017c0c6987e68ee2fd /crates/mozart/Cargo.toml
parent8949dfcab0bd81dd475db4cdfe9a3da43d33a5b7 (diff)
downloadphp-mozart-3c8ce2b72daccccc88278b8dfbff1a1acc39096c.tar.gz
php-mozart-3c8ce2b72daccccc88278b8dfbff1a1acc39096c.tar.zst
php-mozart-3c8ce2b72daccccc88278b8dfbff1a1acc39096c.zip
feat(self-update): implement command to update Mozart via GitHub Releases
Add full self-update functionality: fetch releases from GitHub API, download platform-specific binaries, atomically replace the running executable using self-replace, and support --rollback and --preview flags. Includes backup management and 12 unit tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'crates/mozart/Cargo.toml')
-rw-r--r--crates/mozart/Cargo.toml3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/mozart/Cargo.toml b/crates/mozart/Cargo.toml
index 12da556..287f800 100644
--- a/crates/mozart/Cargo.toml
+++ b/crates/mozart/Cargo.toml
@@ -15,12 +15,13 @@ md5 = "0.7"
pubgrub = "0.3.0"
regex = "1.12.3"
reqwest = { version = "0.13.2", features = ["blocking", "json"] }
+self-replace = "1"
serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.149"
sha1 = "0.10"
tar = "0.4"
+tempfile = "3.25.0"
tokio = { version = "1.49.0", features = ["full"] }
zip = { version = "2", default-features = false, features = ["deflate"] }
[dev-dependencies]
-tempfile = "3.25.0"