From 59bab6efee41a196b0d9d392167c536abbe068ba Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 10 May 2026 20:31:00 +0900 Subject: refactor(downloader): introduce top-level downloader module Move VCS downloaders and DownloadManager out of vcs/repository into a new top-level downloader module mirroring Composer\Downloader, and add stub types for the remaining Composer downloader hierarchy (file, archive variants, path, perforce, fossil, exceptions, interfaces) so future ports have a home. --- crates/mozart/src/composer.rs | 2 +- crates/mozart/src/factory.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/mozart/src') diff --git a/crates/mozart/src/composer.rs b/crates/mozart/src/composer.rs index 0484344..9fd8b77 100644 --- a/crates/mozart/src/composer.rs +++ b/crates/mozart/src/composer.rs @@ -16,8 +16,8 @@ use std::path::{Path, PathBuf}; use crate::factory::create_composer; use mozart_core::composer::{AutoloadGenerator, InstallationManager, Locker, RepositoryManager}; use mozart_core::config::Config; +use mozart_core::downloader::DownloadManager; use mozart_core::package::RootPackageData; -use mozart_core::repository::download_manager::DownloadManager; /// Project-level Composer state. Mirrors `Composer\PartialComposer` / /// `Composer\Composer` in PHP, exposing the subset of getters command diff --git a/crates/mozart/src/factory.rs b/crates/mozart/src/factory.rs index 29faa42..b88e088 100644 --- a/crates/mozart/src/factory.rs +++ b/crates/mozart/src/factory.rs @@ -15,9 +15,9 @@ use mozart_core::composer::{ Locker, PackageReference, RepositoryManager, }; use mozart_core::config::resolve_references; +use mozart_core::downloader::DownloadManager; use mozart_core::factory::create_config; use mozart_core::package::{RootPackageData, read_from_file}; -use mozart_core::repository::download_manager::DownloadManager; /// Rust port of `Factory::createComposer()`. /// -- cgit v1.3.1