mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-27 02:04:39 +10:00
fix: make manifest public
This commit is contained in:
Generated
+1
-1
@@ -219,7 +219,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "droplet-rs"
|
name = "droplet-rs"
|
||||||
version = "0.12.1"
|
version = "0.12.2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"async-trait",
|
"async-trait",
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
authors = ["Drop-OSS"]
|
authors = ["Drop-OSS"]
|
||||||
name = "droplet-rs"
|
name = "droplet-rs"
|
||||||
version = "0.12.1"
|
version = "0.12.2"
|
||||||
license = "AGPL-3.0-only"
|
license = "AGPL-3.0-only"
|
||||||
description = "Droplet is a `napi.rs` Rust/Node.js package full of high-performance and low-level utils for Drop"
|
description = "Droplet is a `napi.rs` Rust/Node.js package full of high-performance and low-level utils for Drop"
|
||||||
|
|
||||||
|
|||||||
@@ -19,25 +19,25 @@ use tokio::{io::AsyncReadExt as _, join, sync::Mutex};
|
|||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Serialize, Deserialize, Clone)]
|
||||||
pub struct FileEntry {
|
pub struct FileEntry {
|
||||||
filename: String,
|
pub filename: String,
|
||||||
start: usize,
|
pub start: usize,
|
||||||
length: usize,
|
pub length: usize,
|
||||||
permissions: u32,
|
pub permissions: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Clone)]
|
#[derive(Serialize, Deserialize, Clone)]
|
||||||
pub struct ChunkData {
|
pub struct ChunkData {
|
||||||
files: Vec<FileEntry>,
|
pub files: Vec<FileEntry>,
|
||||||
checksum: String,
|
pub checksum: String,
|
||||||
iv: [u8; 16],
|
pub iv: [u8; 16],
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize)]
|
#[derive(Serialize, Deserialize)]
|
||||||
pub struct Manifest {
|
pub struct Manifest {
|
||||||
version: String,
|
pub version: String,
|
||||||
chunks: HashMap<String, ChunkData>,
|
pub chunks: HashMap<String, ChunkData>,
|
||||||
size: u64,
|
pub size: u64,
|
||||||
key: [u8; 16],
|
pub key: [u8; 16],
|
||||||
}
|
}
|
||||||
|
|
||||||
const CHUNK_SIZE: u64 = 1024 * 1024 * 64;
|
const CHUNK_SIZE: u64 = 1024 * 1024 * 64;
|
||||||
|
|||||||
Reference in New Issue
Block a user