async_refactor

Crates.ioasync_refactor
lib.rsasync_refactor
version0.1.4
sourcesrc
created_at2024-11-06 19:50:59.861451
updated_at2024-11-21 02:47:16.101077
descriptionA library for automated async code refactoring in Rust.
homepage
repository
max_upload_size
id1438726
size3,462
Ben Santora (bensatlantik)

documentation

README

async_refactor

A library for automated async code refactoring in Rust.

Features

  • Extract async functions from code snippets.
  • Convert synchronous functions to async.

Installation

To use async_refactor, add the following to your Cargo.toml:

[dependencies]
async_refactor = "0.1.0"

Usage

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);
}

License

This project is licensed under the MIT License

Running the Project

  1. Build the project:
    cargo build
    

Run the tests:

cargo test

Author

bensatlantik

Commit count: 0

cargo fmt