Skip to main content

serve_with_cx

Function serve_with_cx 

Source
pub fn serve_with_cx(cx: &mut Cx, config: &ServeConfig) -> Result<()>
Expand description

Bind and serve the shell until the process is terminated, using the bootloader-provided cx as the cookbook eval sandbox. No Cx::new here: the sim-web-shell binary boots through sim_run_core::Bootloader (see cli.rs), which loads the codec/lisp boot codec and dispatches the serve verb into this function with a ready cx.