From 6980fbf2f9fb4c599d8dc6ff549a8b3288eb24e9 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 17 Aug 2026 02:29:30 +0800 Subject: refactor!: remove dynamic dispatcher registration API Dispatchers are now always registered at compile time, removing the `with_dispatcher` / `with_dispatchers` methods and the `PathfinderConfig` API. The `dispatch_tree` feature now only controls the matching strategy (trie vs linear list). --- mingling_core/src/program/hook.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mingling_core/src/program/hook.rs') diff --git a/mingling_core/src/program/hook.rs b/mingling_core/src/program/hook.rs index 92106f9..a5cd3a7 100644 --- a/mingling_core/src/program/hook.rs +++ b/mingling_core/src/program/hook.rs @@ -722,6 +722,16 @@ mod tests { type ErrorRendererNotFound = Self; type ResultEmpty = Self; + fn dispatch_args( + _raw: &[String], + ) -> Result, crate::error::ProgramInternalExecuteError> { + unreachable!() + } + + fn get_nodes() -> Vec<(String, &'static (dyn crate::Dispatcher + Send + Sync))> { + unreachable!() + } + fn build_renderer_not_found(_member_id: Self) -> crate::AnyOutput { unreachable!() } -- cgit