Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yijunyu/rust2xml
https://github.com/yijunyu/rust2xml
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yijunyu/rust2xml
- Owner: yijunyu
- Created: 2021-01-03T22:11:36.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T23:53:47.000Z (almost 4 years ago)
- Last Synced: 2024-11-06T03:46:23.299Z (about 2 months ago)
- Language: Rust
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```