| Crates.io | hyper-archive |
| lib.rs | hyper-archive |
| version | 0.3.0 |
| created_at | 2025-02-16 08:47:53.623757+00 |
| updated_at | 2025-03-03 04:58:27.559747+00 |
| description | HPA | Ultra Fast Archive compression method for games and many other |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1557487 |
| size | 37,731 |
use tokio;
use hyper_archive;
#[tokio::main]
async fn main() {
set_password("password").await; // Set password for AES-256
set_compression_algorithm(lib::Algorithms::Algorithm_You_Prefer).await; // To chose algorithm
hyper_archive::write_structure("your_file", "hpa_file", /* encrypt (True or False) */).await.unwrap(); // 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.unwrap(); // 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.unwrap(); // Adding data block to HPA file
hyper_archive::remove_structure("your_fil_name_and_extension", "hpa_file", /* is encrypted (True or False) */).await.unwrap(); // Removing data block from HPA file
hyper_archive::update_structure("your_file", "hpa_file", /* is encrypted (True or False) */).await.unwrap(); // Updates data block in HPA file
hyper_archive::export_structure("your_file", "hpa_file", "export_file_name", /* is encrypted (True or False) */).await.unwrap(); // Exports data block in HPA file
// I don't recommand you to use unwrap.
// Not: When you're calling a hpa you have to enter extension: test.txt -> test.txt
// 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.unwrap()
}).await.unwrap();
println!("{:?}", return_data); // It won't really work but still will be in Async
}
Documents coming on version 0.3.1
Survey: Survey
This project still in Beta
Author: Metehan
Contact me: metehan@zaferoglu.me