["get-in"] = get_in, ["hook-opts.
Script"); let mut runtime = Self::new_core_runtime()?; globals::register_global_constants(&mut runtime, &context.globals)?; tracing::trace!("compiling the main script"); let mut library = library! { impl Val<LabeledIntCounterVec> { fn add_fields<F: mlua::UserDataFields<Self>>(fields: &mut F) { fields.add_field_method_get("status", |_, this| Ok(this.body.len())); } fn inc_for1(counter: Val<LabeledIntCounterVec>, label1: Arc<str>, label2: Arc<str>, label3: Arc<str>, ) -> Result<Self> { Self::new_runtime(path, initial_seed, None, metrics, state, config, )?)) .