From a03ad0152ec28cdd1cc05f96a9823807dbb2b818 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 21 Feb 2026 10:46:26 +0900 Subject: feat(core): add version constraint, lockfile, installed registry, and downloader modules Phase 1 infrastructure for the install command: - constraint: Composer-compatible version parsing and constraint matching (caret, tilde, wildcard, hyphen range, OR/AND combinators) - lockfile: composer.lock read/write with content-hash computation - installed: vendor/composer/installed.json registry (Composer 2.x format) - downloader: dist archive download with SHA-1 verification and zip/tar.gz extraction with top-level directory stripping Co-Authored-By: Claude Opus 4.6 --- crates/mozart/Cargo.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/mozart/Cargo.toml') diff --git a/crates/mozart/Cargo.toml b/crates/mozart/Cargo.toml index f4d160b..9432c4a 100644 --- a/crates/mozart/Cargo.toml +++ b/crates/mozart/Cargo.toml @@ -8,11 +8,16 @@ anyhow = "1.0.101" clap = { version = "4.5.57", features = ["derive"] } colored = "3.1.1" dialoguer = "0.12.0" +flate2 = "1" +md5 = "0.7" regex = "1.12.3" reqwest = { version = "0.13.2", features = ["blocking", "json"] } serde = { version = "1.0.228", features = ["derive"] } serde_json = "1.0.149" +sha1 = "0.10" +tar = "0.4" tokio = { version = "1.49.0", features = ["full"] } +zip = { version = "2", default-features = false, features = ["deflate"] } [dev-dependencies] tempfile = "3.25.0" -- cgit v1.3.1