Skip to content
Rust refactoring project
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
notes
papers/ACSC2017
src
tests
.gitignore
Cargo.toml
README.md
build_tests.py

README.md

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

You can’t perform that action at this time.