diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-22 00:37:54 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-22 00:37:54 +0900 |
| commit | 0a8e5935e6305819bb02d8c69e2f046ff397913a (patch) | |
| tree | e5a288e679477b1603d7989e986ca22bbe590aa4 /Cargo.lock | |
| parent | b5af594fec7da72b15c9a202c641af0494db6355 (diff) | |
| download | php-mozart-0a8e5935e6305819bb02d8c69e2f046ff397913a.tar.gz php-mozart-0a8e5935e6305819bb02d8c69e2f046ff397913a.tar.zst php-mozart-0a8e5935e6305819bb02d8c69e2f046ff397913a.zip | |
refactor(workspace): split monolithic crate into 6 workspace crates
Extract modules from the single `mozart` crate into 5 focused library
crates to improve compilation parallelism and architectural clarity:
- mozart-constraint: version constraint parser (independent)
- mozart-core: base types, console, validation, platform utilities
- mozart-archiver: archive creation (tar, zip, bzip2)
- mozart-registry: Packagist API, cache, resolver, downloader, lockfile
- mozart-autoload: autoloader generation and PHP scanner
Refactor Console::from_cli and build_cache_config to accept primitive
args instead of &Cli to break circular dependencies. Introduce
[workspace.dependencies] for centralized version management. Remove 9
unused direct dependencies from the CLI crate.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'Cargo.lock')
| -rw-r--r-- | Cargo.lock | 71 |
1 files changed, 67 insertions, 4 deletions
@@ -1028,19 +1028,82 @@ version = "0.1.0" dependencies = [ "anyhow", "assert_cmd", - "bzip2", "clap", "clap_complete", "colored", + "mozart-archiver", + "mozart-autoload", + "mozart-constraint", + "mozart-core", + "mozart-registry", + "predicates", + "regex", + "reqwest", + "self-replace", + "serde", + "serde_json", + "sha1", + "tempfile", +] + +[[package]] +name = "mozart-archiver" +version = "0.1.0" +dependencies = [ + "anyhow", + "bzip2", + "flate2", + "regex", + "sha1", + "tar", + "tempfile", + "zip", +] + +[[package]] +name = "mozart-autoload" +version = "0.1.0" +dependencies = [ + "anyhow", + "md5", + "mozart-core", + "mozart-registry", + "regex", + "serde", + "serde_json", + "tempfile", +] + +[[package]] +name = "mozart-constraint" +version = "0.1.0" + +[[package]] +name = "mozart-core" +version = "0.1.0" +dependencies = [ + "anyhow", + "colored", "dialoguer", + "regex", + "serde", + "serde_json", + "tempfile", +] + +[[package]] +name = "mozart-registry" +version = "0.1.0" +dependencies = [ + "anyhow", + "bzip2", "filetime", "flate2", "md5", - "predicates", + "mozart-constraint", + "mozart-core", "pubgrub", - "regex", "reqwest", - "self-replace", "serde", "serde_json", "sha1", |
