ups-rs
A rust implementation of a UPS file patcher.
I am no rust expert, and this was made for me to actually learn rust, feel free to open an issue pointing any mistake you find.
Usage
Apply UPS patch:
use UpsPatch;
use File;
use ;
//Loading the contents of the source and patch files
let mut source_file_content: = vec!;
let mut patch_file_content: = vec!;
let mut source_file = open?;
source_file.read_to_end;
let mut patch_file = open?;
patch_file.read_to_end;
//Apply the patch
let patch = load?;
let patched_file_content = patch.apply?;
//Write the target to a file
let mut target_file = open?;
target_file.write_all;
Create UPS Patch
use UpsPatch;
use File;
use ;
//Load the contents of the source and patch files
let mut source_file_content: = vec!;
let mut target_file_content: = vec!;
let mut source_file = open?;
source_file.read_to_end;
let mut target_file = open?;
target_file.read_to_end;
//Create the UpsPatch
let patch = create;
//Write the patch to a file
let patch_file_content = patch.get_patch_file_contents;
let mut patch_file = open?;
patch_file.write_all;
##Documentation The documentation is on docs.rs
Contributing:
Feel free to submit pull requests with improvements.
License
All files in this repository except UPS-spec.pdf and ups_spec.md are released under MIT License.
ups-spec.pdf is the original ups spec file released under Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0).
ups_spec.md is a conversion of the original ups-spec.pdf into a more github friendly format, and keeps the same license as the original, Attribution-NonCommercial-NoDerivs 3.0 Unported (CC BY-NC-ND 3.0)