Crates.io | rust_refactor |
lib.rs | rust_refactor |
version | 0.1.2 |
source | src |
created_at | 2024-11-06 19:25:12.458904 |
updated_at | 2024-11-21 01:47:00.303704 |
description | A library for automated code refactoring in Rust. |
homepage | |
repository | |
max_upload_size | |
id | 1438706 |
size | 3,043 |
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
bensatlantik