From 4df5f8491320e5795718cf0222e80fa27e57c8ad Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 11 May 2026 02:05:34 +0900 Subject: refactor(package): rename traits and switch dep maps to IndexMap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Rename Package/CompletePackage to PackageInterface/CompletePackageInterface to mirror Composer's interface names, and split each into its own module under crates/mozart-core/src/package/. Switch dependency-link and metadata maps from BTreeMap to indexmap::IndexMap so serialized JSON preserves the original key ordering rather than sorting alphabetically — matching PHP associative-array semantics. The --sort-packages behaviour in `require` is preserved via sort_unstable_keys. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Cargo.toml') diff --git a/Cargo.toml b/Cargo.toml index 6ce6158..50565a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,7 +26,7 @@ colored = "3.1.1" dialoguer = "0.12.0" filetime = "0.2.27" flate2 = "1.1.9" -indexmap = "2.14.0" +indexmap = { version = "2.14.0", features = ["serde"] } md5 = "0.7.0" predicates = "3.1.4" proc-macro2 = "1.0.106" -- cgit v1.3.1