txl-rs

Crates.iotxl-rs
lib.rstxl-rs
version0.0.3
sourcesrc
created_at2022-11-19 15:47:47.401533
updated_at2022-11-19 22:38:52.369397
descriptionWrapper of txl for Rust
homepagehttps://github.com/yijunyu/txl-rs
repositoryhttps://github.com/yijunyu/txl-rs
max_upload_size
id718536
size58,391
Yijun Yu (yijunyu)

documentation

https://docs.rs/txl-rs

README

Txl wrapper for Rust

txl is a transformation system developed by James R. Cordy at Queen's University. This crate provides a command line utility to install it, while offering a convenient function to invoke it inside Rust code.

Installation

Install the command:

cargo install txl-rs

Install the library:

[dependencies]
txl-rs = "0.0.1"

Usage

Command line usage

txl-rs [args]

which would run as if it is a txl [args] command.

Library usage

use txl_rs::txl;

fn main() {
    match txl(["src/main.rs"]) {
        Ok(result) => {
            println!("{result}");
        }
        Err(error) => {
            println!("{error}");
        }
    }
}

Acknowledgement

Updates

  • Integrate with Rust
  • make it platform independent
  • Publish the crate
  • adaptively downlad relevant parser packages
  • implement transformations as clippy fix rules
Commit count: 10

cargo fmt