From a88a4478bfa9c18d49296460b98c0512f34794c4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 7 Jun 2026 19:41:57 +0800 Subject: Add installer module and refactor error handling --- mling/src/pkg_mgr/mod.rs | 3 +++ mling/src/proj_mgr/metadata.rs | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'mling') diff --git a/mling/src/pkg_mgr/mod.rs b/mling/src/pkg_mgr/mod.rs index d03e1d8..030529e 100644 --- a/mling/src/pkg_mgr/mod.rs +++ b/mling/src/pkg_mgr/mod.rs @@ -4,6 +4,9 @@ use mingling::{ macros::{dispatcher, program_setup}, }; +mod installer; +pub use installer::*; + dispatcher!("install"); dispatcher!("ls.namespace", CMDListNamespace => EntryListNamespace); dispatcher!("rm.namespace", CMDRemoveNamespace => EntryRemoveNamespace); diff --git a/mling/src/proj_mgr/metadata.rs b/mling/src/proj_mgr/metadata.rs index 84da69f..1ba24e1 100644 --- a/mling/src/proj_mgr/metadata.rs +++ b/mling/src/proj_mgr/metadata.rs @@ -16,10 +16,10 @@ pub fn read_metadata(cargo_toml: &PathBuf) -> Result