Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a program that would generate Rust structures from a XML schema file? [closed]

Tags:

xml

rust

xsd

I know some programs can generate Java, C# or C++ classes from XSD files, but I am looking for something that would generate Rust code.

An example would be appreciated.

like image 264
azmeuk Avatar asked Dec 29 '16 19:12

azmeuk


1 Answers

Yes there is xmlschemer. Unfortunately it hasn't been maintained, and uses some nightly features which make it impossible to compile. I even tried installing an old version of the nightly compiler but that failed too due compile errors in rustc-ap-rustc_lexer.

There's also xml-schema which I haven't tried yet.

like image 65
Timmmm Avatar answered Sep 25 '22 14:09

Timmmm