From d0d05f14a4d1b36f517077ffdaa4b335c812190f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 8 May 2026 21:59:08 +0900 Subject: fix(suggests): align with Composer's SuggestsCommand pipeline Port `Composer\Installer\SuggestedPackagesReporter` to `mozart_core::installer` (modes, add_package, add_suggestions_from_package, output, output_minimalistic, escape_output) and slim `commands/suggests.rs` to mirror `SuggestsCommand::execute`. Defines `HasSuggests`, `InstalledRepoLite`, `RootInfo` as the minimal stand-ins for Composer's `PackageInterface` / `InstalledRepository` / `onlyDependentsOf`. Also fixes a latent bug where `provide`/`replace` virtuals were read from `extra_fields` (always empty after a serde round-trip into LockedPackage's typed fields) and moves the "additional suggestions ... --all" hint to fire after the rendered sections, matching Composer's order. --- crates/mozart-core/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crates/mozart-core/src/lib.rs') diff --git a/crates/mozart-core/src/lib.rs b/crates/mozart-core/src/lib.rs index 0aefbb6..7b78280 100644 --- a/crates/mozart-core/src/lib.rs +++ b/crates/mozart-core/src/lib.rs @@ -1,3 +1,5 @@ +extern crate self as mozart_core; + pub mod composer; pub mod config; pub mod config_validator; @@ -5,6 +7,7 @@ pub mod console; pub mod exit_code; pub mod factory; pub mod http; +pub mod installer; pub mod package; pub mod package_info; pub mod package_sorter; -- cgit v1.3.1