Skip to content

GSam/rust-refactor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-refactor

Rust refactoring project

A tool to help refactor rust programs.

Currently supports: Simple variable renames, function renaming, struct renaming.

% refactor var "tests/variable/basic_rename.csv" "tests/variable/basic_rename.rs" x:-1:-1  new_name

Requires a modified compiler at: https://github.com/GSam/rust

Before running the tool, an additional environment variable is required for the internal compilation using stdlibs, RUST_FOLDER needs to be set to either the stage2 lib folder or the stage2/rustlib/XXX/lib folder currently.

###Known issues: There appears to be issues with running the tool on Windows. The cause appears to be the inability to locate the stdlib, but neither setting the linker flag or the sysroot appears to be of any use.

###TODO: Renaming enum, variants + struct variants

Renaming traits

About

Rust refactoring project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published