(&mut self)
| 748 | } |
| 749 | |
| 750 | fn configure(&mut self) -> Result<()> { |
| 751 | if self.configured { |
| 752 | return Ok(()); |
| 753 | } |
| 754 | self.configured = true; |
| 755 | if let Some(toml_config_path) = &self.config { |
| 756 | let toml_options = CommonOptions::from_file(toml_config_path)?; |
| 757 | self.opts = toml_options.opts; |
| 758 | self.codegen = toml_options.codegen; |
| 759 | self.debug = toml_options.debug; |
| 760 | self.wasm = toml_options.wasm; |
| 761 | self.wasi = toml_options.wasi; |
| 762 | self.record = toml_options.record; |
| 763 | } |
| 764 | self.opts.configure_with(&self.opts_raw); |
| 765 | self.codegen.configure_with(&self.codegen_raw); |
| 766 | self.debug.configure_with(&self.debug_raw); |
| 767 | self.wasm.configure_with(&self.wasm_raw); |
| 768 | self.wasi.configure_with(&self.wasi_raw); |
| 769 | self.record.configure_with(&self.record_raw); |
| 770 | Ok(()) |
| 771 | } |
| 772 | |
| 773 | pub fn init_logging(&mut self) -> Result<()> { |
| 774 | self.configure()?; |
no test coverage detected