Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yijunyu/txl-rs
Wrapper of txl for Rust
https://github.com/yijunyu/txl-rs
Last synced: 10 days ago
JSON representation
Wrapper of txl for Rust
- Host: GitHub
- URL: https://github.com/yijunyu/txl-rs
- Owner: yijunyu
- License: apache-2.0
- Created: 2022-11-19T09:40:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-19T22:37:54.000Z (about 2 years ago)
- Last Synced: 2024-11-06T03:46:23.170Z (about 2 months ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Txl wrapper for Rust
[`txl`](http://txl.ca) 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:
```bash
cargo install txl-rs
```Install the library:
```toml
[dependencies]
txl-rs = "0.0.1"
```## Usage
### Command line usage
```bash
txl-rs [args]
```
which would run as if it is a `txl [args]` command.### Library usage
```rust
use txl_rs::txl;fn main() {
match txl(["src/main.rs"]) {
Ok(result) => {
println!("{result}");
}
Err(error) => {
println!("{error}");
}
}
}
```## Acknowledgement
## Updates
- [x] Integrate with Rust
- [x] make it platform independent
- [x] Publish the crate
- [x] adaptively downlad relevant parser packages
- [ ] implement transformations as clippy fix rules