priroda icon indicating copy to clipboard operation
priroda copied to clipboard

Split into multiple crates

Open DJMcNab opened this issue 3 years ago • 3 comments

At the moment, priroda is two conceptually seperate but entwined parts, namely the web frontend and the additional support code for debugging MIR.

I propose that we split priroda into two crates, namely priroda for the backend support code, and priroda_web for the web frontend. I'm happy to do the implementation work on this, although I want to confirm that this would be desirable.

In particular, this would also be required for #31, which would add an additional frontend.

DJMcNab avatar Mar 10 '21 12:03 DJMcNab

Makes sense. I think it would be nice if multiple frontends could also be used at the same time.

bjorn3 avatar Mar 10 '21 13:03 bjorn3

Yes, that would be great. We can leave all code in this project, and just split it into crates.

oli-obk avatar Mar 10 '21 13:03 oli-obk

Yeah, same repository is my intention. Multiple frontends at the same time could make some sense, are you thinking #31 with browser window for the supporting information? Anything else seems likely to get complicated fast.

I suspect we might end up moving directly over to manually creating svg images, just using https://docs.rs/svg/0.9.1/svg/.

DJMcNab avatar Mar 10 '21 14:03 DJMcNab