Crates.io | rust_refactor |
lib.rs | rust_refactor |
version | 0.1.1 |
source | src |
created_at | 2024-11-06 19:25:12.458904 |
updated_at | 2024-11-10 11:51:59.539 |
description | A library for automated code refactoring in Rust. |
homepage | |
repository | https://github.com/Rust-Libraries-Binaries/rust_refactor.git |
max_upload_size | |
id | 1438706 |
size | 3,417 |
This repository was a gift from me to the Rust and open-source community. It is no longer actively maintained and has been archived. Feel free to fork and continue development on your own.
A library for automated code refactoring in Rust.
To use rust_refactor
, add the following to your Cargo.toml
:
[dependencies]
rust_refactor = "0.1.0"
use rust_refactor::refactor;
fn main() {
let code = "let x = 5; x + 1";
let extracted = refactor::extract_function(code, "my_func");
println!("{}", extracted);
let renamed = refactor::rename_variable(code, "x", "y");
println!("{}", renamed);
}
This project is licensed under the MIT License
cargo build
Ben Santora