Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/williamvenner/gmod-lzma-rs
🔮 util.Compress and util.Decompress but for Rust!
https://github.com/williamvenner/gmod-lzma-rs
glua gmod lzma rust
Last synced: 2 months ago
JSON representation
🔮 util.Compress and util.Decompress but for Rust!
- Host: GitHub
- URL: https://github.com/williamvenner/gmod-lzma-rs
- Owner: WilliamVenner
- License: mit
- Created: 2021-07-29T20:41:56.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-07-19T18:55:03.000Z (6 months ago)
- Last Synced: 2024-10-11T11:33:20.368Z (3 months ago)
- Topics: glua, gmod, lzma, rust
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 7
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![crates.io](https://img.shields.io/crates/v/gmod-lzma.svg)](https://crates.io/crates/gmod-lzma)
[![docs.rs](https://docs.rs/gmod-lzma/badge.svg)](https://docs.rs/gmod-lzma/)
[![license](https://img.shields.io/crates/l/gmod-lzma)](https://github.com/WilliamVenner/gmod-lzma-rs/blob/master/LICENSE)# 🔮 gmod-lzma-rs
[`util.Compress`](https://wiki.facepunch.com/gmod/util.Compress) and [`util.Decompress`](https://wiki.facepunch.com/gmod/util.Decompress) but in Rust!
# Usage
## As a Rust library
Add to your [`Cargo.toml`](https://doc.rust-lang.org/cargo/reference/manifest.html) file:
```toml
[dependencies]
gmod-lzma = "*"
```## As a binary
You can download a binary from the [releases](https://github.com/WilliamVenner/gmod-lzma-rs/releases) page.
```php
Usage: gmod_lzma (-c | --compress) [-l | --level ]
gmod_lzma (-d | --decompress)
```# Building
Firstly, [install Rust](https://rustup.rs/).
Then, run the following commands:
```sh
git clone https://github.com/WilliamVenner/gmod-lzma-rs.git
cd gmod-lzma-rs
cargo build --release
```Your binary can be found in `gmod-lzma-rs/target/release/`