async_refactor

Crates.ioasync_refactor
lib.rsasync_refactor
version0.1.2
sourcesrc
created_at2024-11-06 19:50:59.861451
updated_at2024-11-06 20:52:30.997249
descriptionA library for automated async code refactoring in Rust.
homepagehttps://github.com/bensatlantik/async_refactor
repositoryhttps://github.com/bensatlantik/async_refactor
max_upload_size
id1438726
size3,776
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

Ben Santora bensatlantik@gmail.com

Donate

https://bensatlantik.github.io/

Commit count: 6

cargo fmt