use std::sync::mpsc::Receiver; use happylock::ThreadKey; use crate::pipe::Message; pub type BuiltinProgram = fn(ThreadKey, Receiver); pub static BUILTINS: &[Option] = &[None, Some(hello), Some(delsh::delsh), Some(dit::dit)]; mod delsh; mod dit; mod doer; fn hello(key: ThreadKey, channel: Receiver) { println!("Hello, world!"); drop(channel); drop(key); }