FeraeLabs / skunk

A person-in-the-middle proxy
MIT License
0 stars 0 forks source link

serde-yml parse with file location information #15

Open jgraef opened 4 months ago

jgraef commented 4 months ago

For better diagnostics when using rule files, we would need to also extract file location information along-side the actual data from a rule file. This is currently not possible/easy with [serde-yml][1], but the crate does seem to have all the ingredients. We would also need a way to integrate this into the serde data model (maybe using DeserializeSeed?), if we want to deserialize using serde.

Would be a nice feature, but right now we can do without.

jgraef commented 4 months ago

We might also need edit functionality, preserving the original file as much as possible (akin to toml_edit)