rune icon indicating copy to clipboard operation
rune copied to clipboard

Implement de/serialization for Sources

Open dylanowen opened this issue 6 months ago • 1 comments

Maybe there is a better way to do this but I'd like to serialize/deserialize the Sources (either with serde or musli). What I have setup is Unit compilation and serialization to disk but I'm running into the issue that my errors would be better with the original Sources.

I would just recreate the sources as needed but I believe the SourceIds are generated based on how the SourceLoader is called which means I'd basically need to rerun compilation on error. If I could de/serialize the sources then I could just read the sources that were originally used for compilation.

dylanowen avatar May 03 '25 18:05 dylanowen