Skip to content

joernio/rust_ast_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust_ast_gen

A tool that generates JSON AST representations of Rust source files, built on top of rust-analyzer's libraries.

Usage

Usage: rust_ast_gen --input-dir <INPUT_DIR> --output-dir <OUTPUT_DIR>

Options:
  -i, --input-dir <INPUT_DIR>    Input directory containing a Rust project
  -o, --output-dir <OUTPUT_DIR>  Output directory where generated files will be written to
  -h, --help                     Print help

One .json file is produced per .rs source file, mirroring the input directory structure.

Set RUST_LOG=info (or debug/trace) for progress output.

Building

cargo build --release

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages