Crates.io | async_refactor |
lib.rs | async_refactor |
version | 0.1.4 |
source | src |
created_at | 2024-11-06 19:50:59.861451 |
updated_at | 2024-11-21 02:47:16.101077 |
description | A library for automated async code refactoring in Rust. |
homepage | |
repository | |
max_upload_size | |
id | 1438726 |
size | 3,462 |
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
bensatlantik