tmod-unpacker

Crates.iotmod-unpacker
lib.rstmod-unpacker
version1.0.1
sourcesrc
created_at2023-02-23 09:22:54.028739
updated_at2023-02-23 09:45:54.278747
descriptionA simple CLI to unpack .tmod files, written in pure Rust.
homepagehttps://github.com/campbellcole/tmod-unpacker
repositoryhttps://github.com/campbellcole/tmod-unpacker
max_upload_size
id792470
size33,425
Campbell Cole (campbellcole)

documentation

https://github.com/campbellcole/tmod-unpacker

README

.tmod unpacker

A simple CLI to unpack .tmod files, written in pure Rust.

Installation

cargo install tmod-unpacker

Usage

tmod-unpacker <input file> <output directory>

There is a simple help option which displays the above usage as well:

tmod-unpacker -h
# or
tmod-unpacker --help

You can enable logging with this crate using the RUST_LOG environment variable. If you are not experiencing errors, it is recommended that you stick to RUST_LOG=info or maybe RUST_LOG=debug if you are interested in the metadata of the mod. Using RUST_LOG=trace is extremely verbose and is intended to help diagnose errors in the reading and extraction of a .tmod file. Use with caution.

MSRV

The MSRV of this crate is 1.63.0. If for some reason you require this crate but cannot update to this version or higher, install the crate with:

cargo install --git "https://github.com/campbellcole/tmod-unpacker" --branch "msrv-1-56-1"

The above branch has an MSRV of 1.56.1, as the name suggests.

NOTE: The branch listed above is not supported and it is recommended that you use the newest possible version of Rust.

Side Note

There are no tests written for this crate because I do not have the capability to create a dummy .tmod file at the moment. This was tested on a few .tmod files from the Steam Workshop, but retrieving those requires SteamCMD and being logged in, which is not feasible for tests. If you encounter any issues, please open an issue on GitHub issues.

Commit count: 6

cargo fmt