8 lines
215 B
Markdown
8 lines
215 B
Markdown
|
Parse a Rust source file into a `syn_serde::File` and print out a JSON representation of the syntax tree.
|
||
|
|
||
|
```text
|
||
|
cargo run -- src/main.rs
|
||
|
```
|
||
|
|
||
|
The output is the same as [rust2json_main.json](rust2json_main.json).
|