Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yijunyu/rust2xml


https://github.com/yijunyu/rust2xml

Last synced: 10 days ago
JSON representation

Awesome Lists containing this project

README

        

Parse a Rust source file into a `syn_serde::File` and print out an XML representation of the abstract syntax tree using
`quick-xml` with a patch.

```text
git clone https://github.com/tafia/quick-xml
cp var.rs quick-xml/src/se/var.rs
cargo install --path .
rust2xml src/main.rs > main.xml
```

The output file `main.xml` should contains the followling information:

```xml
rust_2018_idiomssingle_use_lifetimesenvfsPathBufmain"{}"e1try_main<_><_>"Usage: rust2xml path/to/filename.rs""{}"xmlto_stringsyntax
```