3 releases

0.0.3 Nov 19, 2022
0.0.2 Nov 19, 2022
0.0.1 Nov 19, 2022

#53 in #transformation

Download history 4/week @ 2024-02-19 24/week @ 2024-02-26 3/week @ 2024-03-04 5/week @ 2024-03-11 49/week @ 2024-04-01 1/week @ 2024-04-08 78/week @ 2024-04-15

128 downloads per month
Used in 2 crates

Apache-2.0 OR MIT

18KB
274 lines

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

Dependencies

~12–28MB
~432K SLoC