ritz078 / transform

A polyglot web converter.
https://transform.tools
MIT License
7.94k stars 581 forks source link

XML to Serde #384

Open Thomblin opened 10 months ago

Thomblin commented 10 months ago

I created a XML to Rust Serde converter. @brandonros suggested to include it in your transform tool. Are you able to integrate Rust or a binary as a converter?

see: https://github.com/Thomblin/xml_schema_generator

ritz078 commented 7 months ago

Can it be compiled to wasm ?

Thomblin commented 7 months ago

Well, not yet. I never used wasm before, however I worked through the tutorial right now and it looks promising. If you would implement it, I'll give it a try and build a wasm wrapper

ritz078 commented 7 months ago

I can definitely integrate it once wasm module is available.

Thomblin commented 7 months ago

Alright. I created a first version. Can you take a look if this is already good enough? Happy to change it, I am not familiar with wasm so far

Rust source code https://github.com/Thomblin/xml_schema_generator/tree/main/wasm

wasm integration in html page https://github.com/Thomblin/thomblin.github.io/tree/main/xml_schema_generator

view in web browser https://thomblin.github.io/xml_schema_generator/

Thomblin commented 7 months ago

update: I managed to compile different wasm packages into the latest (and future) release: https://github.com/Thomblin/xml_schema_generator/releases

ritz078 commented 7 months ago

Thank you. I will try to integrate this sometime this week and get back to you.