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/src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crates/mozart/src/lib.rs') diff --git a/crates/mozart/src/lib.rs b/crates/mozart/src/lib.rs index 5e5487a..d2b3533 100644 --- a/crates/mozart/src/lib.rs +++ b/crates/mozart/src/lib.rs @@ -1,5 +1,9 @@ pub mod commands; pub mod console; +pub mod constraint; +pub mod downloader; +pub mod installed; +pub mod lockfile; pub mod package; pub mod packagist; pub mod validation; -- cgit v1.3.1