From 7ce68cd11516bd7cf037ecea99a92aee7c31b2c3 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 28 Mar 2026 00:47:46 +0800 Subject: Add initial Mingling framework codebase --- mingling/src/program/setup.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 mingling/src/program/setup.rs (limited to 'mingling/src/program/setup.rs') diff --git a/mingling/src/program/setup.rs b/mingling/src/program/setup.rs new file mode 100644 index 0000000..fdf7b04 --- /dev/null +++ b/mingling/src/program/setup.rs @@ -0,0 +1,15 @@ +use crate::program::Program; + +mod basic; +pub use basic::*; + +pub trait ProgramSetup { + fn setup(program: &mut Program); +} + +impl Program { + /// Load and execute init logic + pub fn with_setup(&mut self, _setup: S) { + S::setup(self); + } +} -- cgit