hyper-archive 0.1.22

HPA | Ultra Fast Archive compression method for games and many other
Documentation
hyper-archive-0.1.22 has been yanked.

HyperArchive: Ultra fast compressed real-time archive method

You need TOKIO to run HPA format (HPA is an Async Archive)

How to use:

use tokio;
use hyper_archive;

#[tokio::main]
async fn main() {
    set_password("password").await; // Set password for AES-256
    
    hyper_archive::write_structure("your_file", "hpa_file", /* encrypt (True or False) */).await; // Creates an HPA file and writes data inside
    let your_variable_name = hyper_archive::read_structure("your_fil_name_and_extension", "hpa_file", /* is encrypted (True or False) */).await; // Reading data block and returns data, and you don't have to use let, you can dump in file or whatever
    hyper_archive::add_structure("your_file", "hpa_file", /* encrypt (True or False) */).await; // Adding data block to HPA file
    hyper_archive::remove_structure("your_fil_name_and_extension", "hpa_file", /* is encrypted (True or False) */).await; // Removing data block from HPA file
    hyper_archive::update_structure("your_file", "hpa_file", /* is encrypted (True or False) */).await; // Updates data block in HPA file
    hyper_archive::export_structure("your_file", "hpa_file", "export_file_name", /* is encrypted (True or False) */).await; // Exports data block in HPA file

    // Not: When you're calling a hpa file you don't need to type extension as well: "test" -> test.hpa
    // If you want you can use with tokio::spawn / tokio::task::spawn / ... Example:

    let return_data = tokio::spawn(async {
        hyper_archive::read_structure("your_file_name_and_extension", "hpa_file").await
    }).await.unwrap();

    println!("{return_data}"); // It won't really work but still will be in Async
}

Which case you should use HPA?:

  1. When you use a File, and it's too big, you can use HPA at ease (File shouldn't be compressed before, if it is compressed file may can be increased and in extreme case scenario file can be broke)
  2. When you need compression and speed (Still file shouldn't be compressed)
  3. In any case scenario (Yeah you can develop a game with HPA, but I don't recommend personally because adding every file by hand in HPA will be like and its speed won't be good as native. And of course some files may not work)

VERSION 0.1.2:

  1. Added AES-256 coding
  2. Data stability
  3. Overall improvements