CADmium-Co / CADmium

A CAD program that runs in the browser
https://cadmium-co.github.io/CADmium/
Other
1.46k stars 59 forks source link

Use the auto-generated rust types and auto-generate typeguards #31

Closed dzervas closed 5 months ago

dzervas commented 5 months ago

I removed a bunch of code that rust's tsify already produce

My target is to let rust generate as much interfacing code as possible and do the absolutely minimum from the shared package as we want rust to be the point of reference, not vice-versa (rust types are much more thoroughly checked vs typescript)

av8ta commented 5 months ago

In light of https://github.com/CADmium-Co/CADmium/issues/22 we should probably just close this one @dzervas? When the oplog messaging is introduced we should guard our types both sides of the fence, but as you say, using rust as the single source of truth.

dzervas commented 5 months ago

not sure I quite got that but sure, let's close it I'll revisit this after isotope