git.delta.rocks / jrsonnet / refs/commits / 6fbff53f4c1d

difftreelog

feat proper section descriptions for toml

prnxvsoxYaroslav Bolyukin2026-04-25parent: #830d8fb.patch.diff
in: master

1 file changed

modifiedcrates/jrsonnet-stdlib/src/manifest/toml.rsdiffbeforeafterboth
206 buf.push_str(cur_padding);206 buf.push_str(cur_padding);
207 escape_key_toml_buf(&key, buf);207 escape_key_toml_buf(&key, buf);
208 buf.push_str(" = ");208 buf.push_str(" = ");
209 in_description_frame(
210 || format!("table <{key}> manifestification"),
209 manifest_value(&value, false, buf, cur_padding, options)?;211 || manifest_value(&value, false, buf, cur_padding, options),
212 )?;
210 }213 }
211 }214 }
212 for (k, v) in sections {215 for (k, v) in sections {
213 if !first {216 if !first {
214 buf.push_str("\n\n");217 buf.push_str("\n\n");
215 }218 }
216 first = false;219 first = false;
217 path.push(k);220 path.push(k.clone());
221 in_description_frame(
222 || format!("section <{k}> manifestification"),
218 match v {223 || match v {
219 Val::Obj(obj) => manifest_table(&obj, path, buf, cur_padding, options)?,224 Val::Obj(obj) => manifest_table(&obj, path, buf, cur_padding, options),
220 Val::Arr(arr) => manifest_table_array(&arr, path, buf, cur_padding, options)?,225 Val::Arr(arr) => manifest_table_array(&arr, path, buf, cur_padding, options),
221 _ => unreachable!("iterating over sections"),226 _ => unreachable!("iterating over sections"),
222 }227 },
228 )?;
223 path.pop();229 path.pop();
224 }230 }
225 Ok(())231 Ok(())