(&self, runner: &mut Runner)
| 34 | } |
| 35 | |
| 36 | fn prepare(&self, runner: &mut Runner) -> anyhow::Result<()> { |
| 37 | println!("Testing if MoonBit toolchain exists..."); |
| 38 | if runner |
| 39 | .run_command(Command::new("moon").arg("version")) |
| 40 | .is_err() |
| 41 | { |
| 42 | bail!("MoonBit toolchain not found. Check out <https://www.moonbitlang.com/download>"); |
| 43 | } |
| 44 | Ok(()) |
| 45 | } |
| 46 | |
| 47 | fn compile(&self, runner: &Runner, compile: &crate::Compile) -> anyhow::Result<()> { |
| 48 | let config = compile.component.deserialize_lang_config::<LangConfig>()?; |
nothing calls this directly
no test coverage detected