From 9c8fe13c2629a4318bd12815c07cef1371ba85a2 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Fri, 14 Aug 2026 17:47:15 +0800 Subject: feat(core): move config types to public config module Refactor program configuration types into a dedicated public `config` module under `mingling_core`, making `StructuralRendererSetting` accessible via `mingling_core::config` instead of the crate root. Update all internal references and setup modules to use the new `config::` path convention. --- mingling_core/src/program.rs | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'mingling_core/src/program.rs') diff --git a/mingling_core/src/program.rs b/mingling_core/src/program.rs index 3c4212c..86e3e83 100644 --- a/mingling_core/src/program.rs +++ b/mingling_core/src/program.rs @@ -2,41 +2,47 @@ #[cfg(not(windows))] use std::env; +#[cfg(feature = "structural_renderer")] +use crate::config::StructuralRendererSetting; use crate::{ - AnyOutput, GlobalResContainer, asset::dispatcher::Dispatcher, error::ChainProcessError, + AnyOutput, GlobalResContainer, + asset::dispatcher::Dispatcher, + config::{ProgramStdoutSetting, ProgramUserContext}, + error::ChainProcessError, hook::ProgramHook, }; +pub mod config; + #[doc(hidden)] pub mod error; + #[doc(hidden)] pub mod exec; -#[doc(hidden)] -pub mod setup; pub mod hook; -mod collection; -pub use collection::*; - -mod once_exec; - #[cfg(feature = "repl")] #[doc(hidden)] pub mod repl_exec; +#[doc(hidden)] +pub mod setup; + +mod collection; +pub use collection::*; + mod single_instance; pub use single_instance::*; -mod config; -pub use config::*; - mod flag; pub use flag::*; mod string_vec; pub use string_vec::*; +mod once_exec; + /// Program, used to define the behavior of the entire command-line program #[derive(Default)] pub struct Program -- cgit