diff --git a/Cargo.lock b/Cargo.lock index 4a11724..0798ad4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -171,7 +171,7 @@ dependencies = [ [[package]] name = "rpfixer" -version = "0.3.0" +version = "0.4.0" dependencies = [ "adler", "clap", diff --git a/Cargo.toml b/Cargo.toml index 5d52a37..5590027 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ license = "MIT" authors = ["endernon"] repository = "https://git.frfrnocap.men/endernon/rpfixer" readme = "readme.md" -version = "0.3.0" +version = "0.4.0" edition = "2021" [dependencies] diff --git a/readme.md b/readme.md index 52c2189..abe904f 100644 --- a/readme.md +++ b/readme.md @@ -9,7 +9,7 @@ This tool will not overcome any protection to the zip archive itself. See a prog ## CLI -### Manual clone +#### Manual clone - download the Rust-Lang for your system - download this repository - run `cargo build --release` in the directory @@ -17,25 +17,30 @@ This tool will not overcome any protection to the zip archive itself. See a prog - run - `respack-decrypter` if you are on linux/mac (RUN `chmod +x respack-decrypter` ON IT FIRST) - `respack-decrypter.exe` if you are on windows -### Cargo +#### Cargo - Download the Rust-Lang for your system - run `cargo install rpfixer` - Then run the `rpfixer` command -### Prebuilt package release -- I haven't made prebuilt packages, sorry. WIP + +## Function library +- The library has one function: `rpfixer::idk::fix`. Use a `Vec` in it. +#### Example code +```rust +use std::fs; +fn main() { + let frfr = fs::read("filepath.png").expect("wtf the path doesnt exist"); + let mut fr = rpfixer::idk::fix(frfr); + fs::write(thatpath, fr).expect("file could not write btw"); +} +``` # Syntax Check `--help` for syntax. -# I want some logs for checking wtf is happening +Example syntax: -Pipe your output to a new filename. - -Note: It might not work for SOME linux shells. But major ones e.g. `zsh`,`bash` support it. - -`rpfixer --path ~/somedir/ --debug > ~/log.txt` # License diff --git a/src/main.rs b/src/main.rs index 1e3b856..349a3ee 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,7 +2,7 @@ mod idk; use clap::Parser; use glob::glob; use std::{fs::{metadata}, path::{PathBuf}}; -use std::fs::{read, write, File}; +use std::fs::{read, write}; #[derive(Parser, Debug)] #[command(version, about, long_about = None)]