Skip to content

This Rust program compresses a file using gzip and writes the output to a target file

Notifications You must be signed in to change notification settings

Artemiskgg1/File-Compressor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gzip Compression Tool

This Rust program compresses a specified file using gzip compression and writes the compressed data to a target file. It provides information about the size of the source and target files and the time taken for the compression process.

Requirements

  • Rust (latest stable version recommended)
  • flate2 crate

Installation

  1. Install Rust by following the instructions at rust-lang.org.
  2. Add the flate2 crate to your Cargo.toml:
    [dependencies]
    flate2 = "1.0.24"

Usage

  1. Clone this repository or download the source code.
  2. Navigate to the project directory.
  3. Build the project:
    cargo build --release
  4. Run the program with the source and target file paths as arguments:
    cargo run --release source_file target_file

Example

cargo run --release input.txt output.gz

About

This Rust program compresses a file using gzip and writes the output to a target file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages