Crates.io | async_refactor |
lib.rs | async_refactor |
version | 0.1.2 |
source | src |
created_at | 2024-11-06 19:50:59.861451 |
updated_at | 2024-11-06 20:52:30.997249 |
description | A library for automated async code refactoring in Rust. |
homepage | https://github.com/bensatlantik/async_refactor |
repository | https://github.com/bensatlantik/async_refactor |
max_upload_size | |
id | 1438726 |
size | 3,776 |
A library for automated async code refactoring in Rust.
To use async_refactor
, add the following to your Cargo.toml
:
[dependencies]
async_refactor = "0.1.0"
use async_refactor::async_refactor;
fn main() {
let code = "let x = 5;";
let extracted_async = async_refactor::extract_async_function(code, "my_async_func");
println!("{}", extracted_async);
}
This project is licensed under the MIT License
cargo build
Run the tests:
cargo test
Ben Santora bensatlantik@gmail.com