From 18a64e749d9c7267d86756ef70dd6e2c2f19e875 Mon Sep 17 00:00:00 2001 From: Makis Christou Date: Sun, 1 Oct 2023 20:46:54 +0300 Subject: [PATCH] Add keywords for crates.io --- Cargo.lock | 2 +- Cargo.toml | 4 +++- README.md | 2 ++ src/main.rs | 4 +--- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 53d18a3..05324a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -283,7 +283,7 @@ dependencies = [ [[package]] name = "crabguard" -version = "0.1.3" +version = "0.1.4" dependencies = [ "async-trait", "bincode", diff --git a/Cargo.toml b/Cargo.toml index ecc2172..7378e14 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,10 +1,12 @@ [package] name = "crabguard" -version = "0.1.3" +version = "0.1.4" description = "A cli tool for end-to-end encryption for s3 storage" edition = "2021" authors = ["Makis Christou "] license = "MIT" +keywords = ["crypto", "s3", "crabguard", "backblaze-b2", "aes"] + # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/README.md b/README.md index ee4eb5b..1fdfe80 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ 🦀🔒 crabguard: A cli tool for end-to-end encryption for remote and local storage +[![crates.io](https://buildstats.info/crate/crabguard)](https://crates.io/crates/crabguard) + ## Features - Encrypted upload, download and delete operations on Amazon S3 storage - AES-GCM symmetric encryption with random 96-bit nonce diff --git a/src/main.rs b/src/main.rs index e447b25..61cfe89 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ mod storage; mod utils; const MAX_RETRIES: usize = 3; -const CHUNK_SIZE: usize = 1024 * 1024; // 1 MiB chunks +const CHUNK_SIZE: usize = 1024 * 1024; async fn encrypt_and_upload_data_chunk( data: &Vec, @@ -194,8 +194,6 @@ async fn handle_download( let associated_filenames = filename_handler.get_all_filenames_of(plaintext_filename, config.key_bytes.clone()); - - let mut file = OpenOptions::new() .create(true) .write(true)